Game Development Reference
In-Depth Information
Creating Our Arena Shop
Now we have most of the events set up; however, we have not done anything with the NPC that will exchange tokens
for items. Let's remedy that. There are two ways to set up a token shop.
1.
You award special key items that serve as currency. Then, you set up a special shop that, in
reality, is a series of Show Choices that each costs a differing amount of tokens.
2.
You award arena currency by adding value to a variable. Then, by clever use of currency
swapping, you make it so that you can use the default shop with the currency you have
earned. I'll provide a template for the latter later on.
I'll show both possibilities, but the second is definitely easier than the first. Following, you'll find a listing of half
of the first arena shop possibility.
@>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: [0006:arenacurrency] = [Arena Token] in Inventory
@>Show Choices: Elixir - 5 Tokens, Defense Piece - 15 Tokens, Solomon's Ring - 30 Tokens, Bye
: When [Elixir - 5 Tokens]
@>Text: -, -, Normal, Bottom
: : To confirm, an Elixir will cost you 5 Tokens.
@>Text: -, -, Normal, Bottom
: : You currently have \V[6] Arena Tokens. Will you
: : purchase an Elixir?
@>Show Choices: Yes, No
: When [Yes]
@>Conditional Branch: Variable [0006:arenacurrency] >= 5
@>Change Items: [Elixir], +1
@>Change Items: [Arena Token], -5
@>Text: -, -, Normal, Bottom
: : Enjoy!
@>
: Else
@>Text: -, -, Normal, Bottom
: : You don't have enough Tokens!
@>
: Branch End
@>
: When [No]
@>Text: -, -, Normal, Bottom
: : Okay. See you later!
@>
: Branch End
 
Search WWH ::




Custom Search