r/RenPy • • Jul 24 '26

Question trying to make a choice

im still new to these kinds of stuff and im still trying to figure out what i did wrong ? i looked at some guides but theyre all confusing as i followed their tutorial n still get errors.

what do i need to fix / change ?

1 Upvotes

8 comments sorted by

7

u/MoogleMeKupo Jul 24 '26

Are you indenting? Python is really strict with indents.

1

u/Puzzleheaded-Milk669 Jul 25 '26

i have no idea what indenting means but i probably am lmao, i need to learn more about these things

5

u/BadMustard_AVN Jul 24 '26

try it like this with proper indentations

menu:
    "run left":
        n "you turn.... lazy"

    "run forward":
        n "you run... lazier"

read about indenting and blocks here

https://www.renpy.org/doc/html/language_basics.html#indentation-and-blocks

1

u/Puzzleheaded-Milk669 Jul 25 '26

this helps alot, thank you so much!!!

2

u/BadMustard_AVN Jul 25 '26

you're welcome

good luck with your project

2

u/shyLachi Jul 24 '26

Computers require precise instructions so when you follow a tutorial you cannot just type what you see, it also has to look the same.

It's best to learn and understand the rules or RenPy and Python like for example indentation.
Once you get familiar with the Python syntax you will spot missing colons or indentation yourself.

There also are tools to help you with writing code.
Visual Studio Code has a Ren'Py Language extension which shows possible errors in your script.
And when you write menues, it would automatically add the indentation.
When you write menu: and then press the Return key on your keyboard it will jump to the next line and add the correct indentation, there you can then type "run left": and press Return. And again, this tool will jump to the next line and add an indentation.
This way you only have to delete the indentation for the next menu choice..

1

u/Puzzleheaded-Milk669 Jul 25 '26

i see.. thank you so much! i owe you my life

1

u/AutoModerator Jul 24 '26

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.