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.
-
serusk
- Newbie
- Posts: 13
- Joined: Sun May 15, 2011 1:33 pm
- Projects: Aywen, Dorchadas
-
Contact:
#1
Post
by serusk » Sun May 15, 2011 1:41 pm
I'm working on a game, and I'm use the DSE framework thing and i'm sure I'm tpying this in right but I keep getting an error.
Here's what my code looks like,
Code: Select all
# The game starts here.
label start:
display_stats("strength"=True, bar=True, value=True, max=True)
and Heres the error i keep on getting
Code: Select all
# I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 54: expected statement.
display_stats("strength"=True, bar=True, value=True, max=True)
^
What am I suppose to do?
-
PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
-
Contact:
#2
Post
by PyTom » Sun May 15, 2011 2:03 pm
When running python code, you need to make it part of a python statement. Here, you probably want the single-like python statement, which begins with a dollar sign:
Code: Select all
label start:
$ display_stats("strength"=True, bar=True, value=True, max=True)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
-
serusk
- Newbie
- Posts: 13
- Joined: Sun May 15, 2011 1:33 pm
- Projects: Aywen, Dorchadas
-
Contact:
#3
Post
by serusk » Sun May 15, 2011 2:06 pm
Thanks, but now I get this error
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 57: keyword can't be an expression