GUIDE TO SWITCHES AND VARIABLES PART TWO

Beginner's Guide to RMVX

This second part of my Switches and Variables Tutorial Series will deal with how to use multiple switches to activate different events at different times of the game. If you've read and understood the first part of this series, this next bit will be a breeze. So, I'll just jump right in here and give you a scenario...

Your Hero walks up to an NPC, and the NPC asks your Hero to retrieve an item for them. If your Hero hasn't found the item yet, the NPC will say one thing. If your Hero has found the item, the NPC will say something different and thank your Hero then reward them.

Make an Event, and name it NPC.
Make 4 Pages for the Event.
Create 3 Switches. Name the first Item Search, name the second Item Found, and name the third Item Search Over.
Set a graphic for your NPC, and set the event starting conditions as when a button is pushed.

Make another event in the Map where the Item can be found.
Name it whatever you like.
Make 2 Pages.
Make a Graphic for the Item Event...

Let's finish setting up the NPC Event...

NPC EVENT.//

Page One
This is the page where the NPC asks the Hero to get the Item.
So, what you will do here is make the dialogue between the NPC and Hero.
Have the NPC ask the Hero to get the Item...
And, at the end of the dialogue, turn the switch Item Search on.

Page Two
Make this Page start at a button push when the Item Search switch is on.
Have the dialogue be something along the lines of the NPC asking the Hero if he/she has found the Item and possibly have the NPC give directions to where the Item can be found. Just in case the Player forgot where to go.

Page Three
This will be the Page of the Event where the Hero has the Item and the NPC rewards them.
Make this Page start at a button push when the Item Found switch is on.
Have the dialogue be the Hero stating that they found the Item, and the NPC thanking them and possibly giving them some sort of reward.
At the end of this event, turn the switch Item Search Over on.

Page Four
Have this Page start at a button push when the Item Search Over switch is on.
Make some sort of regular dialogue. Or, if this NPC Event has another Quest/Mission/etc. for the Hero, go ahead and set it up however you like to.


Item EVENT.//

Page One
Since this will be a Treasure Chest or an Item laying on the floor, or sommething similar...
Have the first Page be activated by the Hero pushing a button.
The actual Event will be the Hero getting the Item.
After the Hero gets the item, turn the switch Item Found on.

Page Two
Page Two will be a blank event.
If it's a Treasure Chest, make the Graphic be a picture of a Treasure Chest that has been opened.(obviously the First Page would be a closed Treasure Chest if this is the case)
Make it activate by pushing a button and if the Item Found switch is on.
Once again...Leave the actual event itself blank.


And, that's it!
Pretty simple right?

In the next installment, I will teach you how to use Variables!

Posts

Pages: 1
Pages: 1