TR_m4_Bhagrun_gro-Mazku_scr
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
doonce
Source
1Begin TR_m4_Bhagrun_gro-Mazku_scr
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. This version is for "NoLore" NPCs.
5
6short TR_Map
7short control
8short controlQ
9short NoLore
10short T_Local_NPC
11short T_Local_NoLore
12short doonce
13
14; during the MT writ on the chieftain he is non-hostile and shouts instructions at the player
15if ( doonce == 0 )
16 if ( "TR_m4_Bhagrun gro-Mazku"->GetTarget player == 0 )
17 if ( GetJournalIndex TR_m3_MT_Ughash == 10 )
18 if ( getDeadCount "TR_m4_Bhagrun gro-Mazku" == 0 )
19 if ( GetDistance player <= 400 )
20 ForceGreeting
21 set doonce to 1
22 endif
23 endif
24 endif
25 endif
26endif
27
28if ( TR_Map == 4 )
29 return
30endif
31
32set TR_Map to 4
33
34End