# Dynamic events, and how to do it

**URL:** <https://forum.choiceofgames.com/t/dynamic-events-and-how-to-do-it/93024>\
**Category:** Game Development\
**Tags:** tips, coder\
**Created:** [January 12, 2021, 4:38pm UTC](https://forum.choiceofgames.com/t/dynamic-events-and-how-to-do-it/93024 "2021-01-12T16:38:51Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![choicehacker](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/choicehacker/32/127936_2.png) [@choicehacker](https://forum.choiceofgames.com/u/choicehacker)\
**Post date:** [January 12, 2021, 7:04pm UTC](https://forum.choiceofgames.com/t/dynamic-events-and-how-to-do-it/93024/4 "2021-01-12T19:04:20Z")

</div>

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)](https://forum.choiceofgames.com/t/non-repeatable-strings-code-example-here/41584)

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](https://choicescriptdev.fandom.com/wiki/Arrays) or [How to deal with arrays](https://forum.choiceofgames.com/t/how-to-deal-with-arrays/82561)

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

---

_[View the full topic](https://forum.choiceofgames.com/t/dynamic-events-and-how-to-do-it/93024)._
