Game Development Reference
In-Depth Information
@>Text: -, -, Normal, Bottom
: : The top rank is Rank A, but none have ever
: : completed the three bouts at that level.
@>Text: -, -, Normal, Bottom
: : You are completely healed at the end of
: : each match, and you can use items as need
: : be. However, be careful as we do not
: : refund the cost of items used in the Arena.
@>Text: -, -, Normal, Bottom
: : Use them only if they will secure your victory in
: : battle.
@>Jump to Label: MainMenu
@>
: When [Bye]
@>Text: -, -, Normal, Bottom
: : Later.
@>
: Branch End
@>Label: EndPage
@>
The good news is that we're on our way. The bad news is that this is the simplest this event will rather be. Oh,
boy, is it going to get extensive! We're going to want conditionals for each and every possibility. As already noted,
a fresh player will have cleared no ranks. Each rank clear will be stored in a single appropriately named switch.
We need to have a switch for each possible challenge as well. Last, we need a switch to flip when the player wins
his/her matches and another to flip when the player loses his/her matches. What follows are a large series of
conditional branches that will make perfect sense in hindsight. First, we have the conditional branch for when the
player has not cleared Rank D. As you can see in the following code listing, we have a universal sentence that will
show up before the event starts determining which branch will be executed. The sentence asks the player what rank
he/she would like to challenge. As Rank D has not been cleared, the resulting prompt will only have two choices.
Rank D has a cost of 100 Gold for the player, and if the player doesn't have the money, the game will return an error
message and send him/her back to the initial three choices. If the player does have the Gold, it will be deducted,
and the RankDChallenge switch will be flipped.
: When [Arena Battle]
@>Text: -, -, Normal, Bottom
: : What rank would you like to challenge?
@>Conditional Branch: Switch [0008:RankDClear] == OFF
@>Show Choices: Rank D, Nevermind
: When [Rank D]
@>Label: RankDChallenge
@>Text: -, -, Normal, Bottom
: : This will cost you 100 Gold. Are you sure?\$
@>Show Choices: Yes, No
: When [Yes]
@>Conditional Branch: Gold is 100 or more
@>Change Gold: -100
@>Text: -, -, Normal, Bottom
: : Good luck!
@>Fadeout Screen
@>Play SE: 'Move', 80, 100
Search WWH ::




Custom Search