Halp pls, can't print my list!

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
HeavyHeartedBilly
Newbie
Posts: 3
Joined: Mon Apr 24, 2017 1:20 pm
Contact:

Halp pls, can't print my list!

#1 Post by HeavyHeartedBilly » Mon Apr 24, 2017 2:09 pm

I have had a problem with renpy for a while now.
The problem is as to how I print my list where i have made a recap of all the decisions the player have made. My code look like this:
for Decisions in List:
print Decisions
The error code says "expected statement" and then there is an arrow that points form "Decisions" to "in".
Attachments
Udklip.PNG
The pic of the code.
Udklip.PNG (8.85 KiB) Viewed 566 times

renpic
Newbie
Posts: 19
Joined: Sat Apr 08, 2017 1:07 pm
Location: Europe
Contact:

Re: Halp pls, can't print my list!

#2 Post by renpic » Mon Apr 24, 2017 6:17 pm

HeavyHeartedBilly wrote:I have had a problem with renpy for a while now.
The problem is as to how I print my list where i have made a recap of all the decisions the player have made. My code look like this:
for Decisions in List:
print Decisions
The error code says "expected statement" and then there is an arrow that points form "Decisions" to "in".
Maybe you're just missing a "python:" statement to start the code block? Something like:

Code: Select all

    python:
        say("","Your choices were:")
        for item in List:
            say("",item)

HeavyHeartedBilly
Newbie
Posts: 3
Joined: Mon Apr 24, 2017 1:20 pm
Contact:

Re: Halp pls, can't print my list!

#3 Post by HeavyHeartedBilly » Wed Apr 26, 2017 6:10 am

I'll try it, thx for the response

HeavyHeartedBilly
Newbie
Posts: 3
Joined: Mon Apr 24, 2017 1:20 pm
Contact:

Re: Halp pls, can't print my list!

#4 Post by HeavyHeartedBilly » Wed Apr 26, 2017 6:19 am

It worked! Thanks for the help!

Post Reply

Who is online

Users browsing this forum: Google [Bot]