2023-03-13 20:29:05 +00:00
|
|
|
init -999 python:
|
2022-05-16 23:48:22 +00:00
|
|
|
# Remove style overrides
|
|
|
|
adv.who_args.pop("style", None)
|
|
|
|
adv.what_args.pop("style", None)
|
|
|
|
adv.window_args.pop("style", None)
|
|
|
|
|
|
|
|
# Default icon
|
|
|
|
adv.show_args["icon"] = "narrator"
|
|
|
|
|
2023-03-12 21:40:16 +00:00
|
|
|
def narrator_fade(ev, interact=True, **kwargs):
|
|
|
|
if ev == "begin":
|
2023-04-11 19:36:22 +00:00
|
|
|
behind = [f"{i}_main" for i in states.dolls] + ["snape_main", "genie_main", "cg"]
|
2023-03-16 21:58:10 +00:00
|
|
|
renpy.show("fade", zorder=15, behind=behind)
|
2023-03-12 21:40:16 +00:00
|
|
|
elif ev == "end":
|
|
|
|
renpy.hide("fade")
|
|
|
|
|
2022-05-16 23:48:22 +00:00
|
|
|
# Characters
|
|
|
|
define m = Character(None, show_side_image=Image("characters/genie/mage.webp", xpos=20), show_icon="genie")
|
|
|
|
define g2 = Character(None, show_side_image=Image("characters/genie/mage2.webp", xpos=20), show_icon="genie")
|
|
|
|
define g3 = Character(None, show_side_image=Image("characters/genie/mage3.webp", xpos=20), show_icon="genie")
|
|
|
|
define g4 = Character(None, show_side_image=Image("characters/genie/mage4.webp", xpos=20), show_icon="genie")
|
|
|
|
define g5 = Character(None, show_side_image=Image("characters/genie/mage5.webp", xpos=20), show_icon="genie")
|
|
|
|
define g6 = Character(None, show_side_image=Image("characters/genie/mage6.webp", xpos=20), show_icon="genie")
|
|
|
|
define g7 = Character(None, show_side_image=Image("characters/genie/mage7.webp", xpos=20), show_icon="genie")
|
|
|
|
define g8 = Character(None, show_side_image=Image("characters/genie/mage8.webp", xpos=20), show_icon="genie")
|
|
|
|
define g9 = Character(None, show_side_image=Image("characters/genie/mage9.webp", xpos=20), show_icon="genie")
|
|
|
|
define g10 = Character(None, show_side_image=Image("characters/genie/mage10.webp", xpos=20), show_icon="genie")
|
|
|
|
define g11 = Character(None, show_side_image=Image("characters/genie/mage11.webp", xpos=20), show_icon="genie")
|
|
|
|
define g12 = Character(None, show_side_image=Image("characters/genie/mage12.webp", xpos=20), show_icon="genie")
|
|
|
|
define g13 = Character(None, show_side_image=Image("characters/genie/mage13.webp", xpos=20), show_icon="genie")
|
|
|
|
define g14 = Character(None, show_side_image=Image("characters/genie/mage14.webp", xpos=20), show_icon="genie")
|
|
|
|
define g15 = Character(None, show_side_image=Image("characters/genie/mage15.webp", xpos=20), show_icon="genie")
|
|
|
|
define g16 = Character(None, show_side_image=Image("characters/genie/mage16.webp", xpos=20), show_icon="genie")
|
|
|
|
|
|
|
|
# Students
|
2024-04-28 17:39:12 +00:00
|
|
|
define twi = Character(_("Fred and George"), show_side_image=Image("characters/misc/weasley_twins/base_01.webp", xalign=1.0), show_icon="fred")
|
|
|
|
define fre = Character(_("Fred"), show_side_image=Image("characters/misc/weasley_twins/fred_01.webp", xalign=1.0), show_icon="fred")
|
|
|
|
define ger = Character(_("George"), show_side_image=Image("characters/misc/weasley_twins/george_01.webp", xalign=1.0), show_icon="george")
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Teachers
|
2024-04-28 17:39:12 +00:00
|
|
|
define spo = Character(_("Professor Sprout"))
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Side characters
|
2024-04-28 17:39:12 +00:00
|
|
|
define hat = Character(_("Sorting Hat"), show_side_image=Image("characters/misc/hat.webp", xalign=1.0), show_icon="hat")
|
|
|
|
define helf = Character(_("House-Elf"), show_side_image=Image("characters/misc/elf.webp", xalign=0.95))
|
|
|
|
define malf = Character(_("Malfoy"))
|
|
|
|
define cra = Character(_("Crabbe"))
|
|
|
|
define goy = Character(_("Goyle"))
|
|
|
|
define maf = Character(_("Madam Mafkin"), show_side_image=Image("characters/misc/mafkin.webp", xalign=1.0))
|
|
|
|
define myr = Character(_("Moaning Myrtle"))
|
|
|
|
define faw = Character(_("Fawkes"), show_icon="fawkes")
|
|
|
|
define abe = Character(_("Aberforth"))
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Non-important characters
|
2024-04-28 17:39:12 +00:00
|
|
|
define fem = Character(_("Female Student"))
|
|
|
|
define femv = Character(_("Female Voice"))
|
|
|
|
define mal = Character(_("Male Student"))
|
2024-11-21 16:52:29 +00:00
|
|
|
define mal2 = Character(_("{size=-12}Another Male Student{/size}"))
|
2024-04-28 17:39:12 +00:00
|
|
|
define sly1 = Character(_("Slytherin student"))
|
2024-11-21 16:52:29 +00:00
|
|
|
define sly2 = Character(_("{size=-12}Another Slytherin student{/size}"))
|
2024-04-28 17:39:12 +00:00
|
|
|
define qcr = Character(_("Quidditch Crowd"))
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Special
|
2023-03-12 21:40:16 +00:00
|
|
|
define nar = Character("", what_prefix=">", show_icon="narrator", callback=narrator_fade)
|
2023-03-15 22:27:08 +00:00
|
|
|
define narrator = nar # Note: Without this definition, anonymous narrator style will be overridden by Renpy.
|
2024-04-28 17:39:12 +00:00
|
|
|
define anon = Character(_("???"))
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Dumbledore
|
2023-03-01 22:14:00 +00:00
|
|
|
define dum1 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_1.webp"), show_icon="dumbledore", dynamic=True)
|
|
|
|
define dum2 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_2.webp"), show_icon="dumbledore", dynamic=True)
|
|
|
|
define dum3 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_3.webp"), show_icon="dumbledore", dynamic=True)
|
|
|
|
define dum4 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_4.webp"), show_icon="dumbledore", dynamic=True)
|
|
|
|
define dum5 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_5.webp"), show_icon="dumbledore", dynamic=True)
|
2024-09-24 15:32:33 +00:00
|
|
|
|
|
|
|
define centered = Character(None, window_style="centered_window", statement_name="say-centered", screen="say_centered")
|
|
|
|
# define vcentered = Character(None, what_style="centered_vtext", window_style="centered_window", statement_name="say-centered", screen="say_centered") # Not in use, kept for reference
|