So I want to create a resource gathering system where the resources respawn after a certain number of days, which are kept track of via a variable. I'm stumped as to how to do this though. My solution to the problem is a failure. Basically I set up a system where when a resource is gathered the event changes a selfswitch on so the resource can't be gathered again. Then I have one variable that holds the number of days needed before a respawn. If that day rolls around or goes past it then the plants or whatever become gatherable again. Trouble is the plants will keep respawning as long as the variable days is equal to the variable respawn! This is obviously not what I want.
If I try to icrement the number of days for the respawn say from 5 to 10, then all the other gatherable resources littered across the maps become ungatherable. Any ideas for how to make my events respawn every few days?
Somewhere you mixed up your event logic, because that should work if done correctly.
Please post screenshots of your event pages so that we can see where you made errors.
I've moved this thread to Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.
The solution depends on which maker you're using as well - I'm assuming it's Ace due to your profile. If you're using something else, this will have to be moved again.
Doing it with a parallel process will cause a lot of lag.
If you want to store the time for each planting plot individually, you'll need one variable per event - in that case you're much better off using an event timer script - Shaz wrote one if I remember correctly, just search on the master script list.
If you want to regrow all plants at the same time, you better work with three pages and a reset switch.
In that case, make the second page action button and remove all content
make a third page that is conditioned on the reset switch, make that parallel process and have it control self-switch A off (no other conditions)
If you switch on the reset switch, then all events will reset and as soon as you control off the reset, all plants will be usable again.
I'm just going to go with the solution where I have a respawn variable for each map. It's a bit of extra work, but at least I understand how it works. I tested it as well and it works fine. Sorry I couldn't figure out your suggestion Andar, I appreciate the help. Thank all of you for all your help getting me to my solution. Problem solved! 🙂
@BonnieLass - I did not have any trouble extracting it or playing it once extracted. I also had a few others try it and there was no trouble. I wish I could give some more help, what is happening when you try to open it once extracted?
Are you attempting to play it or open it as a project? Opening it as a project was the intent, so you can see the events and such.