Skip to content

Commit 516db19

Browse files
AWSWCommunityAWSWCommunity
authored andcommitted
Add scene selection logic
1 parent c717bdf commit 516db19

File tree

6 files changed

+14
-18
lines changed

6 files changed

+14
-18
lines changed

mods/anna_post_true/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def mod_info(self):
1616

1717
def mod_load(self):
1818
renpy.config.developer = True
19-
golab = ml.findlabel("anna_post_true_entry") # Getting the label from our additive code.
19+
golab = ml.findlabel("post_true_main") # Getting the label from our additive code.
2020
posttruehook = ml.endingHooks.hookPostTrueEnding(golab) # If we wanted, we could have a scene play post true ending, after credits, but before the return to main_menu.
2121

2222
NoFunAllowed = False # Set this to true if you don't feel like playing through the true ending to watch the scene.

mods/anna_post_true/adine_rpy_scene.rpy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
label adine_post_true_bootstrap:
22
$ c = DynamicCharacter ("persistent.player_name", color=persistent.playercolor, callback=rolly)
33
$ player_name = persistent.player_name
4-
$ adinescenesfinished = 4 # Set this to bypass the check for testing.
54

65
jump adine_post_true_entry
76

87
label adine_post_true_entry:
98
$ adine_post_mood = 0
109

11-
if adinescenesfinished != 4:
12-
return
13-
1410
$ adinestagename = persistent.adinestagename
1511
$ can_cont = True
1612
$ restore_ui()

mods/anna_post_true/anna_rpy_scene.rpy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@ label anna_post_true_bootstrap:
88
# The one that matters most is setting up the MC's player object. We need to do that here.
99
# This wouldn't be required if you were jumping to the scene from somewhere after the game started.
1010
$ c = DynamicCharacter ("persistent.player_name", color=persistent.playercolor, callback=rolly)
11-
$ annascenesfinished = 4 # Set this to bypass the check for testing.
1211
jump anna_post_true_entry
1312

1413
# Our entry point from the patcher. In mod.py we tell ren'py to jump to this label after the true end.
1514
# We could have easily added this on to any point in the game: after a label, as a route, etc.
1615
label anna_post_true_entry:
1716
# Post true ending, the game locks all player interaction. We need to re-enable the UI controls to allow the play to play the scene.
1817

19-
if annascenesfinished != 4:
20-
return
21-
2218
$ can_cont = True
2319
$ restore_ui()
2420
stop music fadeout 1.0 # These stop any music or sounds that are playing.

mods/anna_post_true/bryce_rpy_scene.rpy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
label bryce_post_true_bootstrap:
22
$ c = DynamicCharacter ("persistent.player_name", color=persistent.playercolor, callback=rolly)
33
$ player_name = persistent.player_name
4-
$ brycescenesfinished = 4 # Set this to bypass the check for testing.
54
jump bryce_post_true_entry
65

76
label bryce_post_true_entry:
8-
if brycescenesfinished != 4:
9-
return
10-
117
$ bryce_post_mood = 0
128
call _mod_fixui
139
stop music fadeout 1.0

mods/anna_post_true/common.rpy

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,16 @@ screen post_true_sceneselect tag smallscreen:
1111
textbutton "Bryce" action [Hide("post_true_sceneselect"), Start("bryce_post_true_bootstrap")] hovered Play("audio", "se/sounds/select.ogg") style "menubutton2"
1212
textbutton "Remy" action [Hide("post_true_sceneselect"), Start("remy_post_true_bootstrap")] hovered Play("audio", "se/sounds/select.ogg") style "menubutton2"
1313

14-
imagebutton idle "image/ui/close_idle.png" hover "image/ui/close_hover.png" action [Hide("post_true_sceneselect"), Play("audio", "se/sounds/close.ogg")] hovered Play("audio", "se/sounds/select.ogg") style "smallwindowclose" at nav_button
14+
imagebutton idle "image/ui/close_idle.png" hover "image/ui/close_hover.png" action [Hide("post_true_sceneselect"), Play("audio", "se/sounds/close.ogg")] hovered Play("audio", "se/sounds/select.ogg") style "smallwindowclose" at nav_button
15+
16+
label post_true_main:
17+
if annascenesfinished == 4:
18+
jump anna_post_true_entry
19+
elif adinescenesfinished == 4:
20+
jump adine_post_true_entry
21+
elif remyscenesfinished == 4:
22+
jump remy_post_true_entry
23+
elif brycescenesfinished == 4:
24+
jump bryce_post_true_entry
25+
else:
26+
return

mods/anna_post_true/remy_rpy_scene.rpy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
label remy_post_true_bootstrap:
22
$ c = DynamicCharacter ("persistent.player_name", color=persistent.playercolor, callback=rolly)
3-
$ remyscenesfinished = 4 # Set this to bypass the check for testing.
43
jump remy_post_true_entry
54

65
label remy_post_true_entry:
7-
if remyscenesfinished != 4:
8-
return
9-
106
$ remy_post_mood = 0
117
call _mod_fixui
128
stop music fadeout 1.0

0 commit comments

Comments
 (0)