Dynamic events, and how to do it

Hi @Doriana-Gray. There are many approaches to achieve what you are trying to do. Random is a simple way, and it can be safe if you pay attention - mainly you need to do *random before a *page_break, or the value may change if you click on the stats. It also works with *goto.

@Nahim_Kerman discussed a problem similar to yours, here. You may use some of his ideas.
“For example. I envision this kind of code as a way for, at the beginning of each game, a set of scenes would be sorted. Each scene will an independent event that must occur just once in each session. My idea is that way you can add replay-ability to your game.”
Non repeatable strings (code example here)

There is some basic support of lists in CS, but it’s a little clunky. You can have a look here: https://choicescriptdev.fandom.com/wiki/Arrays or How to deal with arrays

Feel free to ask additional questions. Good luck on your game!

2 Likes