roxas31 Posted February 17, 2019 Share Posted February 17, 2019 (edited) Hello, everyone.I've been pulling my hair since yesterday trying to get a chest to accumulate money for a store mod, but i can't get it to run more than once. begin aa_testmon short myDayshort daycountshort ruun if ( daysPassed == 0 )set myDay to Dayset daysPassed to 1endif if ( myDay != Day )set myDay to Day set global_time to global_time + 1endif if ( global_time => 3 )set ruun to 1set global_time to 1endif if ( ruun = 1 )if ( aa_chest_TEST->GetItemCount, "gold_001" < 10000 )aa_chest_TEST->additem, "gold_001", 180set ruun to 0set global_time to 1returnendifendif endthis is only one of the many revisions i made, most of them had the same result, they run once. i even tried adding the money when my day isn't day (which should trigger every day at 00:00), but it also runs once. i tried every thing i could think of, i'm out of ideas, can anyone help? Edited February 18, 2019 by roxas31 Link to comment Share on other sites More sharing options...
Dragon32 Posted February 18, 2019 Share Posted February 18, 2019 Isn't dayspassed a global variable used to check how long the current game's been running? I'd be tempted to look at Rex Little's Consignment Chests, or (requires MWSE) Consignment Chests Expanded by qicksilver. Link to comment Share on other sites More sharing options...
Recommended Posts