TR_m7_Ns_MovingHouse_BalvuSC
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
doonce
Source
1Begin TR_m7_Ns_MovingHouse_BalvuSC
2
3; This short script is there to allow dialogue to be filtered on the TR_Map local variable,
4; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be
5; appropriate to the location the NPC is.
6
7short TR_Map
8short control
9short controlQ
10short T_Local_NPC
11short NoLore
12short doonce
13
14if ( doonce ) ; once quest moves past the appropriate stage short the script
15 return
16endif
17
18if ( getjournalindex "TR_m7_Ns_MovingHouse" >= 30 ) ; Forcegreeting at appropriate quest stage
19 if ( getjournalindex "TR_m7_Ns_MovingHouse" < 34 )
20 if ( getdistance player < 300 )
21 if ( doonce == 0 )
22 forcegreeting
23 set doonce to 1
24 endif
25 endif
26 elseif ( doonce == 0 ) ; if player completes the quest without triggering the forcegreet also set doonce to 1
27 set doonce to 1
28 endif
29endif
30
31if ( ondeath ) ; if NPC is dead then short script
32 set doonce to 1
33endif
34
35set TR_Map to 7
36
37End