I've been playing around with ren'py for a while now and have had a reoccurring problem with lists. I've usually been able to work around it or ignore it, but my latest project requires lists to be practical. So I'm hoping someone can help me with my (probably simple) problem.
Whenever I call an item from a list in dialogue it is displayed as [u'item name']. For example;
Code: Select all
init:
$ animal = ['bunnies', 'kitties', 'doggies', 'ponies']
$ number = [2, 3, 4, 5]
label animal_intro:
$ animal_select = renpy.random.sample(animal, 1)
$ number_select = renpy.random.sample(number, 1)
e "Aww, it's [number_select] adorable [animal_select]."
Aww it's [u'3'] adorable [u'kitties'].
I feel there has to be a way to select items from lists without the [u' '], but I can't figure out how. Any help would be greatly appreciated, thanks in advance!