TR_m1_NPC_Alammu_Rindo
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
T_Local_NoLore
Source
1Begin TR_m1_NPC_Alammu_Rindo
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_m1_TO_RunningIntoTrouble == 40 )
15 set control to 1
16 if ( GetDisabled )
17 enable
18 endif
19 elseif ( GetDisabled == 0 )
20 disable
21 endif
22 return
23endif
24
25if ( controlQ == 0 )
26 if ( GetJournalIndex TR_m1_TO_RunningIntoTrouble == 40 )
27 if ( GetLOS player )
28 if ( GetDistance player < 420 )
29 ForceGreeting
30 return
31 endif
32 endif
33 endif
34endif
35
36if ( TR_Map )
37 return
38endif
39
40set TR_Map to 1
41
42End