I just learned how to use renpy.random.choice to generate a random element from a list of them, for example:
Code: Select all
$ randfruit = renpy.random.choice(['apple', 'orange', 'plum'])
"Shop Clerk" "Would you like a [randfruit]?"
For example, whether the Shop Clerk says 'apple', 'orange' or 'plum' is totally random, but if she were to say 'apple', what she says after saying 'apple' is different than what she says after saying 'orange' or 'plum'. How would I make this happen? An example in code would be much appreciated, and if you have trouble understanding what I'm saying, sorry, I will try to elaborate better. Thank you so much!