(set: $name to prompt("Enter your name?","Nameless"))
Hello $name
[[Begin -> Entrance]]
(Set: $northcoins to 15)
(Set: $eastcoins to 10)
(Set: $southcoins to 50)
(Set: $westcoins to 25)
(Set: $deadcoins to 5)You're in the entrance to a dark dungeon. There are rooms to the north, south, east, and west. You see a tiny passageway in the wall.
[[Go North -> North Room]]
[[Go East -> East Room]]
[[Go South -> South Room]]
[[Go West -> West Room]]
[[Enter Passage -> Dead Room]]
(if: $wealth > 99)[[Leave the dungeon -> Exit]]
You have $wealth coins. You're in the north room of the dungeon.
You find $northcoins coins.
(Set: $wealth to $wealth + $northcoins)
(Set: $northcoins to 0)
You have $wealth coins.
[[Go south -> Entrance]] You're in the east room of the dungeon.
You find $eastcoins coins.
(Set: $wealth to $wealth + $eastcoins)
(Set: $eastcoins to 0)
You have $wealth coins.
[[Go west -> Entrance]] You're in the south room of the dungeon.
You find $southcoins coins.
(Set: $wealth to $wealth + $southcoins)
(Set: $southcoins to 0)
You have $wealth coins.
[[Go north -> Entrance]] You're in the west room of the dungeon.
You find $westcoins coins.
(Set: $wealth to $wealth + $westcoins)
(Set: $westcoins to 0)
You have $wealth coins.
[[Go east -> Entrance]] It smells like something died in here.
You find $deadcoins coins.
(Set: $wealth to $wealth + $deadcoins)
(Set: $deadcoins to 0)
You have $wealth coins.
[[Go back -> Entrance]] You've successfully looted the dungeon.