TR_m4_NPC_Nevrasa_Drans
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
doOnce
NoLore
trespass
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_Nevrasa_Drans
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 doOnce
10short NoLore
11short trespass
12short T_Local_NPC
13short T_Local_NoLore
14
15if ( GetDistance, player < 500 )
16
17if ( player->GetEffect, sEffectInvisibility == 1 )
18 if ( GetDistance, player >= 64 )
19 return
20 endif
21endif
22
23if ( GetJournalIndex "TR_m4_TG_ThreeEyes1" >= 10 )
24 set trespass to 1
25endif
26
27;if ( TR_m4_TG_AndoShei6Global >= 1 )
28 ;if ( trespass < 2 )
29 ;set trespass to 2
30 ;SetFight 85
31 ;endif
32;endif
33
34if ( trespass == 0 )
35 if ( GetDetected player == 1 )
36 if ( GetLOS player == 1 )
37 if ( GetPCSneaking == 1 )
38 if ( GetDistance, player <= 177 )
39 ForceGreeting
40 endif
41 elseif ( GetPCSneaking == 0 )
42 if ( GetDistance, player <= 340 )
43 ForceGreeting
44 endif
45 endif
46 endif
47 endif
48endif
49
50endif
51
52if ( TR_Map == 4 )
53 return
54endif
55
56set TR_Map to 4
57
58End