For my current project, I have a thing set up so that every time the player checks their phone messages, they might get a random message from a telemarketer or a friend or something. This is all coded using the *rand function, and everything runs smooth so I don’t need help with that.
My problem is that if the *rand function produces the same number twice in one playthrough, it’ll play the same message again, which I don’t want to happen. Obviously I could just make a boolean (true/false) flag for each scene that indicates if it’s already been played, but that will become very clunky very fast as I have over 100 of these things.
So my question is if CS allows us to use indexes for variables? Being able to simply add an already played scene’s numeric value to an index and then check that index instead of one of a hundred booleans would be hella nice, but if CS has that functionality, I don’t know what it is. And so I ask you!