Need help setting up a farming event..

Sylevar

Villager
Member
Joined
Jan 10, 2014
Messages
8
Reaction score
0
First Language
English
Primarily Uses
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
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,367
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
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.
 

Sylevar

Villager
Member
Joined
Jan 10, 2014
Messages
8
Reaction score
0
First Language
English
Primarily Uses
In this first one, I have the player using a hoe on the ground to till it.


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



This one is for them to use the watering can to water it.


This one is the waiting time for the growing


This is to set the switch for the individual plot..


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..


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...
 
Last edited by a moderator:

Sylevar

Villager
Member
Joined
Jan 10, 2014
Messages
8
Reaction score
0
First Language
English
Primarily Uses
edited because of a double post (I think) and have no way to delete it..
 
Last edited by a moderator:

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
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

Villager
Member
Joined
Jan 10, 2014
Messages
8
Reaction score
0
First Language
English
Primarily Uses
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,367
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
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.
 

Sylevar

Villager
Member
Joined
Jan 10, 2014
Messages
8
Reaction score
0
First Language
English
Primarily Uses
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.
 

Sylevar

Villager
Member
Joined
Jan 10, 2014
Messages
8
Reaction score
0
First Language
English
Primarily Uses
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"
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top