Make variables dynamic
or constant, in one case
This commit is contained in:
parent
d34a96284c
commit
1918def870
@ -3,6 +3,7 @@
|
|||||||
####################################
|
####################################
|
||||||
|
|
||||||
default summon_show_busy = True
|
default summon_show_busy = True
|
||||||
|
define summon_categories_sorted = ("Snape", "Tonks", "Hermione", "Cho", "Luna", "Astoria", "Susan") #"Ginny", "Daphne", "Padma", "Patil", "Myrtle", "Mafkin"
|
||||||
|
|
||||||
label summon:
|
label summon:
|
||||||
$ gui.in_context("summon_menu")
|
$ gui.in_context("summon_menu")
|
||||||
@ -10,10 +11,66 @@ label summon:
|
|||||||
|
|
||||||
label summon_menu(xx=723, yy=90):
|
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
|
# Door dictionary
|
||||||
$ summon_dict = {
|
summon_dict = {
|
||||||
"Snape": {"ico": "snape", "flag": states.sna.unlocked, "busy": states.sna.busy, "loc": "randomsnape"},
|
"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"},
|
"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 },
|
"Hermione": {"ico": "hermione", "flag": states.her.unlocked, "busy": states.her.busy, "loc": states.her.map_location },
|
||||||
@ -21,12 +78,8 @@ label summon_menu(xx=723, yy=90):
|
|||||||
"Luna": {"ico": "luna", "flag": states.lun.unlocked, "busy": states.lun.busy, "loc": states.lun.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 },
|
"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}
|
"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
|
|
||||||
|
|
||||||
call screen summon(xx, yy)
|
call screen summon(xx, yy)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user