Game Development Reference
In-Depth Information
@>
: Branch End
: When [Bye]
@>Text: -, -, Normal, Bottom
: : Later.
@>
: Branch End
@>
This type of arena shop, as you can see, is simple enough. Unfortunately, it becomes less and less useful the
more items you want to add to the shop. The Show Choices event command can only hold a total of four choices,
so you would be required to add options merely to switch between Choice branches.
The second way is much easier and has only one quirk that will require scripting to address. However, as the
quirk is graphical in nature, it doesn't affect the event's functionality, so have at it! Take a look at the following:
@>Text: -, -, Normal, Bottom
: : Hello there! This is the Arena Exchange! I can trade
: : you special items for any tokens you may have
: : earned from your Arena participation.
@>Text: -, -, Normal, Bottom
: : Here's what I have available.
@>Control Variables: [0007:PartyGold] = Gold
@>Change Gold: - 9999999
@>Change Gold: + Variable [0006:arenacurrency]
@>Shop Processing: [Elixir]
: : [Defense Piece]
: : [Solomon's Ring]
@>Control Variables: [0006:arenacurrency] = Gold
@>Change Gold: -9999999
@>Change Gold: + Variable [0007:PartyGold]
@>
In the second type of arena shop, we save the player's Gold in a variable appropriately named PartyGold .
In this setup, you would have the player receive his/her arena currency in a variable instead of in the form of items.
Then, we zero out the player's Gold and add his/her arena currency to his/her Gold value. We make sure that the
Purchase Only check box is toggled and then add any items we wish the player to be able to purchase. Set the price
of Elixirs to 5, the price of Defense Pieces to 15, and the price of Solomon's Rings to 30. After the player closes the
shop, we restore his/her Gold and arena currency to their original places. Figure 7-3 is a screenshot of the arena
shop in all of its glory.
Search WWH ::




Custom Search