Persistent?
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.
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.
-
Guest
Persistent?
Is there any persistent points? I was thinking about making an ending that can be unlocked after getting 3 endings or so, so how to make it?
Re: Persistent?
Yes, there is a way:
http://www.renpy.org/wiki/renpy/doc/ref ... stent_Data
But basically you just put things into persitent.something like:
and then you can check stored values:
http://www.renpy.org/wiki/renpy/doc/ref ... stent_Data
But basically you just put things into persitent.something like:
Code: Select all
presistent.points = 6
Code: Select all
if persistent.some_value > 3:
e: "You have unlocked door."
- JQuartz
- Eileen-Class Veteran
- Posts: 1265
- Joined: Fri Aug 31, 2007 7:02 am
- Projects: 0 completed game. Still haven't made any meaningfully completed games...
- Contact:
Re: Persistent?
Another way is by using if for all conditions like so:Guest wrote:I was thinking about making an ending that can be unlocked after getting 3 endings or so, so how to make it?
Code: Select all
if persistent.ending1:
$ points+=1
if persistent.ending2:
$ points+=1
if persistent.ending3:
$ points+=1
if persistent.ending4:
$ points+=1
if persistent.ending5:
$ points+=1
if persistent.ending6:
$ points+=1
if points>=3:
jump extra_ending
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.
Who is online
Users browsing this forum: _ticlock_
