TR_m2_q_18_Nevera_Script
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
doonce
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m2_q_18_Nevera_Script
2
3; Script on NPC TR_m2_q_18_Nevera.
4
5short TR_Map
6short control
7short controlQ
8short doonce
9short NoLore
10short T_Local_NPC
11short T_Local_NoLore
12
13if ( GetJournalIndex TR_m2_wil_Legacy == 11 ) ;if we hit a 'move to tavern' journal...
14 if ( doonce == 0 )
15 set control to 1 ;begin the tavern move process
16 set doonce to 1
17 endif
18elseif ( GetJournalIndex TR_m2_wil_Legacy == 30 )
19 if ( doonce == 0 )
20 set control to 1
21 set doonce to 1
22 endif
23elseif ( GetJournalIndex TR_m2_wil_Legacy == 20 ) ;if we hit a 'wrapup' journal...
24 if ( doonce != 2 )
25 set control to 2 ;begin the removal process
26 set doonce to 2
27 endif
28elseif ( GetJournalIndex TR_m2_wil_Legacy == 40 )
29 if ( doonce != 2 )
30 set control to 2
31 set doonce to 2
32 endif
33elseif ( GetJournalIndex TR_m2_wil_Legacy == 50 )
34 if ( doonce != 2 )
35 set control to 2
36 set doonce to 2
37 endif
38endif
39
40if ( control == 1 )
41 if ( CellChanged == 1 )
42 PositionCell -1161 -12 374 0 "Tel Muthada, The Note In Your Eye" ;TR_m2_MARK_Nevera
43 AiWander 0 0 0 0 0 0 0 0 0 0 0 0
44 set control to 0
45 endif
46elseif ( control == 2 )
47 if ( CellChanged == 1 )
48 Disable
49 set control to 3
50 endif
51endif
52
53if ( TR_Map == 2 )
54 return
55endif
56
57set TR_Map to 2
58
59End