TR_m7_q_Anden_Suth_scr
TR_Mainland.esm
Variables
9
Local Variables
attackstate
OnPCHitMe
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
timer
Source
1Begin TR_m7_q_Anden_Suth_scr
2
3float timer
4short attackstate
5short OnPCHitMe
6short TR_Map
7short control
8short controlQ
9short NoLore
10short T_Local_NPC
11short T_Local_NoLore
12
13set TR_Map to 7
14
15; get defended by Fala if attacked, and makes it so combat doesn't stop
16
17if ( OnPCHitMe == 1 )
18 set attackstate to 1
19 set OnPCHitMe to 0
20endif
21
22; only allowed to hit them at stage 50
23
24if ( GetJournalIndex TR_m7_HO_TT_02 != 50 )
25 if (attackstate == 1)
26 StartCombat player
27 set timer to ( timer + GetSecondsPassed)
28 if ( timer >= 1 )
29 set timer to 0
30 set attackstate to 0
31 "TR_m7_q_Fala Onmar"->StartCombat Player
32 set "TR_m7_q_Uls Herano_slp".controlV to 1
33 endif
34 endif
35endif
36
37if ( GetJournalIndex TR_m7_HO_TT_02 == 50 )
38 if (attackstate == 1)
39 StartCombat player
40 set timer to ( timer + GetSecondsPassed)
41 if ( timer >= 1 )
42 set timer to 0
43 set attackstate to 0
44 "TR_m7_q_Fala Onmar"->StartCombat Player
45 endif
46 endif
47endif
48
49End