TR_m4_NPC_UshuKurG01
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
controlB
Source
1begin TR_m4_NPC_UshuKurG01
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 NoLore
10short T_Local_NPC
11;global TR_m4_FG_JubalGlobal
12;global TR_m4_FG_UshuFree
13short controlB
14
15if ( TR_m4_FG_UshuFree == 2 )
16 if ( GetDisabled == 0 )
17 disable
18 set controlB to 1
19 endif
20endif
21
22if ( MenuMode == 0 )
23 if ( TR_m4_FG_UshuFree == 3 )
24 if ( TR_m4_FG_JubalGlobal == 0 )
25 if ( GetDisabled == 1 )
26 PlaceAtMe "T_Glb_Var_SummonFX" 1 1 1
27 enable
28 endif
29 endif
30 endif
31endif
32
33if ( controlB == 1 )
34 return
35endif
36
37if ( TR_m4_FG_JubalGlobal == 1 )
38 if ( GetDisabled == 0 )
39 disable
40 endif
41endif
42
43if ( TR_m4_FG_UshuFree == 2 )
44 if ( GetDisabled == 0 )
45 disable
46 endif
47endif
48
49if ( TR_Map == 4 )
50 return
51endif
52
53set TR_Map to 4
54
55End