TR_m3_NPC_Gols_Sevlor
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
T_Local_NoLore
Source
1Begin TR_m3_NPC_Gols_Sevlor
2; This short script is there to allow dialogue to be filtered on the TR_Map local variable,
3; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be
4; appropriate to the location the NPC is.
5
6short TR_Map
7short control
8short controlQ
9short T_Local_NPC
10short NoLore
11short T_Local_NoLore
12
13if ( control == 0 )
14 if ( GetJournalIndex TR_m4_HH_Ulvo2 >= 100 )
15 setfight 90
16 set control to 1
17 endif
18endif
19
20if ( OnDeath )
21 set TR_m3_KadanuranDeadCount to ( TR_m3_KadanuranDeadCount + 1 )
22 if ( TR_m3_KadanuranDeadCount >= 4 )
23 if ( GetJournalIndex "TR_m4_HH_Ulvo4" >= 30 )
24 if ( GetJournalIndex "TR_m4_HH_Ulvo4" < 85 )
25 journal TR_m4_HH_Ulvo4 36
26 endif
27 endif
28 endif
29 if ( GetJournalIndex TR_m4_HH_Ulvo2 > 0 )
30 if ( GetJournalIndex TR_m4_HH_Ulvo2 < 100 )
31 journal TR_m4_HH_Ulvo2 60
32 endif
33 endif
34endif
35
36if ( GetJournalIndex TR_m4_HH_Ulvo2 < 20 )
37 if ( GetDisabled == 0 )
38 disable
39 endif
40 return
41elseif ( GetDisabled )
42 enable
43endif
44
45if ( TR_Map )
46 return
47endif
48
49set TR_Map to 3
50
51End