I've made a randomizer for the height and the eye color of some NPCs and putting the results in variables, however, the variables aren't being displayed right in the game. I'm assuming that I'm assigning them wrong.
Using the following code:
Code: Select all
$ eyecolorlist = ["red", "blue", "green"]
$ random = renpy.random.randint(0, 2)
$ eyecolor = eyecolorlist[random]
"The character has [eyecolor] eyes"
However, using this code:
Code: Select all
$ eyecolorlist = ["red", "blue", "green"]
$ random = renpy.random.randint(0, 2)
$ eyecolor = eyecolorlist[random], "eyes"
"The character has [eyecolor]"
Thanks in advance.