Multiple images in CG gallery?

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.
Message
Author
0ion9
Regular
Posts: 79
Joined: Thu Jun 16, 2011 9:17 am
Contact:

Re: Multiple images in CG gallery?

#16 Post by 0ion9 »

Not with this code. I can think offhand how to do it, but if you want that, you'll have to implement it yourself. I regard it as of marginal usefulness.

BTW, the code above is BUGGY (in some circumstances it will show images whose conditions haven't yet been satisfied!). Don't use it!
Instead, use this updated version. It also includes a way to apply multiple conditions to a single image.
Like this:

Code: Select all

( ["washington.jpg","carillon.jpg"], [("bg washington", "bg carillon"), ("bg carillon", "bg whitehouse")],"washington.jpg" ),
would specify that "washington.jpg" becomes visible when both "bg washington" and "bg carillon" have been seen, and "carillon.jpg" becomes visible when both "bg carillon" and "bg whitehouse" have been seen.

Gumaster
Regular
Posts: 93
Joined: Sun Sep 06, 2009 6:54 am
Contact:

Re: Multiple images in CG gallery?

#17 Post by Gumaster »

Updated the code and didn't find any ...fawlts... with it
Thanks a lot for the help

Post Reply

Who is online

Users browsing this forum: No registered users