[solved]Special picture after completion?

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
Akumanorobin
Newbie
Posts: 2
Joined: Fri Mar 09, 2018 5:45 pm
Tumblr: artkumanorobin
Deviantart: daniechidna
Contact:

[solved]Special picture after completion?

#1 Post by Akumanorobin »

Hello, I'm pretty new at renpy and coding in general and I was wondering if there's a way to show an extra "credits picture" once the player has completed all three routes.

The routes already show a picture depending on which ending you get, and after the picture the credits (and then it ends)

This is how I end one of the routes

Code: Select all

label goodendsun:
    
scene bg goodend1
with fade

$ renpy.pause() 

scene bg credits
with fade

$ renpy.pause() 

jump end
My vn is very short and straightforward, so you either get a good ending in the routes or a bad ending (bad ending is the same for all three)

I apologize if my wording is unclear, english isn't my language :oops:
Last edited by Akumanorobin on Fri Mar 23, 2018 5:56 pm, edited 1 time in total.
Currently working on : Wish Upon a Star ~

User avatar
mitoky
Veteran
Posts: 316
Joined: Sat Feb 07, 2015 9:12 pm
Projects: The Purring Demon's Love, circus eterie
Contact:

Re: Special picture after completion?

#2 Post by mitoky »

I think it works if you add an if statement and check if the endings have been reached. In this case i think persistent ones are the ones you want.

Declare the variables outside of any label (like you do with images for example):

Code: Select all

default persistent.ge_one = False
default persistent.ge_two = False
default persistent.ge_three = False
Then change it at the end of each good end to true:

Code: Select all

"And all has been well since!"

$ persistent.ge_one = True

jump goodendsun
And then add the if statement in the credits where you want them and what they are supposed to do:

Code: Select all

if persistent.ge_one and persistent.ge_two and persistent.ge_three:
    ##add what you want here
else:
    pass

Akumanorobin
Newbie
Posts: 2
Joined: Fri Mar 09, 2018 5:45 pm
Tumblr: artkumanorobin
Deviantart: daniechidna
Contact:

Re: Special picture after completion?

#3 Post by Akumanorobin »

Ohh this worked perfectly!! Thank you very much for your help !
Currently working on : Wish Upon a Star ~

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot]