TR_m7_Drissa_Vendil_Script
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
doOnce
hostile
OnPCHitMe
Source
1Begin TR_m7_Drissa_Vendil_Script
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 NoLore
11
12short doOnce
13
14short hostile
15short OnPCHitMe
16
17; attacking after distraction or during the fight will turn the whole crew hostile
18if ( hostile == 1 )
19 set hostile to 2
20 setfight 90
21 startcombat player
22 return
23endif
24
25if ( getJournalIndex, "TR_m7_HO_HighAndDry_a" >= 20 )
26 if ( hostile == 0 )
27 if ( OnPCHitMe == 1 )
28 set "TR_m7_Qaidilwe".hostile to 1
29 set "TR_m7_Tharkul gro-Sham".hostile to 1
30 set hostile to 1
31 endif
32 endif
33endif
34
35; move her from the ship and disable wandering if you distracted the crew
36if ( doOnce == 0 )
37 if ( getJournalIndex, "TR_m7_HO_HighAndDry" == 110 )
38 set doOnce to 1
39 aiwander 0 0 0
40 positioncell 16851 -259967 176 19200 "Hlan Oek"
41 endif
42endif
43
44if ( OnDeath == 1 )
45 ; set a global var for death if it still matters
46 if ( TR_m7_HO_HighAndDry_CrewKilled == 0 )
47 set TR_m7_HO_HighAndDry_CrewKilled to 1
48 endif
49
50 ; update journal if you're doing a quest
51 if ( getJournalIndex, "TR_m7_HO_HighAndDry" >= 10 )
52 if ( getJournalIndex, "TR_m7_HO_HighAndDry" < 100 )
53 Journal "TR_m7_HO_HighAndDry" 210
54 endif
55 endif
56endif
57
58if ( TR_Map == 7 )
59 return
60endif
61
62set TR_Map to 7
63
64End