CG Gallery Help

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
birthdaylion
Newbie
Posts: 9
Joined: Fri Oct 28, 2011 7:28 pm
Contact:

CG Gallery Help

#1 Post by birthdaylion » Fri Dec 23, 2011 5:18 pm

Is there a way to unlock all of the images in the CG Gallery just by finishing the game?

I'm making a little game for my friend as a Christmas present and I wanted to add a CG Gallery. I finally found a super helpful tutorial and I can get the gallery to show up. The images unlock properly if they're in the game, but the images I want to use aren't in the game.

Any help would be greatly appreciated ^.^

User avatar
NickelBuckle9
Regular
Posts: 36
Joined: Wed Sep 14, 2011 3:47 pm
Completed: MiniBot
Projects: Ah! Peku, Pokemon Trainer Game (untitled)
Location: United States - East Coast
Contact:

Re: CG Gallery Help

#2 Post by NickelBuckle9 » Sat Dec 24, 2011 1:52 am

You could set a true or false variable that could unlock the CG Gallery... all you would have to do is put the variable in the code at the end of the game.

Just have the galley unable to view unless the variable is true... it would need to be persistent data as well :P
Image
Completed Projects:
* MiniBot *
http://www.youtube.com/watch?v=xR6Ru9-vlic
(Check video details for download links)
http://nickel-buckle-9.deviantart.com/

User avatar
PyTom
Ren'Py Creator
Posts: 15200
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: CG Gallery Help

#3 Post by PyTom » Sat Dec 24, 2011 2:31 am

There's also the allprior condition, which is true if all the other images on the current button have been unlocked.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: IaMe, MaydohMaydoh, trooper6