TR_m3_q_fakedwemercoin_scr
TR_Mainland.esm
Variables
1
Local Variables
enableonce
Source
1begin TR_m3_q_fakedwemercoin_scr
2
3; Fake Dwemer coins placed in the world
4; replaced with TR_m3_q_fakedwemercoin_1 in inventory
5; "why are these different?"
6;; fake Dwemer coins placed in the world should disable if Legion confiscates them
7;; fake Dwemer coins in inventory should persist
8
9short enableonce
10
11if ( OnActivate )
12 Disable
13 "Player"->AddItem "TR_m3_q_fakedwemercoin_1" 1
14 PlaySound, "Item Misc Up"
15endif
16
17if ( GetJournalIndex "TR_m3_EEC_counterfeit" == 0 )
18 if ( GetDisabled == 0 )
19 Disable
20 TR_m3_OE_coinpress->Disable
21 endif
22elseif ( GetJournalIndex "TR_m3_EEC_counterfeit_arrest" >= 50 )
23 if ( GetDisabled == 0 )
24 Disable
25 TR_m3_OE_coinpress->Disable
26 endif
27elseif ( enableonce == 0 )
28 set enableonce to 1
29 if ( GetDisabled )
30 Enable
31 TR_m3_OE_coinpress->Enable
32 endif
33endif
34
35end