Page 1 of 1

Game Ending

Posted: Thu Jul 12, 2018 2:20 pm
by night_chan
Hello guys! I'm trying to end one of the branches in my game with a pop up like "Ending 3" I looked up at renpy documentation but i can't seem to get it to work.
https://pasteboard.co/Hu9hYfx.png
edit: I added the return but still it gives mean indentation error at line 206. Help pls!! :cry:

Re: Game Ending

Posted: Thu Jul 12, 2018 2:52 pm
by DannX
Indentation error means that the statement in line 206 is not properly aligned with the rest, this is a Python and Ren'Py convention and it is very important to follow it. It's hard to see in the small image (and my poor vision may be deceiving me), but I think you have to move the last dialogue line just one space.

Code: Select all

#This statement is not indented
label start:

    "This text is indented four spaces."
    
    "This text is also indented."
    
    return
    
I recommend you look in your script editor (jEdit?) to see if it has an option to show indentation lines, so it is easier for you to see where is the error when something like this happens.