I am currently using Vlue's crafting system, and have made several recipes, but all of them so far are supposed to be harvested from plants. The events are set up, but I can't seem to find a better solution than a common event and several variables to keep the events turning back from their self switches. The only other way I can think of is having a parallel process in the events themselves, but that did not turn out too well either. I'm trying to get the items back harvestable after a couple days in game time, and am using Vlue's advanced time as well if that helps any. Are there any other options?
item event respawn question
RGSSx Script SupportPlease link to the script you're using, no one can help you without reading it.
And give us screenshots of your event - your description is incomplete and a bit confusing. It's better to show us what you have and ask how to improve that.
I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
And give us screenshots of your event - your description is incomplete and a bit confusing. It's better to show us what you have and ask how to improve that.
I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Vlue's advanced crafting
http://www.rpgmakervxace.net/topic/24016-advanced-recipe-crafting/
Vlue's advanced time
http://www.rpgmakervxace.net/topic/6145-advanced-game-time/
The mention of them was more of an aside, they are working perfectly, it is the events that I am having an issue with.
My problem is what I am using as crafting ingredients are found in the wild on plants. I don't want them to be repeatedly harvested so I turn on a self switch to a parallel process, that then waits for a random variable. I'm trying to figure out how to get it time based, but so far have not been able to.
The common event generating a random number for the switch to turn off
[IMG]http://s22.postimg.org/ttafmilhp/common.png[/IMG]
First page of event when getting the item, and turning the switch on.
[IMG]http://s22.postimg.org/rq00eulot/page1.png[/IMG]
Second page, a parallel process checking for the random variable.
[IMG]http://s22.postimg.org/msmftqjpp/pg2.png[/IMG]
So far this is the cleanest method I have found, but it is still a bit messy and it kind of limits me on how many I can have on a single map.
http://www.rpgmakervxace.net/topic/24016-advanced-recipe-crafting/
Vlue's advanced time
http://www.rpgmakervxace.net/topic/6145-advanced-game-time/
The mention of them was more of an aside, they are working perfectly, it is the events that I am having an issue with.
My problem is what I am using as crafting ingredients are found in the wild on plants. I don't want them to be repeatedly harvested so I turn on a self switch to a parallel process, that then waits for a random variable. I'm trying to figure out how to get it time based, but so far have not been able to.
The common event generating a random number for the switch to turn off
[IMG]http://s22.postimg.org/ttafmilhp/common.png[/IMG]
First page of event when getting the item, and turning the switch on.
[IMG]http://s22.postimg.org/rq00eulot/page1.png[/IMG]
Second page, a parallel process checking for the random variable.
[IMG]http://s22.postimg.org/msmftqjpp/pg2.png[/IMG]
So far this is the cleanest method I have found, but it is still a bit messy and it kind of limits me on how many I can have on a single map.
why the common event? why didn't you place that control variable command on the second page of the map event, before the conditional branch?
Because at the start I was using the common event to try and get a timed system going for all the items, instead of RNG deciding when something was harvestable again. My main goal is to try and set it to where the events are only active after two or three in game days to keep them from being repeatedly harvested, the random variable is just the best thing I have come up with so far to keep that from happening.
And the answer was right under my nose. Vlue's time script has a section that will count down variables, it just took reading every line while fine tuning my day cycles to find it.
There is a reason why the first advice of my Tutorial How to use a script was to read the entire script ;-)
noxadari, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
If you have to add something and your own post is the last and less than 72 hours old, please edit that post.
noxadari, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
If you have to add something and your own post is the last and less than 72 hours old, please edit that post.
My mistake on the double post. I had read the script multiple times, figuring it out, but after changing one area didn't really pay attention to that particular section anymore. It's working almost exactly as I want it now, except for it being a global countdown for all the events, and don't see any other way than a separate variable for each event to have an its own timer.
Original thread: https://forums.rpgmakerweb.com/threads/item-event-respawn-question.43461/