RPG Crisis Community Forums: Chest with Key Tutorial - RPG Maker XP - Tutorials/Scripts - RPG Crisis Community Forums

Jump to content

Chest with Key Tutorial Bookmark

User is offline Lyricalias 

  • Advanced Member
    • Group: Global Moderators
    • Posts: 1,466
    • Joined: 24-June 10
    • Time Online: 2d 16h 31m 9s

    24
    955/5620
    Hit Points
    2780/2780
    Magic Points
    71%
    Experience
    : ADVENTURER
    ADVENTURER


    Tutorial/Script info

    • Added on: 01 August 2010 - 10:45 PM
    • Date Updated: 01 August 2010 - 10:46 PM
    • Views: 342
    Description: This one details how to make a locked chest in RMXP that you need a key to open.

    Written by Willowsidhe

    First of all, create the key in your items database. It should just be a general item with no value.

    Then.....

    1.) Create a new event and select a chest graphic.

    2.) Double click on the event commands list to bring up the event commands.

    3.) On page 1 of the event commands, select CONDITIONAL BRANCH.

    4.) On page 4 of the CONDITONS, select the radio button next to ITEM and select the Key you just made from the drop down box.

    5.) Make sure the box that says SET HANDLING WHEN CONDITIONS DO NOT APPLY is checked and press ok.

    6.) Double click on the @> under the CONDITIONAL BRANCH you just created.

    7.) Go to page 2 of event commands and select SET MOVE ROUTE.

    8.) In the drop down box, select THIS EVENT.

    9.) Select PLAY SE in the third column and this will bring up the sound effects menu. Select Chest01 Sound effect and click ok.

    10.) Select TURN LEFT in the second column.

    11.) Select WAIT and then put 4 FRAMES.

    12.) Select TURN RIGHT in the second column.

    13.) Select WAIT and then put 4 FRAMES.

    14.) Select TURN UP in the second column.

    15.) Select WAIT and then put 4 FRAMES.

    16.) Select OK at the bottom of the MOVE ROUTE window to return to the event commands.

    17.) Double click on the @> under the move route you just created to bring up the event commands again.

    18.) Go to the 1st page of event commands and select CHANGE ITEMS in the second column (or CHANGE GOLD or CHANGE WEAPONS or ARMOR, depending on what you want the character to find in the chest).

    19.) Select the item, weapon, armor or gold you want the character to find select INCREASE in the OPERATION field. Select the amount of items you want the character to obtain in the OPERAND field and press OK.

    20.) Double click the @> under the CHANGE ITEM you just created and bring up the event commands again.

    21.) Select SHOW TEXT on the first page of event commands.

    22.) Type a message such as "YOU FOUND A POTION!" and press ok.

    23.) Double click the @> under the message and select CONTROL SELF SWITCH on the second column, first page.

    24.) Turn self-switch A to the on position.

    25.) At the top of the event page, select NEW EVENT PAGE to create new page. This is where we will put what happens after the character has already obtained the item in the chest.

    26.) On the new page, under CONDITIONS, select SELF SWITCH A is ON and make the graphic a graphic of the open chest.

    27.) Double Click on the event commands list and then select SHOW TEXT. Type in a message such as "THERE'S NOTHING IN HERE!".

    28.) Now go back to PAGE 1 of the event and double click the @> under where it says ELSE.

    29.) Select SHOW TEXT on the first page of event commands.

    30.) Type a message such as "YOU NEED A KEY TO OPEN THIS CHEST." This is what will be displayed when the character does not have the key in their possession.
    0
    • View members tutorials/scripts
    • RPG Maker XP

    Share:

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