TR_m1_Q59_ADH_script_6
TR_Mainland.esm
Variables
8
Local Variables
state
NoLore
slaveStatus
doOnce
TR_Map
T_Local_NPC
T_Local_NoLore
timer
Source
1begin TR_m1_Q59_ADH_script_6
2
3short state
4short NoLore
5short slaveStatus
6short doOnce
7short TR_Map
8float timer
9short T_Local_NPC
10short T_Local_NoLore
11
12if ( MenuMode )
13 Return
14elseif ( state == -1 )
15 Return
16endif
17
18if ( TR_Map == 0 )
19 set TR_Map to 1
20endif
21
22if ( GetDisabled )
23 if ( timer >= 3 )
24 SetDelete 1
25 Return
26 else
27 set timer to ( timer + GetSecondsPassed )
28 Return
29 endif
30endif
31
32if ( CellChanged )
33 if ( GetJournalIndex TR_m1_PT_ADH == 902 )
34 Disable
35 set state to -1
36 endif
37endif
38
39if ( slaveStatus == 2 )
40 if ( doOnce == 0 )
41 AIFollow Player 0 0 0 0 0
42 Set doOnce to 1
43 endif
44 return
45endif
46
47if ( slaveStatus == 3 )
48 if ( GetCurrentAIPackage == 3 )
49 AIWander 512 0 0 0 0 0 0 0 0 0 0 0
50 endif
51 if ( GetItemCount Slave_Bracer_Left > 0 )
52 Drop Slave_Bracer_Left 1
53 endif
54 if ( GetItemCount Slave_Bracer_Right > 0 )
55 Drop Slave_Bracer_Right 1
56 endif
57 if ( CellChanged )
58 Disable
59 endif
60endif
61
62end