Making attaining True End dependent on False End count?

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
Giovedi
Regular
Posts: 147
Joined: Sun Sep 09, 2012 6:20 am
Contact:

Making attaining True End dependent on False End count?

#1 Post by Giovedi »

Hmm, how do I say this...

Basically, I want to make an ending unlockable only by attaining all the other endings first.

I have no idea how to do this. Persistents confuse me.

Help for a noob, please?

User avatar
netravelr
Miko-Class Veteran
Posts: 504
Joined: Thu Jan 28, 2010 2:31 am
Completed: Culina: Hands in the Kitchen, Culina: The Spirit of Cooking, Saving Zoey
Projects: Love at the Laundromat
Organization: Lakeview Interactive
Deviantart: netravelr
Location: USA
Contact:

Re: Making attaining True End dependent on False End count?

#2 Post by netravelr »

Sure.

Say you have a variable for getting to each ending in your persistant data. http://www.renpy.org/wiki/renpy/doc/ref ... stent_Data

and whenever you complete a path you would do something like:

Code: Select all

persistent.ending1 = True
Now, when you want to have the True End come up, you could do something like:

Code: Select all

if(persistent.ending1 and persistent.ending2):
   "Whoo! True end!"
Does this help at all?
Image
Technical Designer/Programmer
Game Design Portfolio - Project updates on my Twitter
Experienced in: C/C++/C#, Python, Unreal, Unity, and Flash
_________________
"Space can be very lonely. The greatest adventure is having someone share it with you."

Giovedi
Regular
Posts: 147
Joined: Sun Sep 09, 2012 6:20 am
Contact:

Re: Making attaining True End dependent on False End count?

#3 Post by Giovedi »

Yes, sir; yes it does. That's exactly what I'm looking for. Thread bookmark'd, and thank you!

Post Reply

Who is online

Users browsing this forum: Google [Bot]