Jump to content
Sign in to follow this  
Tsukihime

Understanding and Extending Event Choices

Recommended Posts

This article discusses the event choices and how we can manipulate it using scripts to allow developers to easily provide more than 4 choices to the players without using any script calls or comments.

 

We start by understanding what how choices work, some limitations in the choice system, and finally I propose a solution that is easy to use and present an implementation.

 

Background

 

RPG Maker provides built-in support for creating a set of choices and what happens when a player chooses a particular choice. It is available in the event editor as the “Show Choices†command.

 

460x219xUnderstandingLargeChoices3.jpg.p

 

When you click on the command, it will display a dialog for setting up your choices

 

336x283xUnderstandingLargeChoices4.jpg.p

 

You have 5 choices available to work with. You will understand why there are 5 later.

The cancel behaviour dictates what happens when the player presses the cancel button during choice selection.

  • If it’s disallowed, nothing happens when the player presses cancel. You must pick an option.
  • If it’s one of the choices, then that choice will be selected when the player presses cancel.
  • If it’s a branch, it will execute a 5th option (which does not appear in the selection).
Each type of cancel behaviour has its own purpose depending on what you need, so you should experiment with each option to understand how they work.

 

Choice Branches

 

Here’s a setup with two choices.

 

562x264xUnderstandingLargeChoices5.jpg.p

 

You can see that under each choice, there are more commands. These are called branches, and you can see that the indentation specifies which choice they correspond to. You can have any number of commands under each branch, including more “show choice†commands.

 

Here’s the same setup, except we use the “branch†cancel option. A new branch now appears662x262xUnderstandingLargeChoices6.jpg.p

 

And this is how it appears in the game. As you can see, the cancel option does not appear in the list of selections.

 

541x416xUnderstandingLargeChoices7.jpg.p

 

Displaying Message

 

Sometimes you might want to display a message along with your choices. You can do this by simply using a "show text" command immediately before a "show choice" command. The event interpreter knows that you want to show this message while the choices are displayed.

 

UnderstandingLargeChoices9.jpg

 

More Choices?

 

So far, everything runs smoothly. You can create up to 4 labeled choices and have the player make a selection. You can then set up cancel behaviours to further control what happens when the player decides none of the options are good and wants to back out.

 

Now what happens if you want to have more than 4 choices?

 

Read the rest at HimeWorks!

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted