How can I make a Event gallery?

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
User avatar
stwkun
Regular
Posts: 82
Joined: Wed Jan 02, 2013 7:57 pm
Organization: Stw Projects
Contact:

How can I make a Event gallery?

#1 Post by stwkun »

I could make a cg gallery and music room, but i can´t figured out how to make a Event gallery or Ending gallery, if someone know how to do this, tell me

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: How can I make a Event gallery?

#2 Post by nyaatrap »

It's easier than a gallery. Write each event labels separately and call them (call is better than calls_in_new_context IMO)

Code: Select all

label playback:
    while True:
        scene black with dissolve
        $renpy.block_rollback()
        $playbackscene=renpy.call_screen("playback_screen")
        call expression playbackscene

screen playback_screen:
    frame:
        area (0,0,256,512) align (.5,.5)
        viewport mousewheel True scrollbars "vertical":
            vbox:
                for i in persistent.seen_event_list:
                    textbutton i action Return(i)
                    
init -2 python:
    if persistent.seen_event_list==None:
        persistent.seen_event_list=[]

Code: Select all

label event1:
  ........
  if not "event1" in persistent.seen_event_list:
    $persistent.seen_event_list.append("event1")
  return

User avatar
stwkun
Regular
Posts: 82
Joined: Wed Jan 02, 2013 7:57 pm
Organization: Stw Projects
Contact:

Re: How can I make a Event gallery?

#3 Post by stwkun »

nyaatrap wrote:It's easier than a gallery. Write each event labels separately and call them (call is better than calls_in_new_context IMO)

Code: Select all

label playback:
    while True:
        scene black with dissolve
        $renpy.block_rollback()
        $playbackscene=renpy.call_screen("playback_screen")
        call expression playbackscene

screen playback_screen:
    frame:
        area (0,0,256,512) align (.5,.5)
        viewport mousewheel True scrollbars "vertical":
            vbox:
                for i in persistent.seen_event_list:
                    textbutton i action Return(i)
                    
init -2 python:
    if persistent.seen_event_list==None:
        persistent.seen_event_list=[]

Code: Select all

label event1:
  ........
  if not "event1" in persistent.seen_event_list:
    $persistent.seen_event_list.append("event1")
  return
___________
Thx arigato, You saved me ;-)

User avatar
kuri_chii
Regular
Posts: 69
Joined: Sat Apr 27, 2013 10:34 am
Completed: RHWIMY beta 1.0
Projects: Right here where I met you, Love Snatch, Monarchy High
Organization: VND - AWA
IRC Nick: Kuri
Deviantart: franzzzz002
Skype: franz.mole
Location: Somewhere in Asia
Contact:

Re: How can I make a Event gallery?

#4 Post by kuri_chii »

how to use this codes? specific way?
The best way showing your feelings is to write Novel Stories :3
Image
DeviantArt | Monarchy High | RHWIMY | Love Snatch

Post Reply

Who is online

Users browsing this forum: No registered users