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".
Halp pls, can't print my list!
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.
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.
-
HeavyHeartedBilly
- Newbie
- Posts: 3
- Joined: Mon Apr 24, 2017 1:20 pm
- Contact:
Halp pls, can't print my list!
- Attachments
-
- The pic of the code.
- Udklip.PNG (8.85 KiB) Viewed 566 times
Re: Halp pls, can't print my list!
Maybe you're just missing a "python:" statement to start the code block? Something like: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".
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!
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!
It worked! Thanks for the help!
Who is online
Users browsing this forum: Google [Bot]