Make variables dynamic

or constant, in one case
This commit is contained in:
Gouvernathor 2023-11-17 03:31:07 +01:00
parent d34a96284c
commit 1918def870

View File

@ -3,6 +3,7 @@
####################################
default summon_show_busy = True
define summon_categories_sorted = ("Snape", "Tonks", "Hermione", "Cho", "Luna", "Astoria", "Susan") #"Ginny", "Daphne", "Padma", "Patil", "Myrtle", "Mafkin"
label summon:
$ gui.in_context("summon_menu")
@ -10,23 +11,75 @@ label summon:
label summon_menu(xx=723, yy=90):
$ map_transcript_loc = {"library": "Library", "room_g": "Gryffindor Dormitory", "room_s": "Slytherin Dormitory", "room_r": "Ravenclaw Dormitory", "room_h": "Hufflepuff Dormitory", "great_hall": "Great Hall", "courtyard": "Courtyard", "forest": "Forest", "greenhouse": "Greenhouse", "defense": "D.A.D.A Classroom", "training_grounds": "Training Grounds", "Lake": "Lake", "randomstudent": renpy.random.choice(["Classroom", "Bathroom", "Hagrid's Hut", "Weasley's Store", "Mafkin's Store", "Broom Cupboard", "Attic"]), "randomsnape": renpy.random.choice(["Classroom", "Boathouse", "Bathroom", "Snape's Office", "Hall", "Slytherin Dormitory", "Library", "Attic", "Forest", "Lake", "Dungeons", "Quidditch Cave", "Staircase", "Behind your door", "Room of Doom"]), "randomtonks": renpy.random.choice(["Classroom", "Bathroom", "Hall", "Gryffindor Dormitory", "Slytherin Dormitory", "Hufflepuff Dormitory", "Ravenclaw Dormitory", "Training Grounds", "Tonks' Room", "Quidditch Pitch", "Infirmary", "Sex Dungeon", "Hospital Wing", "Forest", "Lake", "Greenhouse", "Mafkin's Store"])}
$ renpy.dynamic(
map_transcript_loc = {
"library": "Library",
"room_g": "Gryffindor Dormitory",
"room_s": "Slytherin Dormitory",
"room_r": "Ravenclaw Dormitory",
"room_h": "Hufflepuff Dormitory",
"great_hall": "Great Hall",
"courtyard": "Courtyard",
"forest": "Forest",
"greenhouse": "Greenhouse",
"defense": "D.A.D.A Classroom",
"training_grounds": "Training Grounds",
"Lake": "Lake",
"randomstudent": renpy.random.choice((
"Classroom",
"Bathroom",
"Hagrid's Hut",
"Weasley's Store",
"Mafkin's Store",
"Broom Cupboard",
"Attic")),
"randomsnape": renpy.random.choice((
"Classroom",
"Boathouse",
"Bathroom",
"Snape's Office",
"Hall",
"Slytherin Dormitory",
"Library",
"Attic",
"Forest",
"Lake",
"Dungeons",
"Quidditch Cave",
"Staircase",
"Behind your door",
"Room of Doom")),
"randomtonks": renpy.random.choice((
"Classroom",
"Bathroom",
"Hall",
"Gryffindor Dormitory",
"Slytherin Dormitory",
"Hufflepuff Dormitory",
"Ravenclaw Dormitory",
"Training Grounds",
"Tonks' Room",
"Quidditch Pitch",
"Infirmary",
"Sex Dungeon",
"Hospital Wing",
"Forest",
"Lake",
"Greenhouse",
"Mafkin's Store")),
},
# Door dictionary
$ summon_dict = {
"Snape": {"ico": "snape", "flag": states.sna.unlocked, "busy": states.sna.busy, "loc": "randomsnape"},
"Tonks": {"ico": "tonks", "flag": states.ton.unlocked, "busy": states.ton.busy, "loc": "randomtonks"},
"Hermione": {"ico": "hermione", "flag": states.her.unlocked, "busy": states.her.busy, "loc": states.her.map_location },
"Cho": {"ico": "cho", "flag": states.cho.unlocked, "busy": states.cho.busy, "loc": states.cho.map_location},
"Luna": {"ico": "luna", "flag": states.lun.unlocked, "busy": states.lun.busy, "loc": states.lun.map_location},
"Astoria": {"ico": "astoria", "flag": states.ast.unlocked, "busy": states.ast.busy, "loc": states.ast.map_location },
"Susan": {"ico": "susan", "flag": states.sus.unlocked, "busy": states.sus.busy, "loc": states.sus.map_location}
}
$ summon_categories_sorted = ["Snape", "Tonks", "Hermione", "Cho", "Luna", "Astoria", "Susan"] #"Ginny", "Daphne", "Padma", "Patil", "Myrtle", "Mafkin"
$ summon_categories_sorted_length = len(summon_categories_sorted)
$ current_sorting = summon_show_busy
# Door dictionary
summon_dict = {
"Snape": {"ico": "snape", "flag": states.sna.unlocked, "busy": states.sna.busy, "loc": "randomsnape"},
"Tonks": {"ico": "tonks", "flag": states.ton.unlocked, "busy": states.ton.busy, "loc": "randomtonks"},
"Hermione": {"ico": "hermione", "flag": states.her.unlocked, "busy": states.her.busy, "loc": states.her.map_location },
"Cho": {"ico": "cho", "flag": states.cho.unlocked, "busy": states.cho.busy, "loc": states.cho.map_location},
"Luna": {"ico": "luna", "flag": states.lun.unlocked, "busy": states.lun.busy, "loc": states.lun.map_location},
"Astoria": {"ico": "astoria", "flag": states.ast.unlocked, "busy": states.ast.busy, "loc": states.ast.map_location },
"Susan": {"ico": "susan", "flag": states.sus.unlocked, "busy": states.sus.busy, "loc": states.sus.map_location}
},
)
call screen summon(xx, yy)