textadventures / quest

Create text adventure games
http://textadventures.co.uk/quest
MIT License
304 stars 69 forks source link

Switch function does not work #1180

Closed pandadrivers closed 2 months ago

pandadrivers commented 8 months ago

I follow the tutorial, at the Custom commands page at the bottem there is an explanation about the switch function. But when I do this and run the game I am getting an error on the keys: Error running script: Error compiling expression 'troll': Unknown object or variable 'troll' Screenshot_1 Screenshot_2

alexwarren commented 2 months ago

You don't have a troll object in your game, if you add one this should work.