TR_m7_Ns_JNS_7_ScDruGuard
TR_Mainland.esm
Variables
9
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
SetHostile
OnPCHitMe
doonce
Source
1Begin "TR_m7_Ns_JNS_7_ScDruGuard"
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short T_Local_NPC
8short T_Local_NoLore
9short SetHostile
10short OnPCHitMe
11short doonce
12
13if ( GetJournalIndex "TR_m7_Ns_JNS_7" < 30 )
14 if ( SetHostile != 1 )
15 if ( "TR_m7_Ns_JNS_7_AttackTong" == 1 )
16 SetFight 100
17 StartCombat player
18 Set SetHostile to 1
19 endif
20 endif
21endif
22
23if ( OnPCHitMe == 1 )
24 StartCombat player
25 Set OnPCHitMe to 0
26 if ( GetJournalIndex "TR_m7_Ns_JNS_7" < 30 )
27 if ( "TR_m7_Ns_JNS_7_AttackTong" != 1 )
28 Set "TR_m7_Ns_JNS_7_AttackTong" to 1
29 endif
30 endif
31endif
32
33if ( OnDeath == 1 )
34 Set "TR_m7_Ns_JNS_7_NegotiatorsDead" to ( "TR_m7_Ns_JNS_7_NegotiatorsDead" + 1 )
35endif
36
37if ( CellChanged == 1 )
38 if ( GetJournalIndex "TR_m7_Ns_JNS_7" >= 10 )
39 if ( GetDisabled == 1 )
40 Enable
41 Set TR_Map to 7
42 endif
43 elseif ( GetJournalIndex "TR_m7_Ns_JNS_7" == 0 )
44 if ( GetDisabled == 0 )
45 Disable
46 endif
47 elseif ( GetJournalIndex "TR_m7_Ns_JNS_7" == 110 )
48 if ( GetDisabled == 0 )
49 Disable
50 endif
51 endif
52endif
53
54End