TR_m1_Q59_ADH_script_5
TR_Mainland.esm
Variables
7
Local Variables
state
doonce
control
TR_Map
T_Local_NPC
nolore
timer
Source
1begin TR_m1_Q59_ADH_script_5
2
3short state
4short doonce
5short control
6float timer
7short TR_Map
8short T_Local_NPC
9short nolore
10
11if ( doonce == 0 )
12 disable
13 set doonce to 1
14 set TR_Map to 1
15endif
16
17if ( control == 0 )
18 return
19endif
20
21if ( GetDisabled )
22 if ( timer >= 3 )
23 SetDelete 1
24 set state to -1
25 Return
26 else
27 set timer to ( timer + GetSecondsPassed )
28 Return
29 endif
30endif
31
32if ( MenuMode )
33 Return
34elseif ( state == -1 )
35 Return
36endif
37
38if ( state == 0 )
39 StartCombat TR_m1_Trelo_Resano
40 set state to 1
41 return
42elseif ( state == 1 )
43 if ( OnDeath )
44 Journal TR_m1_PT_ADH 501
45 set state to -1
46 elseif ( GetJournalIndex TR_m1_PT_ADH == 500 )
47 set state to 2
48 endif
49 return
50elseif ( state == 2 )
51 if ( CellChanged )
52 Disable
53 endif
54endif
55
56end