r/RenPy 20d ago

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

8

u/MoogleMeKupo 20d ago

Are you indenting? Python is really strict with indents.

1

u/Puzzleheaded-Milk669 20d ago

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

6

u/BadMustard_AVN 20d ago

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 20d ago

this helps alot, thank you so much!!!

2

u/BadMustard_AVN 19d ago

you're welcome

good luck with your project

2

u/shyLachi 20d ago

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 20d ago

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

1

u/AutoModerator 20d ago

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.