- Sep 30, 2018
- 102
- 70
Hi guys,
a new easy challenge for you i'm sure.
First, I define a Python Tuple (because i like its static format) :
Second, I want to display all datas from this tuple.
This first way is OK :
This second way doesn't work. Only the first record is display and pgm is ending.
Like always, an idea, a dream, a cup of tea ?
a new easy challenge for you i'm sure.
First, I define a Python Tuple (because i like its static format) :
Python:
define dlgTupleDouble = (
("pictureOne.jpg", "First Speaker talk"),
("pictureTwo.jpg", "Second Speaker talk"),
("pictureThree.jpg","Third Speaker talk")
)
This first way is OK :
Python:
# Direct display in for loop => OK (display the 3 records)
python :
for idTalk, valueTalk in dlgTupleDouble:
idSpeaker = idTalk
renpy.say(idSpeaker, valueTalk)
Python:
# Using a label DisplayScene => BAD (display the first and finish)
python :
for idTalk, valueTalk in dlgTupleDouble:
renpy.call("displayScene", idTalk, valueTalk)
label displayScene(idTalker="", dlgScene=""):
if idTalker != "":
$ idSpeaker = idTalker
idSpeaker "[dlgScene]"
else:
"No speach..." # Never execute
return #WITH OR WITHOUT NO CHANGE
Last edited: