RPG Crisis Community Forums: Guide to Switches & Variables (2 of 3) - RPG Maker VX - Tutorials/Scripts - RPG Crisis Community Forums

Jump to content

Guide to Switches & Variables (2 of 3) Bookmark

User is offline Mako Star 

  • Crisis Avenger
    • Group: Administrators
    • Posts: 1,704
    • Joined: 28-June 10
    • LocationCharleston, SC
    • Time Online: 1d 11h 57m 6s

    26
    1254/6600
    Hit Points
    3270/3270
    Magic Points
    60%
    Experience
    : ADVENTURER
    ADVENTURER


    Tutorial/Script info

    • Added on: 28 June 2010 - 07:34 PM
    • Views: 739
    Description: Mako's Starter Guide to Switches & Variables
    Part 2 of 3

    Dealing with Multiple Switches

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

    Quote

    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.


    Quote

    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!
    0
    • View members tutorials/scripts
    • RPG Maker VX

    Share:

    Powered by (IM) Tutorials 1.1.2 © 2011, by Michael McCune