Remember if player have seen previous bg or text

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
jamesm80
Newbie
Posts: 8
Joined: Thu Jan 23, 2020 1:25 pm
Contact:

Remember if player have seen previous bg or text

#1 Post by jamesm80 » Fri Feb 07, 2020 9:24 am

How do I do to put in my code if you have seen that background before? or certain line of text? Without using the variable statement.
I think I read time ago that it's was possible. Been looking for hours but I don't even know if I'm looking the right terms.

Something like if bg is been seen, or unlocked do this or the other.

rames44
Veteran
Posts: 232
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: Remember if player have seen previous bg or text

#2 Post by rames44 » Fri Feb 07, 2020 12:29 pm

For images, there is

https://www.renpy.org/doc/html/displayi ... seen_image

You can test whether a label has been executed with

https://www.renpy.org/doc/html/label.ht ... seen_label

But I don’t think there’s a comparable way to test for a specific line.

jamesm80
Newbie
Posts: 8
Joined: Thu Jan 23, 2020 1:25 pm
Contact:

Re: Remember if player have seen previous bg or text

#3 Post by jamesm80 » Fri Feb 07, 2020 5:24 pm

Thank you so much! That was exactly what I was looking for!

You da best!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], span4ev