i just started using renpy and python to code a visual novel, and ive already run into a problem. i know its probably super easy to fix, but im struggling and its embarrassing. ive actually run into a few while trying to run what i have so far, but ill start with the top one so i can see what the others are as they get fixed
python:
name = renpy.input("What's your name?")
name = name.strip() or "You"
d "Oh, [name], what a wonderful name! I'm Domrick, by the way."
i have this, but every time i try to run it, im told that the last line there has 'invalid syntax'. what does that mean, and how can i fix it?
thank you so much for anyone who can helpl! im super frustrated i got defeated so easily, but ive never coded anything before and its all new to me
EDIT: okay for some reason it didnt indent where i indented, but the three lines after 'python' are in fact indented, though just once. in case thats relevant
help! simple problem
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.
-
- Newbie
- Posts: 7
- Joined: Sun Jun 17, 2018 10:46 am
- Tumblr: birdybirdnerd
- Contact:
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: help! simple problem
The dialogue line should not be part of the python block.
Code: Select all
python:
name = renpy.input("What's your name?")
name = name.strip() or "You"
d "Oh, [name], what a wonderful name! I'm Domrick, by the way."
-
- Newbie
- Posts: 7
- Joined: Sun Jun 17, 2018 10:46 am
- Tumblr: birdybirdnerd
- Contact:
Re: help! simple problem
THERE it goes. i had the indentations all messed up apparently. it runs now! thank you so much! ill probably be back after i write some more and come across another problem, but for now: thank you!!!!
Who is online
Users browsing this forum: AWizardWithWords, piinkpuddiin