TR_m3_NPC_OE_Urkhu
TR_Mainland.esm
Variables
11
Local Variables
TR_Map
control
controlQ
TR_m3_Urkhucheck
SkipGreeting
CombatCheck
CombatCheck2
CombatCheck3
NoLore
T_Local_Khajiit
T_Local_NPC
Source
1Begin TR_m3_NPC_OE_Urkhu
2
3short TR_Map
4short control
5short controlQ
6short TR_m3_Urkhucheck
7short SkipGreeting
8short CombatCheck
9short CombatCheck2
10short CombatCheck3
11short NoLore
12short T_Local_Khajiit
13short T_Local_NPC
14
15If ( CombatCheck == 0 )
16 If ( GetAttacked == 1 )
17 set SkipGreeting to 1 ; do not forcegreet if the PC has attacked
18 set CombatCheck to 1
19 EndIf
20EndIf
21
22If ( CombatCheck2 == 0 )
23 If ( "TR_m3_Rothur"->GetAttacked == 1 )
24 set SkipGreeting to -1 ; do not forcegreet if the PC has attacked
25 set CombatCheck2 to 1
26 EndIf
27EndIf
28
29If ( CombatCheck3 == 0 )
30 If ( "TR_m3_Velmu"->GetAttacked == 1 )
31 set SkipGreeting to 2 ; do not forcegreet if the PC has attacked
32 set CombatCheck3 to 1
33 EndIf
34EndIf
35
36If ( Menumode == 1 )
37 Return
38endif
39
40If (SkipGreeting == 0 )
41 If ( TR_m3_Urkhucheck == 0 )
42 If ( GetPCCell "Old Ebonheart, Sewers: East" == 1 )
43 If ( GetJournalIndex "TR_m3_OE_AbductedAmbassador" >= 10 )
44 If ( GetJournalIndex "TR_m3_OE_AbductedAmbassador" <= 38 )
45 If ( GetDistance Player <= 230 )
46 ForceGreeting
47 Set TR_m3_Urkhucheck to 1
48 Endif
49 EndIf
50 EndIf
51 EndIf
52 EndIf
53EndIf
54
55if ( TR_Map == 3 )
56 return
57endif
58
59set TR_Map to 3
60set T_Local_Khajiit to 1
61
62End