@>Show Text: "Hi what'd you like to buy today?"
@>Show Choices: Item 1, 10 Gold
Leave
@>If Item 1, 10 Gold:
@>Control Variables: [1: Gold] = Gold
@>Conditional Branch: Variable [1] >= 10
@>Show Text: You buy the item.
@>Change Gold: -10
@>Change Items: Item + 1
@>Self Switch A = On
: Else
@>Show Text: You don't have enough money!
: End
@>If Leave
@>
: End