Return goes to a random choice

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.
Post Reply
Message
Author
Skyleft
Regular
Posts: 29
Joined: Wed Feb 11, 2015 4:52 pm
Contact:

Return goes to a random choice

#1 Post by Skyleft »

Basically, I was making an end, and when it's supposed to end, instead of ending it goes to a random part of the game where I have to choose something.
I don't know if something is weird with the code.

Code: Select all

        stop music
        scene bg black
        with dissolve4
        pause (3)
        ""
        return
I've finished two other ends before, and those work well.
Last edited by Skyleft on Sun Dec 22, 2019 2:50 pm, edited 1 time in total.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Return goes to a random choice

#2 Post by trooper6 »

I had this problem recently. The problem was that I didn't have a return somewhere else where I should have had one.

I had a call and instead of returning like I was supposed to do, I jumped to some part of code. So the final return instead of taking me out of the game, took me to right after my call.

So I'd check any call statements and I'd check all of your indentation.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Post Reply

Who is online

Users browsing this forum: Google [Bot], Vamp-sama