Flexible variable numbers
Malphas
11 Sept 2022, 08:18Hello, here I am once again.
I was wondering if it's possible to set a variable like player.alias so that depending on a counter the number increases.
So like player.alias1 gets read if the counter "names" is 1, player.alias1 and player.alias2 are read when the counter "names" is 2 and so on to about ten.
Thanks in advance!
mrangel
12 Sept 2022, 11:43I'm not sure what you mean there. I suspect that what you want to do involves using a list; but it's hard to come up with a better explanation without understanding what you are trying to do.
Do you want your own code to read these multiple variables? Or when Quest is displaying the player's alias? Or to allow the player to use multiple aliases instead of "me" in commands?
Or do you want player.alias
to automatically change to something like "Bob, Bill, and Henry" when the number is set to 3? Or do you want it to pick one at random?