TR_m7_Ns_BrevurGuardSc
TR_Mainland.esm
Variables
5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m7_Ns_BrevurGuardSc
2
3short TR_Map
4short control
5short controlQ
6short T_Local_NPC
7short NoLore
8
9; controlQ
10; TR_m7_JNS_TheBoss_EndOfTheLine
11; 1 - quest started, attack you
12; 2 - Mervis surrendered, don't attack you
13; 3 - Mervis died during the quest, attack you again
14; TR_m7_HH_GM_3za
15; 4 - attack you
16
17if ( controlQ >= 3 )
18 return
19endif
20
21if ( GetJournalIndex "TR_m7_HH_GM_3za" >= 10 )
22 if ( controlQ < 4 )
23 setfight 100
24 set controlQ to 4
25 endif
26 return
27endif
28
29if ( GetJournalIndex "TR_m7_JNS_TheBoss_EndOfTheLine" >= 100 )
30 if ( controlQ < 3 )
31 set controlQ to 3
32 endif
33elseif ( GetJournalIndex "TR_m7_JNS_TheBoss_EndOfTheLine" >= 20 )
34 if ( controlQ < 3 )
35 if ( GetDeadCount "TR_m7_Mervis Llarel" >= 1 )
36 setfight 100
37 set controlQ to 3
38 endif
39 endif
40 if ( controlQ < 2 )
41 if ( GetDeadCount "TR_m7_Mervis Llarel" == 0 )
42 setfight 30
43 stopcombat
44 set controlQ to 2
45 endif
46 endif
47elseif ( GetJournalIndex "TR_m7_JNS_TheBoss_EndOfTheLine" >= 10 )
48 if ( controlQ < 1 )
49 setfight 100
50 set controlQ to 1
51 endif
52endif
53
54if ( TR_Map )
55 return
56endif
57
58set TR_Map to 7
59
60End