Shop demo
Money: $money
<<if not $inventory.contains("potion")>>\
Magic Potion: 5g [[Buy->Buy potion]]\
<<else>>\
You have already bought a magic potion\
<</if>>
<<if not $inventory.contains("lockpick set")>>\
Lockpicks: 1g [[Buy->Buy lockpicks]]\
<<else>>\
You have already bought a lockpick set\
<</if>>
<<if not $inventory.contains("featherfall wand")>>\
Featherfall wand: 10g [[Buy->Buy featherfall wand]]\
<<else>>\
You have already bought a featherfall wand.\
<</if>>
!!!Inventory:
<<print $inventory.join(", ")>><<set $inventory.push("potion")>>\
<<set $money = $money - 5>>\
You have bought a potion for 5gp!
[[Main shop]] <<set $inventory.push("lockpick set")>>\
<<set $money = $money - 1>>\
You have bought a lockpick set for 1gp!
[[Main shop]] <<set $inventory.push("featherfall wand")>>\
<<set $money = $money - 10>>\
You have bought a featherfall wand for 10gp!
[[Main shop]] <<set $money = 50>>
<<set $inventory = []>>
[[Main shop]]