Game Development Reference
In-Depth Information
@>Conditional Branch: [Treasure Note 2] in Inventory
@>Control Variables: [0015:TreasureNotesForSale] -= 1
@>
: Branch End
@>Conditional Branch: [Treasure Note 3] in Inventory
@>Control Variables: [0015:TreasureNotesForSale] -= 1
@>
: Branch End
@>Conditional Branch: [Treasure Note 4] in Inventory
@>Control Variables: [0015:TreasureNotesForSale] -= 1
@>
: Branch End
@>Conditional Branch: [Treasure Note 5] in Inventory
@>Control Variables: [0015:TreasureNotesForSale] -= 1
@>
: Branch End
@>Conditional Branch: Variable [0015:TreasureNotesForSale] == 0
@>Text: -, -, Normal, Bottom
: : I don't have any Treasure Notes for sale!
@>
: Else
@>Text: -, -, Normal, Bottom
: : I have \V[15] Treasure Notes for sale. Would you
: : like to purchase one?
@>Show Choices: Yes, No
: When [Yes]
@>Call Common Event: [Treasure Note Purchase]
@>
: When [No]
@>Text: -, -, Normal, Bottom
: : Take care!
@>
: Branch End
@>
: Branch End
@>
For the second event, we have the player input a number from 1 to 5. If the NPC has that particular treasure note
in stock, he'll give his price and ask if the player wants it. If the player already has that treasure note, the NPC will say
as much. Check the following code to see the framework for the second common event:
@>Text: -, -, Normal, Bottom
: : \C[3]Please input the Treasure Note number you would
: : like to purchase (1-5 are valid). Input 0 to cancel.
@>Input Number: [0014:TreasureNoteNumber], 1 digit(s)
@>Conditional Branch: Variable [0014:TreasureNoteNumber] == 0
@>
: Branch End
 
Search WWH ::




Custom Search