I'm trying to randomise certain words within dialogue so they will change each time the text object is displayed. As an example, a character might say:
"I'm a (carpenter/smith/doctor) from the (city/coast/mountains)."
One of the words in brackets will be randomly chosen each time.
I can think of a couple of long-winded workarounds to achieve this but I'm wondering whether there's a quick and easy way that I'm overlooking. Ideally, I guess I would like to be able to set a global variable to a random bit of text in the same way that it can be set to a random number. So I could have a variable called 'occupation' and set it to something like this: choose(carpenter,smith,doctor). Then I could reset it each time after use. I know that exact way doesn't work but maybe there's a similar function?
Thanks in advance for any help.