Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> MultiVariable Gardening System (VX Ace)
RzrBladeMontage
post Nov 25 2012, 01:19 AM
Post #1


"Hey.. would you say... I became a Hero?" - Zack Fair
Group Icon

Group: Revolutionary
Posts: 773
Type: Event Designer
RM Skill: Advanced




So this system is pretty simple and you can use it for as many plants as you want to be able to plant. You need a few switches for each plant, as well as a variable and a common event. The three types of seeds/herbs I used for this tutorial were Flux, Tuneq, and Poe. For the info you need below, I'll be using Flux as an example. There's also 3 different spots in the tutorial for planting seeds, so that's why each thing you need is numbered.

Flux Planted 1 Switch
Flux Grown 1 Switch
Variable: Flux 1
Common Event: Grow Flux 1

Optional:
Variable: Herb Chance

You'll need to make these switches and variables (excluding herb chance) for each of your seeds/herbs, and for each planting spot.

Example: I have 3 planting spots, and 3 types of seeds/herbs. So we would have:

Flux 1
Flux 2
Flux 3
Tuneq 1
Tuneq 2
Tuneq 3
Poe 1
Poe 2
Poe 3

And that's for each switch (planted and grown), variable, and common event.

So the planting events are pretty simple. Use Conditional Branches to check if the player has the item in their inventory, and if they do, allow them to plant the seed. Turn on the Planted switch and have the Planted Seed icon pop up on the map. After the switch is turned on, have the common event be activated. In the common event create a loop. Have it wait for X amount of time (40 in my example) add 1 to your variable (in this case, Flux 1) afterwards, until it equals to a certain amount (in this case, 10). Have a conditional branch that says if the variable equals 10, it turns on the Flux Grown switch and turns off the Planted switch (in that order) and then breaks the loop. Now that the common event is turned off, the original planting spot should now have the Grown Plant icon shown, and allow the player to harvest the herbs. If you added the Herb Chance variable, have it randomize between a set of numbers (in this case 1 - 3) and set the "Give Item" amount to that variable. This allows the player to get a random chance to harvest extra herbs.

And that's it. If you guys need pictures let me know, but it's a pretty simple system. I included a demo below, it has comments in the events explaining them again just in case you need them.

If you have any questions/comments or need help, please post below smile.gif.



__________________________





Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 05:02 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker