Help - Search - Members - Calendar
Full Version: switches and junk
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Discussion
shafermitch@gmail.com
ok so for the last hour these two events have made so mad i considered throwing my laptop into oncoming traffic. ive went onto the chat twice and both times the advice i got didnt work. maybe im just retarted and im missing somethign but this is so frustrating. i want to make that farmer like i was talking about tell you to harvest 24 crops before you get the gold here is the event.

txt
you should harvest these crops if u do theres 25 gold for you

show choices yes no

when yes
thanks just walk up to the crops and hit the action button to harvest them

when no
oh ok then

branch end

conditional branch variable crop = 24
txt
heres 25 gold

+ 25 gold

else
txt you havent harvested the crops yet

Branch end



but every time ill go harvest the crop and he will only say you haven't harvested the crop yet. and if you say yes to harvesting them he automatically says you haven't harvested the crops yet and i dont want that to be in there either.
please leave a detailed comment on how to fix this problem


the second was i had an event that was on autrun so right when you walked into the room your mom would walk up to you using the fixed move rout and then she would say bla bla bla and walk back using the moved fix rout. then the branch would end but whenever i playtested it she would start the even over again autimaticly and someone online told me top use te parallel process but that didnt work either. so if you could leave a detailed response on how to fix this as well i would be grateful. thank you
Knot
Well the problem with the first event is that you have to split it up.


First set a selfswitch A command after
"when yes
thanks just walk up to the crops and hit the action button to harvest them"

then set up a new page with the condition "selfswitch A is on".


Now you have to move this part to the new page and also add in a "set variable" command if you have not already:

control variables: [001: crop]=[crop In Inventory] (this will check the amount of crops in the inventory.)
conditional branch variable crop = 24
txt
heres 25 gold

+ 25 gold

else
txt you havent harvested the crops yet

Branch end

This will mean that if the player said yes then it will move on to the second page and check if the player has enough crops but if the player says no then it will just repeat the first page until the player answers yes.





For your second problem I would once again place a selfswitch at the end of the event and then create a new page but leave it blank with the condition that "selfswitch A is on". That should stop it.

Good luck!

Sunlight
Okay so I have created a project with your desired effects.

Here is a video of how it works in-game. (Sorry for the quality, first video).

http://www.youtube.com/watch?v=D_KopG9p9YU

Here is my humble little farm.



Here is a tutorial of how it works. So the basic idea is none of the strawberries work until you have accepted the farmer's job. To accomplish this a switch is needed which can be seen here.

[Show/Hide] The Switch.

After this a variable need to be created, which can be seen here.

[Show/Hide] The Variable.

Once you have these two you can put them together to create the "quest". You will need three pages on your farmer, here are those three pages.




As you can see when you talk to the farmer the first time and say "No" nothing happens and the strawberries remain un-pickable, once you accept his "quest" the variable and switch become active.

On page two you can see that if you return to the farmer before the "quest" is complete and say yes, it checks if you have picked all 24 strawberries. The way this works is each strawberry has a variable modifier which increases the counter by 1, and 0 + 24 = 24 after all the strawberries have been picked.

Here is the strawberry event.



As you can see from page two I have created a strawberry in the Item Database and awarded the player with one as well which isn't needed, you can also see that page 1 is only there for if the player wants to nick those strawberries before he has the "quest". From the picture of page 2 you can tell from the left side that it will only activate if the switch in page 1 of the farmer is active.

So now that your farmer quest is done, how about his wife and your second question.

Here is the farmers house.






As you can see this one is easy, just make sure you have the two pages like I have and use a Self Switch.

Hope I helped.

- Sunlight -
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.