TR_m4_NPC_Shei
TR_Mainland.esm
Variables
14
Local Variables
TR_Map
control
controlQ
controlA
controlB
controlC
controlPicks
controlD
controlE
controlF
doOnce
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_Shei
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 controlA ;for the tapestries n rugs
10short controlB ;for the beds
11short controlC ;for Tattara's "good offer" Topic
12short controlPicks
13short controlD ;for the Greeting5 during Shei1
14short controlE ;for the final quest
15short controlF ;used for checking if Shei got the player to join the guild
16short doOnce
17short NoLore
18short T_Local_NPC
19short T_Local_NoLore
20
21
22;----this bit handles Shei's movement in her house at the very start of the questline
23
24if ( doOnce == 0 ) ;makes her stand still
25 AiWander 0 20 10 5 0 0 0 0
26 set doOnce to 1
27endif
28
29if ( doOnce == 2 ) ;makes her move towards the door
30 AiTravel 3936 4354 15576 ; TR_m4_MARK_Shei
31 set doOnce to 3
32endif
33
34;----end of that bit
35
36;----checks if Shei isn't yet near the blocked doors during Shei1
37
38if ( GetJournalIndex "TR_m4_TG_Shei1" == 10 )
39 if ( controlD == 0 )
40 if ( GetDistance "TR_m4_AndothDweDoor01" < 350 )
41 set controlD to 1
42 endif
43 endif
44endif
45
46;----end of that bit
47
48if ( TR_Map == 4 )
49 return
50endif
51
52set TR_Map to 4
53
54End