TR_m3_Ord_Watch3_Ord_sc
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m3_Ord_Watch3_Ord_sc
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
12
13if ( CellChanged )
14 if ( getjournalindex TR_m3_Ord_Watch3 >= 20 )
15 if ( getjournalindex TR_m3_Ord_Watch3 <= 30 )
16 Enable
17 else
18 Disable
19 endif
20 else
21 Disable
22 endif
23endif
24
25if ( GetDisabled == 0 )
26 if ( control == 0 )
27 if ( GetDeadCount "TR_m3_Telyn_Verelnim" >= 1 )
28 set control to 1
29 aiwander 0 5 0 60 20 20 20 0 0 0 20
30 endif
31 endif
32endif
33
34if ( TR_map == 0 )
35 set TR_Map to 3
36endif
37
38End