TR_m7_q_Maphix_Ovimus_sc
TR_Mainland.esm
Variables
11
Local Variables
TR_Map
sixFiddy
NoLore
state
money
day
control
controlQ
T_Local_NPC
T_Local_NoLore
profit
Source
1Begin TR_m7_q_Maphix_Ovimus_sc
2
3short TR_Map
4short sixFiddy
5short NoLore
6short state
7short money
8short day
9short control
10short controlQ
11float profit
12short T_Local_NPC
13short T_Local_NoLore
14
15if ( OnDeath )
16 if ( GetJournalIndex TR_m7_HO_CluelessEggminer > 0 )
17 Journal TR_m7_HO_CluelessEggminer 210
18 endif
19endif
20
21if ( money == 0 )
22 if ( GetJournalIndex TR_m7_HO_CluelessEggminer == 120 )
23 set money to 1
24 set day to ( DaysPassed )
25 endif
26elseif ( money == 1 )
27 if ( MenuMode )
28 while ( ( day + 30 ) < DaysPassed )
29 set day to ( day + 30 )
30 set profit to ( ( Random 450 ) / 10 )
31 set profit to ( ( profit + 30 ) * TR_m7_LA4_EggMineStage )
32 set TR_m7_q_CE_Dividends to ( TR_m7_q_CE_Dividends + profit )
33 endwhile
34 while ( ( day + 7 ) < DaysPassed )
35 set day to ( day + 7 )
36 set profit to ( ( Random 105 ) / 10 )
37 set profit to ( ( profit + 7 ) * TR_m7_LA4_EggMineStage )
38 set TR_m7_q_CE_Dividends to ( TR_m7_q_CE_Dividends + profit )
39 endwhile
40 endif
41endif
42
43if ( state )
44 Return
45endif
46
47if ( GetJournalIndex TR_m7_HO_CluelessEggminer == 40 )
48 StartScript TR_m7_q_Maphix_teleport_sc
49 set state to 1
50endif
51
52if ( TR_Map == 7 )
53 return
54endif
55
56set TR_Map to 7
57
58End