TR_m1_EEC_Zaren_HlavesaSCN
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
stolen
doOnce
Source
1Begin TR_m1_EEC_Zaren_HlavesaSCN
2
3; script on Hlavesa Llenim (NPC TR_m2_Hlavesa Llenim)
4; for quest TR_m1_EEC_Zaren.
5
6short TR_Map
7short control
8short controlQ
9short NoLore
10short T_Local_NPC
11short T_Local_NoLore
12short stolen
13short doOnce
14; stolen == 0: package has not been taken
15; stolen == 1: package has been stolen from Hlavesa
16; stolen == 2: package has been bought from Hlavesa
17
18if ( MenuMode == 1 )
19 ; not just an optimization, but also prevents the stolen variable from getting set if the
20 ; package is taken consensually
21 return
22endif
23
24if ( doOnce == 0 )
25
26 if ( getJournalIndex "TR_m1_EEC_Zaren" >= 5 )
27 additem "TR_m1_EEC_ZarenPack" 1
28 set doOnce to 1
29 endif
30
31 if ( TR_Map == 2 )
32 return
33 endif
34
35 set TR_Map to 2
36
37elseif ( doOnce == 1 )
38
39 if ( getItemCount, "TR_m1_EEC_ZarenPack" < 1 )
40 if ( stolen == 0 )
41 set stolen to 1
42 set doOnce to 2
43 endif
44 endif
45
46 if ( getJournalIndex "TR_m1_EEC_Zaren" >= 60 )
47 set doOnce to 2
48 endif
49
50endif
51
52if ( TR_Map == 2 )
53 return
54endif
55set TR_Map to 2
56
57End