Game Development Reference
In-Depth Information
The Town Greeter
Our first order of business will be to place the town greeter on the map. Let's place our relevant NPC at (17,34). While
I'm going to have the greeter give the bulk of his conversation via an Autorun, I'll still have him say a few words when
talked to a second time.
@>Text: -, -, Normal, Bottom
: : Welcome to Rocksdale, adventurers. We don't have
: : much, but I hope you enjoy your stay.
First, here's the Parallel Process event that we'll use to flip the switch for the Autorun to trigger.
@>Control Variables: [0002:X] = Player's Map X
@>Control Variables: [0003:Y] = Player's Map Y
@>Conditional Branch: Variable [0003:Y] == 36
@>Conditional Branch: Variable [0002:X] >= 16
@>Conditional Branch: Variable [0002:X] <= 18
@>Control Switches: [0033:MountainArrival] = ON
There's nothing in the above code that we haven't already performed many times before. We want to trigger the
Autorun in this way to prevent the game from hanging. Check the following code to see the Autorun event in all of
its glory.
@>Show Balloon Icon: [Villager], Exclamation, Wait
@>Text: -, -, Normal, Bottom
: : Did you two reach this place through the mines?
@>Text: 'Actor5', 6, Normal, Bottom
: : We did.
@>Text: -, -, Normal, Bottom
: : The villager's eyes widen in disbelief.
@>Text: -, -, Normal, Bottom
: : You must go visit Wren. He lives in the large
: : dwelling at the northeastern part of town. He has
: : been waiting for a long time.
@>Text: 'Actor4', 0, Normal, Bottom
: : For us?
@>Text: -, -, Normal, Bottom
: : I believe it would be best for him to speak of it
: : himself.
@>Text: 'Actor5', 6, Normal, Bottom
: : Very well.
@>Control Self Switch: A =ON
@>
An exclamation balloon will be displayed over the villager's head when the Autorun starts. After the short
conversation, we switch on self-switch A. We make page 2 of the event have a non-Autorun trigger, and that completes
our first task of the chapter.
 
Search WWH ::




Custom Search