[RESOLVED]can i do this

0 Members and 1 Guest are viewing this topic.

Rep: +0/-0Level 73
You sure this is where we parked the airship...
OK I am using VX and want to set up a switch or something that makes it so that in order to leave the first town you must first talk to 5 key people that give either plot info or items that will be used later in the game.

This is a fairly common thing in RPG like when you get the pop up message or a person at the town gate that tells you that you should speak to everyone before you leave...

I set each person to turn on a switch (leave 1-5) after you talk to them and get what ever they have to offer but can not seem to figure out a way to link the 5 switches to one common event that will make the exit point of the town active rather than tell you that you should speak to everyone... Any Ideas?
« Last Edit: November 08, 2011, 01:27:04 AM by couldbne1 »

Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Best RPG Maker User (Scripting)2010 Most Mature Member
conditional branches.

Alternatively, you could use one variable instead of five switches. Add 1 to the variable every time you talk to one of the key people. Have the page condition (or conditional branch) set to check if the variable is 5 or greater.

You could use self-switches so that the same person could not advance the variable more than once. Alternatively, you could just use the one variable, but have one of the events advance it by 1, the next by 2, the next by 4, the next by 8, and the last by 16. That way you could use simply use one other variable and it would be a simple operation to determine if you had already spoken to each individual key person.

Rep: +0/-0Level 73
You sure this is where we parked the airship...
SWEEEET!!! You rock MA using one variable and had each key person advance it by 1 and the self switch to make sure no person could advance it more than 1 and it works perfectly THANK YOU :-)