Code: Select all
default current_speaker = None
init -1 python:
def char_callback(event, **kwargs):
showing_tags = renpy.get_showing_tags()
current_tag = renpy.get_say_image_tag()
character_tags = [
t for t in
['doc', 'dan', 'lat', 'mid', 'thi', 'sep', 'ret', 'mic', 'rap', 'azr', 'ari', 'jop', 'gab', 'cha', 'hun', 'imp', 'ext', 'ex2', 'nar']
if t in showing_tags
and t != current_tag ]
if current_tag and event == "begin":
for tag in character_tags:
renpy.show( tag , zorder = 0 )
renpy.with_statement(dis, always=False)
if renpy.showing(current_tag):
renpy.show( current_tag , zorder = 100 )
renpy.with_statement(dis, always=False)
return (), kwargs
config.all_character_callbacks.append( char_callback )
#Note: There is a version of this code below for each character, all the same besides the 'active_' and 'current_speaker =' having a different suffix
init python:
def active_azr(event, interact=True, **kwargs):
global current_speaker
if not interact:
return
if event == "begin":
current_speaker = 'azr'
#Later in the same file, not in a python section, the 'dis' transition is defined
define dis = { "master" : Dissolve(.5) }
Code: Select all
scene Cirrus
show azr Normal at left
with dis
show rap Normal at right with easeinright #easein doesn't work here (dissolves instead), but does if I move it underneath the narrator
nvl_narrator "We land smoothly, and Azrael is quick to set me down next to another angel."
nvl clear
R "Oh, Dr Avery! Good to see you're not falling through the clouds here. I guess having an angel's feather really {i}does{/i} let mortals cloud-walk."
Code: Select all
R Normal2 "Alright, I guess we should get to our places, then!"
A Normal "Good luck."
hide azr with easeoutleft #easein doesn't work here (dissolves instead)
show rap at center with ease #This ease does work for some reason
show rap Normal with dis
nvl_narrator "Raphael puts a hand on my back and leads me toward a boxed-off seat in the middle of the benches where the Archangel are sitting. The appearance and positioning of it makes me feel as if I'm on trial."
nvl clear
R "Try not to say anything stupid, okay?"
stop music fadeout 0.5
hide rap with dissolve
nvl_narrator "There is a slight pause as the rest of the chatter in the room dies down. Soon, one of the angels stands."
nvl clear
show mic Normal with dissolve
M "Brothers. Sisters. I won't waste time. We are in grave danger, and in disagreement as to how to handle the situation. I understand that there are two proposed solutions?"
show ari Angry at right with easeinright #easein doesn't work here (dissolves instead)
a "One solution, and one desperate scramble for redemption."
show rap Grin at left with easeinleft #easein doesn't work here (dissolves instead)
R "Wow, Ariel, you're almost as flattering as Az."
$ ari_name = "Ariel"
a "We're not here for your quips, Raphael. For once in your life, take something seriously."
R Normal "Fine, fine. How about you present your case first?"
a "Gladly."
play music latsad
a Pleading "Michael, this crisis is not something that we should handle gently. We have here, in our midst, a solid solution. This mortal is linked to the demon Latael by a soul-feather. Killing him will kill the demon."
$ mic_name = "Michael"
a "I am not a murderer. You know that. I take no joy in arguing this. But we all know that Latael is capable of starting a Holy War. The effect on the mortals would be too great."
a "Our duty is to defend the mortals, as many as we can. Regrettably, that means killing this one mortal."
R Concerned2 "And a former angel."
M "Wait your turn, Raphael."
R Normal "Sorry, Mikey. I'll shut up."
nvl_narrator "Were Ariel talking about anyone else, I would most likely agree with her. However, given that she's talking about me and my son, I can't bring myself to make the logical decision."
nvl clear
M "Chamuel, what do you See for this path? What does the future hold?"
$ cha_name = "Chamuel"
show ari at right2 with ease #ease doesn't work here (dissolves instead)
show cha Upset at rightside with easeinright #This easein does work for some reason
C "Nothing..."