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