TR_m2_q_14_Naleth
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
controlQ1
T_Local_NPC
NoLore
Source
1Begin TR_m2_q_14_Naleth
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 of the NPC. This script is specific for TR_m2_Naleth_Llarni.
5
6short TR_Map
7short control
8short controlQ
9short controlQ1
10short T_Local_NPC
11short NoLore
12
13;1 = caught PC opening skooma chest before helping Bradasou ;these are the ControlQ values
14;2 = caught PC with skooma
15;3 = caught PC opening chest, but not with skooma
16;4 = attacking PC
17;5 = drug trade is over
18
19 if ( TR_Map != 2 )
20 set TR_Map to 2
21 endif
22
23 if ( MenuMode == 1 )
24 return
25 endif
26
27 if ( controlQ == 3 )
28 if ( controlQ1 == 0 )
29 if ( Player->GetItemCount "TR_m2_q_14_NalethSkooma" == 0 )
30 set controlQ1 to 1
31 ForceGreeting
32 ElseIf ( Player->GetItemCount "TR_m2_q_14_NalethSkooma" > 0 )
33 set controlQ to 2
34 ForceGreeting
35 endif
36 endif
37 endif
38
39 if ( OnDeath == 1 )
40 if ( controlQ == 4 )
41 Journal "TR_m2_FW_SkoomaFree" 32
42 ; Player->ModReputation -3
43 endif
44 endif
45
46End