Game Development Reference
In-Depth Information
Label (and the subsequent Jump to Label ) are a pair of event commands that let you control
event processing. Normally, events work much like regular computer programs. That is, they
start resolving from the top of the code and end at the bottom. However, there are many
situations in which we don't want this to be the case. For example, here we want the player
to accept the quest given. Of course, it wouldn't be much of a game if he/she decided to say
no. So, we invoke one of RPG's most classic tropes and pull a literal “But thou must!” on them
if they do say no. The Jump to Label command then finds the designated label (in this case,
called Repeat ) and rewinds back to that point.
Show Choices is what allows us to set the yes/no question in the first place. This event
command can hold up to four choices and allows you to decide what to do when the player
tries to opt out of the choice branch (with the Esc key, for example). You can set the choice
branch so that the player cannot opt out of it, designate the choice to be picked if the player
opts out, or create another branch when the player tries to opt out of the first one.
With that done, let's add Noah to the game! First, make your way to the Actors tab in the database and increase
Noah's starting level to 5. Next, go to the port town building map that you created and make your way to the temple.
Behind the altar, add a new event with a total of three pages.
Page 1 should look like this:
@>Conditional Branch: Self Switch A == OFF
@>Text: 'Actor5', 6, Normal, Bottom
: : What brings you to this temple, traveler?
@>Wait: 60 frame(s)
@>Show Balloon Icon: This event, Exclamation, Wait
@>Text: 'Actor4', 0, Normal, Bottom
: : Everything all right?
@>Text: 'Actor5', 6, Normal, Bottom
: : Yes, you looked like somebody familiar.
: : That is all.
@>Control Self Switch: A = ON
@>
: Branch End
@>Conditional Branch: Self Switch A == ON
@>Text: 'Actor5', 6, Normal, Bottom
: : If you'll be staying with us, you might
: : wish to speak with the barkeep over at
: : the local pub. He has eyes and ears all
: : over the continent.
@>
: Branch End
@>
Remember to set Noah's character graphic, as well as keep the event trigger as Action Button. As the preceding
event page displays, there is a Wait event command that can be used when you want to force the game to pause for a
certain amount of time. Sixty frames is equal to a single second for Wait's purposes.
 
Search WWH ::




Custom Search