[Solved] How do you display list elements cleanly in Renpy say statements?
Posted: Thu Jan 11, 2018 4:52 pm
How do you get elements from a list to be displayed without square brackets and the u' prefix?
For example:
Comes back as:
Your cards are [u'Ace', u'King', u'Queen]
When what I would like is for it to come back as:
Your cards are Ace, King, Queen.
Note, I'd like them to display all in one line all at once, so this for example doesn't work either, as it requires a click through and lists each element one at a time:
Any help appreciated!
For example:
Code: Select all
default yourcards = ["Ace", "King", "Queen"]
label start:
"Your cards are [yourcards]"
Your cards are [u'Ace', u'King', u'Queen]
When what I would like is for it to come back as:
Your cards are Ace, King, Queen.
Note, I'd like them to display all in one line all at once, so this for example doesn't work either, as it requires a click through and lists each element one at a time:
Code: Select all
python:
for c in yourcards:
renpy.say(narrator, c)