I’m not exactly a programming genius, so forgive if my questions are ill informed…
I am starting to concept out a text based adventure game, being inspired by ones like Master of Flesh and Forest & Shack. I’d rather use an engine like Twine 2 for such a project. After getting started, I’m anticipating a few issues as things get more involved.
Does anyone know if it’s possible to create a function every page runs? Ideally something I would build in another page so it doesn’t clunk down the existing page. Something that would read the variables (weight, hunger) and determine if something has happened (fat1 is false and weight > 180) [display fat1 growth text, set fat1 to true].
What I’m envisioning is something that I can simply call on at the end of every page to check variables and display flavor text, when conditions are met. I’d rather not build this big function I have to paste on every single page. Thoughts?