Game Development Reference
In-Depth Information
The preceding seems rather unassuming, but here's what happens in the event code when the player chooses
Arena Battle:
The game determines, via the analysis of various related switches, what ranks of the arena
(if any) the player has cleared.
A Show Choices prompt appears, based on said analysis.
1.
If the player has not cleared any ranks, the prompt will show Rank D and Nevermind.
2.
If the player has cleared Rank D, the prompt will show Rank D, Rank C, and Nevermind.
3.
If the player has cleared Rank C, the prompt will show Rank D, Rank C, Rank B, and
Nevermind.
4.
If the player has cleared Rank B, there will be two prompts. The first will contain Rank
D, Rank C, Next Page, and Nevermind. Clicking Next Page will reveal the second
prompt, which contains Previous Page, Rank B, Rank A, and Nevermind.
5.
As Rank A is the highest rank, clearing it doesn't change anything.
When the player chooses a rank to challenge, the arena NPC will charge the player a certain
amount of gold (the higher the rank, the higher the cost). If he/she accepts the cost, it is
deducted from the player's gold, and he/she is transferred to the proper arena map.
And that's only what's on the first map. There is an Autorun event that triggers, based on each separate rank, once
the player reaches the second one, which serves out the relevant fights. If the player wins all three matches or is defeated,
he/she is sent back to the first map, to speak with the arena NPC once again, which will either congratulate the player
and give him/her a reward (in the case of a win) or urge him/her to do better next time (in the case of a loss).
Creating the Arena Sign-up
I'm going to make this slightly simpler than the version I came up with and disregard party members. Eric and Noah
will be able to both participate in the arena at the same time. Even then, I have to note that a total of ten switches
are used for this event. (You would need one more switch on top of that for every character you want to temporarily
remove from the player's party.) Here's the first stage of our arena event.
@>Text: -, -, Normal, Bottom
: : Welcome to the Arena, where battlers from
: : all over existence come to do battle!
@>Label: MainMenu
@>Text: -, -, Normal, Bottom
: : What can I do for you?
@>Show Choices: Arena Battle, How does this work?, Bye
: When [Arena Battle]
@>
: When [How does this work?]
@>Text: -, -, Normal, Bottom
: : I'm glad you asked, wanderer.
@>Text: -, -, Normal, Bottom
: : Essentially, you start at the bottom of the ladder,
: : at Rank D. Win three matches in Rank D and you
: : will unlock Rank C, and so forth. It costs Gold to
: : compete in each rank, so mind your pocket.
 
Search WWH ::




Custom Search