I just spent the last hour trying to get money on a chest every few days for a store, but i cant get it to do it more than once...
It's pretty simple, but it seems that the timer doesn't reset. i've tried in many different ways but it's always the same, it runs once and doesn't restart. is this even possible?
- Code: Select all
begin aa_testmon
short daysPassed
short myDay
float timer
if ( daysPassed = 0 )
set myDay to Day
set daysPassed to 1
endif
if ( myDay != Day )
set timer to ( timer + 1 )
set myDay to Day
endif
if ( timer = 3 )
if ( aa_chest_TEST->GetItemCount, "gold_001" < 10000 )
aa_chest_TEST->additem, "gold_001", 180
set timer to 0
endif
endif
end