TR_m4_NPC_Visthina
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
T_Local_NPC
T_Local_NoLore
NoLore
Source
1Begin TR_m4_NPC_Visthina
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 T_Local_NoLore
11short NoLore
12
13; This is just so the spell is linked in CS
14if ( GetSpell "TR_m4_VisthinaHaste" )
15 RemoveSpell "TR_m4_VisthinaHaste"
16endif
17
18if ( controlQ == 1 )
19 ExplodeSpell "TR_m4_VisthinaHaste"
20 if ( GetSpellEffects "TR_m4_VisthinaHaste" )
21 set controlQ to 2
22 endif
23endif
24
25if ( GetSpellEffects "TR_m4_VisthinaSummon" == 1 )
26 if ( controlQ == 0 )
27 set controlQ to 1
28 endif
29elseif ( controlQ > 0 )
30 set controlQ to 0
31endif
32
33set TR_Map to 4
34
35End