The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Yume_Nasuki on November 28, 2006, 05:41:05 PM

Title: Plants
Post by: Yume_Nasuki on November 28, 2006, 05:41:05 PM
Ok here a simple inquiry.

     I require iether a script or preferably an event for planting.  Where you will approach a spot say 'tilled soil' mabey and if you have a seed in your pocket you will have the option of planting it.  Then over time the seed will grow into a small plant and then continue growing until it fully matures and bears fruit.  Once it bears fruit you have the option of picking that fruit and thus obtain the fruit in your pocket.

     <I wonder if it would take both events and scripting to do this>

P.S. I'd realy like it so that the time it takes to grow can be an adjustable variable for difference in plants and their natural growth cycles.
Thanx in advance.
Title: Re: Plants
Post by: Doctor Professor Nikolai on November 28, 2006, 11:14:09 PM
Simple! Use events.

<>Message: Plant a seed?
<>Show Choices: Yes, No
:  [Yes] Handeler
     <>Conditional Branch: [Seed] possesed
       <>Move Event:: Plant
              Change Graphic to Sprout (or whatever the name is)
<>Else Handler
<>Message: You need a seed!

:  [No] Handler
<>
[End]

There ya go!
Title: Re: Plants
Post by: Falcon on November 29, 2006, 12:07:29 AM
Use self switches and a DNS maybe?
Title: Re: Plants
Post by: Yume_Nasuki on November 29, 2006, 05:20:31 PM
Thats great and all for the planting, but what about the growth part and the fruit picking.
Title: Re: Plants
Post by: Doctor Professor Nikolai on November 30, 2006, 01:27:51 AM
After the plant is planted and has some time to grow, it could be on a variable switch to make it to a full plant and then u can pick it and the plant goes away.
Title: Re: Plants
Post by: Cheal on December 12, 2006, 01:24:40 AM
For the growth process you might have to use a Day/Night event/script. It doesn't have to be day and night, and could be switched to act as a time variable, but I'm still pretty new at this, so I don't know if this helps at all.  :P