Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: azure hunter on November 03, 2006, 12:51:12 AM

Title: Need help with a common event
Post by: azure hunter on November 03, 2006, 12:51:12 AM
Ok so basically I want a system where I can pick an herb/flower with an with an item i call a "floral cutting kit" and then after a set amount of time it grows back so i can cut it again.
Title:
Post by: azure hunter on November 03, 2006, 12:53:14 AM
keep in mind its 2k3
Title:
Post by: Raen Ryong on November 03, 2006, 06:21:30 AM
Okay, simple way is:

Pick the flower and it turns a switch ON, as well as setting Variable [0001:Regrow Time] to 0.

Common Event, Parallel Process, activated BY THAT SWITCH;

Wait 1.0s
Change Variable [0001:Regrow Time], +1
Fork Optn [0001:Regrow Time], above {time you want, in seconds}
:Change Switch {the one you made}, OFF

Now, simply make it so that you can only pick the flower when the switch is NOT on. Problem solved :D
Title:
Post by: Sales on November 18, 2006, 02:43:35 AM
You should also put in a conditional branch that will only let you pick the flower when you have the item.