(if:$dead is "no")[
A level $lv rat $encounter! $enemyhp/$enemyhpmax
what do you do? HP: $playerhp/27
[[ attack->hit]]
[[ defend->def]]
[[reset->white room]] ]
(if:$dead is "yes") [Congrats you got 0 xp! [[reset->white room]]?]
(if:$dead is "you") [(text-colour:red)[Congrats! you died ][[reset?->white room]]](set: _atk to (random:2,4))
(if:$inventory is not (dm:"wepon","none",))[(set: _atk to _atk * 4)]
(set: $enemyhp to $enemyhp - _atk)
(set: _enemydamage to (random: 5,8))
(set: $playerhp to $playerhp - _enemydamage)
you hit the enemy for _atk damage!
The enemy hit's you for _enemydamage damage!
(if: $enemyhp <= 0) [(set: $dead to "yes")]
[[continue->enemy fight]]
hello $name what do you want to do today?
[[Enemy test->enemy fight]]
[[Item's->item]]
(set: $wepon to $inventory's wepon)
wepon: $wepon
coins: $coins <-- useless
(set: $lv to (random:1,3))
(set: $playerhp to 27)
(set: $enemyhp to 15)
(set: $enemyhp to $enemyhp * $lv)
(set: $enemyhpmax to $enemyhp)
(set: $encounter to (either:"draw's near","leap's into action","creep's out ", "scurries out","block's your way"))
(set: $dead to "no")(set: _playerdefence to (random:2,3))
(set: _enemydamage to (random: 5,8))
(set: _enemydamage to _enemydamage - _playerdefence)
(set: $playerhp to $playerhp - _enemydamage)
you defend giving yourself _playerdefence def points!
the enemy hit's you for _enemydamage damage!
(if: $enemyhp <= 0) [(set: $dead to "yes")]
(if: $playerhp <= 0) [(set: $dead to "you")]
[[continue->enemy fight]]item's to grrab
[[grab baseball bat->baseball]]
[[use coin dispenser 2000->coin]]
[[back->white room]]you got a baseball bat!
[[continue->item]]
(set: $inventory's wepon to "bat")(set: _coins to (random:20,60))
the machine turn's twist's and turn's
and you get (text-colour:yellow)[_coins coins]!
[[continue->item]]
(set: $coins to $coins + _coins)(align:"<==")+(box:"====XXXX===")[ Select your name!]
(input-box:2bind $name,"=XX=",1)
[[continue->white room]]
(set: $inventory to (dm:"item1","none","item2","none","item3","none","item4","none","wepon","none",))
(set: $coins to 0)