TR_m1_q_CompareLedgers
TR_Mainland.esm
Variables
4
Local Variables
state
doonce
doonce2
control
Source
1Begin TR_m1_q_CompareLedgers
2
3short state
4short doonce
5short doonce2
6short control
7
8If ( GetJournalIndex TR_m1_RR_MQ_8 < 40 )
9 If ( GetDisabled == 0 )
10 Disable
11 Endif
12ElseIf ( GetJournalIndex TR_m1_RR_MQ_8 >= 40 )
13 If ( GetDisabled )
14 Enable
15 Endif
16Endif
17
18If ( GetJournalIndex TR_m1_RR_MQ_8 < 40 )
19 return
20Endif
21
22If ( doonce == 0 )
23 If ( OnActivate )
24 Activate
25 set state to ( state + 1 )
26 set doonce to 1
27 Endif
28Endif
29
30If ( doonce2 == 0 )
31 If ( TR_m1_bk_RR_MineList->OnActivate )
32 TR_m1_bk_RR_MineList->Activate
33 set state to ( state + 1 )
34 set doonce2 to 1
35 Endif
36Endif
37
38If ( state == 2 )
39 If ( control == 0 )
40 Journal TR_m1_RR_MQ_8 50
41 set control to 1
42 Endif
43Endif
44
45End