Need help setting up a farming event..

What I would like is for people to be able to plant different seeds in different "plots" (events)

I have a script already which allows me to use items on events and set up as conditional modifiers.  I've got this set up correctly, and it works properly.  What I'm having trouble with is the following:

I have it set to establish a variable based upon what seed is planted for each plot.  Then I have the event set up to read what variable is set along with a switch to properly return the proper crop at the proper time.  The problem lies in the fact that it reads ALL the plots the same without differentiating which one was planted (like if I plant turnip seeds & eggplant seeds, it turns all of them into eggplants because the variable for that is further down the list than for the turnip, even though they are 2 separate variables..  

How can I get each one to read it's own thing without misreading the assorted variables?

BTW:  I tried self-switches but those are already used up on tilling, planting, & watering
we need to know how you set up your events to help you, please provide screenshots of all event pages.


that said:


1) if you use a variable, then all events accessing that variable will get the same result. if a variable determines what is grown in an event, then every event needs its own, different variable.


2) if you check a variable as a condition, the condition is NOT "equal", it's "erqual OR ABOVE". If you want to select a page of the event by the use of a variable, then you need a combination of rising number checks by sorted page number priority. If that is the case for you, then you need to sort the event pages based on the number check of the variable condition.


3) please search for PK8's "self data suite script" - if you can work with scripting, that script will allow you to define self-variables for events. That would make designing multiple harvest-type event much easier.
In this first one, I have the player using a hoe on the ground to till it.[IMG]http://ahrtc.tripod.com/1.png[/IMG]

This is where they plant their seeds and the game sets the variable for which seed is being planted

[IMG]http://ahrtc.tripod.com/2.png[/IMG]

This one is for them to use the watering can to water it.[IMG]http://ahrtc.tripod.com/3.png[/IMG]

This one is the waiting time for the growing[IMG]http://ahrtc.tripod.com/4.png[/IMG]

This is to set the switch for the individual plot..[IMG]http://ahrtc.tripod.com/5.png[/IMG]

And this is the one that's supposed to come out if they planted a turnip seed on plot a.  However, if they planted an eggplant seed on plot b, then plot A will still show an eggplant being grown because the variable is there for it..  This is where I'm having problems..[IMG]http://ahrtc.tripod.com/6.png[/IMG]

and I'm afraid I have no knowledge for scripting..  I am looking at the scripting thing you suggested but it is beyond my understanding...
edited because of a double post (I think) and have no way to delete it..
That's one hard game..
Sylevar, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


You have to assign one variable per event, otherwise you're using the same variable for all events and that won't work out.


You should look into self variables if at all possible, this way you can copy and paste your event without having to change the variable each time.
Sylevar, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

You have to assign one variable per event, otherwise you're using the same variable for all events and that won't work out.

You should look into self variables if at all possible, this way you can copy and paste your event without having to change the variable each time.
I was not aware I was double posting.  If I have done this then I am sorry.. 🙁  

As for my variables, they are each unique.  1 Variable for turnip, 1 for eggplant, etc. 

However.. if I plant turnip in plot a and eggplant in plot b, both variables are active.  Now, when the time is up and the plant grows, it searches for the variable used and because eggplant is there (and comes after turnip in the event page setup) then it is treating plot a as eggplant even though it should be turnips.  This is where I'm struggling.  

I am looking into the self-variable thing (provided by PX8) and will do what I can to understand it, but scripting isn't something that comes naturally to me and so it is difficult for me to understand how it works.
As for my variables, they are each unique.  1 Variable for turnip, 1 for eggplant, etc.
You've mixedup your logic structure.
if you want a single plot to have more than one type of plant in it, then you cannot condition the plot event on the type variables. ONLY ONE page of an event can be active at any given time, you CANNOT have multiple active pages.


if you condition the growth page on the plant type like you did in the example above, the plot can only have one single plant type active at any one time, mixed seeding will not be possible.


If you want to allow mixed seeding (perhaps using several variables with percentages on the type of seed like you describe turnip and eggplant), then those variables can only be allowed to be used in calculatiing the result on the result page of the event, they cannot be used as conditions for guiding to different result pages.


Take one step back and make a flowchart of what you want to happen on your farming plot. Keep in mind that at any given time the player can only be on one point in the flowchart - that should automatically prevent such a logic mixup.


Then rewrite the event following that flowchart.
You've mixedup your logic structure.

if you want a single plot to have more than one type of plant in it, then you cannot condition the plot event on the type variables. ONLY ONE page of an event can be active at any given time, you CANNOT have multiple active pages.

if you condition the growth page on the plant type like you did in the example above, the plot can only have one single plant type active at any one time, mixed seeding will not be possible.

If you want to allow mixed seeding (perhaps using several variables with percentages on the type of seed like you describe turnip and eggplant), then those variables can only be allowed to be used in calculatiing the result on the result page of the event, they cannot be used as conditions for guiding to different result pages.

Take one step back and make a flowchart of what you want to happen on your farming plot. Keep in mind that at any given time the player can only be on one point in the flowchart - that should automatically prevent such a logic mixup.

Then rewrite the event following that flowchart.
Thank you.. I shall reattempt this and if nothing else try to figure out the self variables..  maybe just use a "mix" seed bag and just let them get what they get.
That's one hard game..
Actually it's an easy game if the player remembers that in the very first act DO NOT EAT THE APPLE.
Actually it's an easy game if the player remembers that in the very first act DO NOT EAT THE APPLE.
Actually.. doing that in my game will get you a game over..  I'm following the bible 100% in it (as far as story goes) so to deviate from that will result in a game over.  However, there is plenty of room for free form RP as I am trying to add a ton of other stuff to it as well.  

As for the apple comment, show me where in the bible it says that the forbidden fruit is an apple..  last I looked it said "fruit"

Original thread: https://forums.rpgmakerweb.com/threads/need-help-setting-up-a-farming-event.22344/