Submit Your Article Guild Wars 2 Forum RPG Maker VX.com
 
RPG Maker
 

 Username:
 Password:
   Not a member? Register!



Home > Tutorials > RPG Maker 2003 > Combining Switches, Fork Conditions (Conditional Branch), Monster Encounters, and Choices

Combining Switches, Fork Conditions (Conditional Branch), Monster Encounters, and Choices


In this tutorial, I decided to show you how to combine switches, fork conditions (a.k.a. conditional branch), and monster encounters. That also means I assume you have some experience with event making. Just follow this easy step-by-step process to create an awesome event for your game:

Step 1) Create a New Event:

the first thing you need to do is create a new event. We'll be using my example event. Set the 'Event Graphic' to a person (doesn't matter who). [Optional] Double-click in the 'Event Commands' box. Select 'Face Graphic' and select the face that matches your person.

PAGE ONE

Step 1) Create a conversation where your event tells the hero he can obtain a key item free if he takes on his challenge.

Step 2) Select a new event, this time select 'Show Choices'. Have three choices available. One to say yes (in whatever way you want;we'll use "Bring'em on!" as an example), another to say no (in whatever way you want; we'll use "Sorry, I can't." as an example), and a third to explain how the challenge works (we'll use "how mnay monsters are there?" as an example).

I'll go out of order with the choices for simplisity's sake and to make it easier to perform.

Step 3) For "How many monsters are there?", all you have to do is explain how the challenge works. Ex. "You battle three groups of monsters. You must beat them all to win the item." This should be your first text box. The second one should go along the lines of this: "You beat a group, you move on. Lose and you have to buy the item. Your party will be fully healed if you beat all three or if you lose to any of them."

Step 4) For "Sorry, I can't." choice, have the event simply tell the hero he can't go on without the item.

Step 5) this next one will take a little time to do. For "Bring'em on!" choice, this part is optional. Put the face graphic in then have the event say "Let us begin!" or something like that.

Step 6) Now select the 'Enemy Encounter' event. Set it to what you want, but make sure it's defeat handler is set so it will execute after defeat. In the 'Victory Handler', have the event say a message if you want, but have the next event be another monster battle by selecting 'Enemy Encounter'. When you choose the monster group, make it a little tougher than the last. Make sure to have the defeat case set to execute custom handler.

Step 7) Repeat Step 6).

Step 8) Have the event tell the hero that he succeeded in beating all three groups. Then erase the face graphic and set the message to say something along the lines of obtaining an item. Then select the 'Item Management' event. Select the item you want to add and add as many as your event wants. Select 'Complete Healing' event and target the entire party.

Step 9) Select the 'Switch Operations' event and make a new switch titled "(item) obtained" and set it ON.

For each 'Defeat Handler', follow the next set of steps.

Step 1) Have your event say something along the lines of that you tried but lost. Then tell him the only way to get the item is to buy it.

Step 2) Select the 'Complete Healing' event and have it target the party.

Step 3) Select 'Switch Operations' event. Make a new switch called "buy (item's name)".

PAGE 2

Step 1) For the left side of the event, the only thing that you change is the switch in the 'Preconditions' section. Change it to the switch you made in the 'Defeat Handler' section of PAGE 1.

Step 2) Have the event say to the hero that he will sell the item for X amount of money. Then select the 'Show Choices' event. Using my example, have two options: "I'll buy it!" and "No thank you.".

Step 3) For the "No thank you." choice, just simply have your event say something in response to the choice.

Step 4) Now for the "I'll buy it!" choice. You'll need to open the 'Conditional Branch' event. Set it to 'Money' 'At least' whatever the price of your item is. Make sure the box at the bottom is checked off.

Step 5) The 'Else Handler' should have the event say something along the lines of the hero trying to trick the event.

Step 6) Have the event tell the character something along the lines of completing a deal. Using the 'Item Management' event, add whatever number of the item you selected.

Step 7) Remember the switch you made on PAGE 1 in Step 9)? Select 'Switch Operations' event and select that switch.

PAGE 3

Step 1) PAGE 3 should look like PAGE 2. The first difference is there should be nothing in the 'Event
Commands' box. The switch in the 'Preconditions' box should be checked off. Select the switch you made on PAGE 1 in Step 9).

There you have it! An event that allows you to battle for a key item (or any item you want). Losing any battle makes you have to buy the item. Enjoy! contact me if you have questions or comments at RPG RPG Revolution, supergreeley1990@live.com, or gamergreeley90@comcast.net. 
Details
Tutorial: Combining Switches, Fork Conditions (Conditional Branch), Monster Encounters, and Choices
Date Listed: Mon, 03 Aug 2009 17:19:41 -0400
Author: DJ rules
Total Hits: 1880


Embed
Short URL:

HTML:

BB Code:



RPG RPG Revolution
RPG RPG Revolution is your #1 stop for game development and console RPG games, as well as those created by people like you. Link to us to support us, so we may grow to be better website community for you.

RPG RPG Revolution is an Privacy Policy and Legal