TR_m7_NPC_Renixia_Vedius
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m7_NPC_Renixia_Vedius
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
13; control states
14; 0 = base
15; 1 = Player accepted offer to help
16; 2 = Player finished the interaction
17
18; controlQ states
19; 0 = base, has not cast summon spell
20; 1 = has cast placeholder spell for the effect
21; 2 = has placed summon and effect object for the spell
22
23if ( control == 1 )
24 if ( MenuMode == 0 )
25 if ( controlQ == 0 )
26 ; This spell is bound gloves for 0 seconds just to get the
27 ; spell effects since the summon itself is scripted
28 cast "TR_m7_q_RenixiaSummonEffect" player
29 if ( GetSpellEffects "TR_m7_q_RenixiaSummonEffect" )
30 set controlQ to 1
31 endif
32 elseif ( controlQ == 1 )
33 PlaceAtMe "TR_m7_q_RenixiaSummon" 1 64 2
34 PlaceAtMe "T_Glb_Var_SummonFX" 1 64 2
35 set controlQ to 2
36 endif
37 endif
38endif
39
40
41set TR_Map to 7
42
43End