TR_m4_q_Treram_Chest
TR_Mainland.esm
Variables
2
Local Variables
chestcheck
doOnce
Source
1Begin TR_m4_q_Treram_Chest
2
3short chestcheck
4short doOnce
5
6
7 ;if ( onActivate == 1 )
8 ; RemoveItem, "T_De_Drink_LiquorLlotham_01", 1
9 ; set doOnce to 1
10 ;endif
11
12
13 ; if ( doOnce == 1 )
14 ; If ( onActivate == 1 )
15 ; return ; do nothing
16 ; elseif ( Activate == 1 )
17 ; return ; do nothing
18 ; elseif ( MenuMode == 1 )
19 ; return ; do nothing
20 ; else
21 ; AddItem, "T_De_Drink_LiquorLlotham_01", 1
22 ;Set doOnce to 0
23 ; return
24 ;endif
25 ; endif
26
27if ( chestcheck == 1 )
28 if ( GetItemCount, "Gold_001" >= 500 )
29 set chestcheck to 0
30 set "TR_m4_Treram Varalaryn".moneycheck to 0
31 endif
32endif
33
34if ( chestcheck == 0 )
35 if ( GetItemCount, "Gold_001" < 500 )
36 set chestcheck to 1
37 set "TR_m4_Treram Varalaryn".moneycheck to 1
38 endif
39endif
40
41if ( GetJournalIndex TR_m4_Bd_RedoranDebt >= 20 )
42 if ( GetJournalIndex TR_m4_Bd_RedoranDebt <= 25 )
43 if ( doonce == 2 )
44 if ( GetItemCount, "Gold_001" >= 750 )
45 set doonce to 1
46 set "TR_m4_Tuls_Varalaryn".controlQ to 1
47 endif
48 endif
49 endif
50endif
51
52if ( doonce == 1 )
53 if ( GetItemCount, "Gold_001" < 750 )
54 set doonce to 2
55 set "TR_m4_Tuls_Varalaryn".controlQ to 0
56 endif
57endif
58
59if ( GetJournalIndex TR_m4_Bd_RedoranDebt >= 20 ) ; only give journal entry once
60 if ( GetJournalIndex TR_m4_Bd_RedoranDebt <= 25 )
61 if ( doonce == 0 )
62 if ( GetItemCount, "Gold_001" >= 750 )
63 set doonce to 1
64 Journal TR_m4_Bd_RedoranDebt 21
65 set "TR_m4_Tuls_Varalaryn".controlQ to 1
66 endif
67 endif
68 endif
69endif
70
71
72End