Ok so we can create random content using the "Print either" function. But is there any way to keep that randomly generated thing for later? Such as, if I use Print either to randomly generate the details of a room, is there any way to save those details so that, if the player entered the room again, it wouldn't generate completely new details?
Comments
I went through your objects tutorial which which got me thinking of the other part of my question... I'm trying to work out how to use a list / array to randomise from? So instead of using: I want something like: Basically the plan is to be able to set up all my lists in one place and then reference those instead of retyping the entire set.
EDIT: I'm using Sugarcane format on v1.4.2 on Windows.
either()
(Sugarcane is a vanilla format), if you pass a single array to it, then it will return a random element from that array. So, you could write your code thus:As an FYI to SugarCube users: SugarCube's implementation of
either()
acts the same with a single array, though differs in behavior when more than a single array is passed to it.