Posted May 12, 2022 by stales
this is part of a technical writeup, for the initial concept, see Jam Entry
Scripting and Quests is a core mechanic in this game.
Each turn, the player can 'visit' a location. The boardgame implantation would be drawing a 'visit' card from a deck, and doing the instructions listed in a atlas of gameplay.
In a computer, we can automate this.
To do this, I wrote a custom scripting engine that could process quests. Scripts are just arrays of text, with some special annotations:
A common flow of a script would be to show some text the first time a player arrives, and check for a keyword. Then the next visit, that keyword can make them jump to a different part of the script.
This can make some fairly complex scenarios. It reminds me a lot of writing code using 'goto'. Thankfully, the lack of variables other than keywords stops this scripting language being a full-blown programming language, and keeps the complexity down a little.
Below is a script from the game, see if you can guess what it does?
---