TR_m3_NPC_OE_Velmu
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
doOnce
doOnce2
CombatCheck
NoLore
T_Local_NPC
Source
1Begin TR_m3_NPC_OE_Velmu
2
3short TR_Map
4short control
5short controlQ
6short doOnce
7short doOnce2
8short CombatCheck
9short NoLore
10short T_Local_NPC
11
12If ( CombatCheck == 0 )
13 If ( "TR_m3_Urkhu"->GetAttacked == 1 ) ; do not forcegreet if the PC has attacked
14 set CombatCheck to 1
15 EndIf
16EndIf
17
18if ( GetJournalIndex "TR_m3_OE_AbductedAmbassador" >= 10 )
19 if ( GetJournalIndex "TR_m3_OE_AbductedAmbassador" < 60 )
20 if ( doOnce2 == 0 )
21 if ( GetDeadCount, "TR_m3_Velmu" > 0 )
22 if ( GetDeadCount, "TR_m3_Rothur" > 0 )
23 Journal "TR_m3_OE_AbductedAmbassador" 50
24 set doOnce2 to 1
25 endif
26 endif
27 endif
28 endif
29endif
30
31if ( GetJournalIndex "TR_m3_OE_AbductedAmbassador" >= 10 )
32 if ( GetJournalIndex "TR_m3_OE_AbductedAmbassador" < 60 )
33 if ( CombatCheck == 0 )
34 if ( GetAttacked == 1)
35 if ( doOnce == 0 )
36 "TR_m3_Urkhu"->StartCombat "TR_m3_Rothur"
37 "TR_m3_Urkhu"->StartCombat "TR_m3_Velmu"
38 set doOnce to 1
39 endif
40 endif
41 endif
42 endif
43endif
44
45; This short script is there to allow dialogue to be filtered on the TR_Map local variable,
46; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be
47; appropriate to the location the NPC is.
48
49if ( TR_Map == 3 )
50 return
51endif
52
53set TR_Map to 3
54
55End