Randomize point rewarding choices

This commit is contained in:
nutbuster 2022-11-02 12:07:52 +11:00
parent b586e8f4e9
commit dc2abc5494
8 changed files with 116 additions and 120 deletions

View file

@ -20,6 +20,7 @@ init -1 python:
mod_menu_access = [] mod_menu_access = []
init python: init python:
import random import random
import webbrowser import webbrowser
#function for insult layers #function for insult layers
@ -48,6 +49,12 @@ init python:
if persistent.autoup == None: if persistent.autoup == None:
persistent.autoup = False persistent.autoup = False
def randomize_choices(choices):
# fine for size of 2
if (renpy.random.randint(0, 1)):
choices.reverse()
return choices
pass pass
transform randPosition: transform randPosition:

View file

@ -935,11 +935,11 @@ label chapter_3:
# TODO: phone overlay with Elliot Raptor, and the text he made some valid points :^) # TODO: phone overlay with Elliot Raptor, and the text he made some valid points :^)
show layeredanonphone shitpost_elliot with dissolve show layeredanonphone shitpost_elliot with dissolve
"Ah yes, perfect." "Ah yes, perfect."
show layeredanonphone shitpost_elliotbp with dissolve show layeredanonphone shitpost_elliotbp with dissolve
"Click post." "Click post."
pause .5 pause .5
show layeredanonphone shitpost_elliotsuccess with dissolve show layeredanonphone shitpost_elliotsuccess with dissolve
pause .5 pause .5
show layeredanonphone shitpost_elliotwait with dissolve show layeredanonphone shitpost_elliotwait with dissolve
"{cps=*.3}Aaaand{/cps} now to wait." "{cps=*.3}Aaaand{/cps} now to wait."
@ -1679,14 +1679,13 @@ label chapter_3:
window auto window auto
pause .5 pause .5
menu: python:
"Speak Up": #menu item text then label to jump into
pause .5 choices = [(_('Speak Up'), '.GuitarQuestionSpeakUp'),
jump .GuitarQuestionSpeakUp (_('Stay Silent'), '.GuitarQuestionStaySilent')]
"Stay Silent": _value = renpy.display_menu(randomize_choices(choices))
pause .5 renpy.pause(0.5)
jump .GuitarQuestionStaySilent renpy.jump(_value)
label .GuitarQuestionSpeakUp: label .GuitarQuestionSpeakUp:

View file

@ -644,13 +644,13 @@ label chapter_4:
pause .5 pause .5
stop music fadeout 5 stop music fadeout 5
menu:
"Heads, ask Fang for help": python:
pause .5 choices = [(_('Heads, ask Fang for help'), '.Heads'),
jump .Heads (_('Tails, leave Fang alone'), '.Tails')]
"Tails, leave Fang alone": _value = renpy.display_menu(randomize_choices(choices))
pause .5 renpy.pause(0.5)
jump .Tails renpy.jump(_value)
label .Heads: label .Heads:

View file

@ -1181,17 +1181,13 @@ label chapter_5:
window auto window auto
pause .5 pause .5
menu: python:
choices = [(_('Explain it to her honestly, she should understand by now'), '.beHonest'),
"Explain it to her honestly, she should understand by now": (_('Joking is a good way to move past mistakes.'), '.jokeAround')]
stop music fadeout 3 _value = renpy.display_menu(randomize_choices(choices))
pause .5 renpy.music.stop(fadeout=3)
jump .beHonest renpy.pause(0.5)
renpy.jump(_value)
"Joking is a good way to move past mistakes.":
stop music fadeout 3
pause .5
jump .jokeAround
label .beHonest: label .beHonest:
@ -3272,12 +3268,16 @@ label chapter_5:
window auto window auto
pause .5 pause .5
menu: python:
"Stay quiet...": choices = [(_('Stay quiet...'), None),
pause .5 (_('Interrupt'), '.interrupt4')]
"Interrupt": choices = randomize_choices(choices)
pause .5 _value = renpy.display_menu(choices)
jump .interrupt4b _tick = 1
renpy.pause(0.5)
if _value != None:
renpy.jump(_value+chr(0x61+_tick))
"Theres a time to speak and a time to listen." "Theres a time to speak and a time to listen."
pause .5 pause .5
@ -3407,12 +3407,12 @@ label chapter_5:
window auto window auto
pause .5 pause .5
menu: python:
"Stay quiet...": _value = renpy.display_menu(choices)
pause .5 _tick += 1
"Interrupt": renpy.pause(0.5)
pause .5 if _value != None:
jump .interrupt4c renpy.jump(_value+chr(0x61+_tick))
$ wingStory = True $ wingStory = True
@ -3496,12 +3496,12 @@ label chapter_5:
window auto window auto
pause .5 pause .5
menu: python:
"Stay quiet...": _value = renpy.display_menu(choices)
pause .5 _tick += 1
"Interrupt": renpy.pause(0.5)
pause .5 if _value != None:
jump .interrupt4d renpy.jump(_value+chr(0x61+_tick))
show fang: show fang:
easein_quart 1 xalign 0.2 easein_quart 1 xalign 0.2
@ -3578,12 +3578,12 @@ label chapter_5:
window auto window auto
pause .5 pause .5
menu: python:
"Stay quiet...": _value = renpy.display_menu(choices)
pause .5 _tick += 1
"Interrupt": renpy.pause(0.5)
pause .5 if _value != None:
jump .interrupt4e renpy.jump(_value+chr(0x61+_tick))
$ fangscore += 1 $ fangscore += 1
$ anonscore += 1 $ anonscore += 1

View file

@ -1696,14 +1696,12 @@ label chapter_6:
window auto window auto
pause .5 pause .5
menu: python:
"Excuse myself": choices = [(_('Excuse myself'), '.AnonExcusesHimself'),
pause .5 (_('Wait for Fang'), '.AnonWaitsForFang')]
jump .AnonExcusesHimself _value = renpy.display_menu(randomize_choices(choices))
"Wait for Fang": renpy.pause(0.5)
pause .5 renpy.jump(_value)
jump .AnonWaitsForFang
label .AnonExcusesHimself: label .AnonExcusesHimself:
@ -2088,13 +2086,12 @@ label chapter_6:
window auto window auto
pause .5 pause .5
menu: python:
"Ask Naser": choices = [(_('Ask Naser'), '.AskNaser'),
pause .5 (_('Ask Fang'), '.AskFang')]
jump .AskNaser _value = renpy.display_menu(randomize_choices(choices))
"Ask Fang": renpy.pause(0.5)
pause .5 renpy.jump(_value)
jump .AskFang
label .AskNaser: label .AskNaser:

View file

@ -300,7 +300,7 @@ label chapter_7:
window auto window auto
pause 0.15 pause 0.15
play sound 'audio/effects/whoosh.ogg' play sound 'audio/effects/whoosh.ogg'
# show stella neutral alt flip with Dissolve(.25) # show stella neutral alt flip with Dissolve(.25)
show stella: show stella:
easeout_quad 0.6 xalign -0.5 easeout_quad 0.6 xalign -0.5
@ -470,11 +470,11 @@ label chapter_7:
pause .5 pause .5
define LeftStage = False define LeftStage = False
menu:
"Leave the stage as-is": python:
jump LeaveStageAsIs choices = [(_('Leave the stage as-is'), 'LeaveStageAsIs'),
"Fix the cables": (_('Fix the cables'), 'FixCables')]
jump FixCables renpy.jump(renpy.display_menu(randomize_choices(choices)))
label LeaveStageAsIs: label LeaveStageAsIs:
$ anonscore += 1 $ anonscore += 1
@ -518,7 +518,7 @@ label chapter_7:
stop music fadeout 3 stop music fadeout 3
scene black with Dissolve(1) scene black with Dissolve(1)
scene moes pizza scene moes pizza
show fang hiding at sright show fang hiding at sright
with Dissolve(1) with Dissolve(1)
pause 0.5 pause 0.5
@ -900,7 +900,7 @@ label chapter_7:
# zoom 0.8 # zoom 0.8
# xalign 1.0 yalign -0.1 # xalign 1.0 yalign -0.1
#with dissolve #with dissolve
"Trish looks like shes sucked on a lemon with how twisted her face is." "Trish looks like shes sucked on a lemon with how twisted her face is."
"The tiny triceratops pulls Fang out of my hands, and I can picture my fist twisting that horn right off her face." "The tiny triceratops pulls Fang out of my hands, and I can picture my fist twisting that horn right off her face."
@ -909,7 +909,7 @@ label chapter_7:
pause 0.5 pause 0.5
hide fanganonhug hide fanganonhug
hide trish hide trish
show fang neutral flip at scenter show fang neutral flip at scenter
show anon neutral flip at sright: show anon neutral flip at sright:
@ -973,7 +973,7 @@ label chapter_7:
show moealt with dissolve: show moealt with dissolve:
xalign 2.0 xalign 2.0
easein_cubic 1 xalign 1.6 yalign 0.0 easein_cubic 1 xalign 1.6 yalign 0.0
show fang happy show fang happy
show anon neutral behind fang show anon neutral behind fang
show trish surprised show trish surprised
with Dissolve(0.5) with Dissolve(0.5)
@ -1221,7 +1221,7 @@ label chapter_7:
show fang: show fang:
easein_cubic 1 xalign 0.3 easein_cubic 1 xalign 0.3
show fang happy flip with Dissolve(0.5) show fang happy flip with Dissolve(0.5)
F "Trish! Didnt you say you wanted to set up our merch!" F "Trish! Didnt you say you wanted to set up our merch!"
show trish unimpressed show trish unimpressed
show anon neutral flip show anon neutral flip
@ -1414,7 +1414,7 @@ label chapter_7:
Re "Er{cps=*.1}...{/cps} Probably shouldnt have mentioned that…" Re "Er{cps=*.1}...{/cps} Probably shouldnt have mentioned that…"
A "Fang wasnt herself?" A "Fang wasnt herself?"
show reed explanatory flip with Dissolve(0.5) show reed explanatory flip with Dissolve(0.5)
Re "Honestly{cps=*.1}...{/cps} Thats probably something to be left for Fang and Fang alone to talk about{cps=*.1}...{/cps} Sorry." Re "Honestly{cps=*.1}...{/cps} Thats probably something to be left for Fang and Fang alone to talk about{cps=*.1}...{/cps} Sorry."
@ -1486,7 +1486,7 @@ label chapter_7:
show fang neutral with dissolve: show fang neutral with dissolve:
xalign -1.0 xalign -1.0
easein_cubic 1 xalign -0.5 easein_cubic 1 xalign -0.5
pause 0.5 pause 0.5
F "Come on Anon, dont you have any good memories from your old school?" F "Come on Anon, dont you have any good memories from your old school?"
@ -1515,8 +1515,8 @@ label chapter_7:
A "I didnt say I was good at it. I was just clicking buttons and seeing what stuck." A "I didnt say I was good at it. I was just clicking buttons and seeing what stuck."
A "And spoiler alert, nothing did." A "And spoiler alert, nothing did."
show trish considering flip show trish considering flip
show fang happy show fang happy
with Dissolve(0.25) with Dissolve(0.25)
"That got a giggle out of Fang and a look from Trish." "That got a giggle out of Fang and a look from Trish."
@ -1618,7 +1618,7 @@ label chapter_7:
easein_cubic 0.5 xalign 0.175 easein_cubic 0.5 xalign 0.175
ease_cubic 0.75 xalign 0.2 ease_cubic 0.75 xalign 0.2
show reed neutral flip with Dissolve(0.25) show reed neutral flip with Dissolve(0.25)
"Reed gives me a fist bump." "Reed gives me a fist bump."
pause 0.5 pause 0.5
@ -1643,7 +1643,7 @@ label chapter_7:
$ renpy.music.set_volume(0.35, 1, 'music') $ renpy.music.set_volume(0.35, 1, 'music')
play ambient 'audio/effects/heartbeat.ogg' volume 0.5 fadein 0.5 play ambient 'audio/effects/heartbeat.ogg' volume 0.5 fadein 0.5
show anon concerned show anon concerned
show dimmer_darker behind anon show dimmer_darker behind anon
with Dissolve(0.5) with Dissolve(0.5)
@ -1671,7 +1671,7 @@ label chapter_7:
stop music fadeout 5.0 stop music fadeout 5.0
A "Yeah, yeah, thanks man." A "Yeah, yeah, thanks man."
T "Sounds personal, guess we shouldnt pry." T "Sounds personal, guess we shouldnt pry."
T "Were all friends here, after all." T "Were all friends here, after all."
@ -1703,7 +1703,7 @@ label chapter_7:
easein_cubic 1 xalign 1.2 easein_cubic 1 xalign 1.2
show moe alt flip with dissolve: show moe alt flip with dissolve:
xalign -1.0 yalign 0.1 xalign -1.0 yalign 0.1
easein_cubic 1.4 xalign -0.7 easein_cubic 1.4 xalign -0.7
pause 0.25 pause 0.25

View file

@ -257,7 +257,7 @@ label chapter_8:
# xalign 0.3 yalign 0.1 # xalign 0.3 yalign 0.1
#show student3: #show student3:
# xalign 0.6 yalign 0.1 # xalign 0.6 yalign 0.1
#with dissolve #with dissolve
"With that the sea of students begins to funnel out of the auditorium." "With that the sea of students begins to funnel out of the auditorium."
@ -266,9 +266,9 @@ label chapter_8:
#show student2: #show student2:
# ease_quart 1.5 xalign -0.5 alpha 0.0 # ease_quart 1.5 xalign -0.5 alpha 0.0
#with Dissolve(1.0) #with Dissolve(1.0)
#pause 1.0 #pause 1.0
#hide student1 #hide student1
#hide student2 #hide student2
# pause 0.3 # pause 0.3
#show student3: #show student3:
@ -276,13 +276,13 @@ label chapter_8:
#show teacher4: #show teacher4:
# ease_quart 1.8 xalign -0.5 alpha 0.0 # ease_quart 1.8 xalign -0.5 alpha 0.0
#with Dissolve(1.0) #with Dissolve(1.0)
#pause 1.0 #pause 1.0
#hide student3 #hide student3
#hide teacher4 #hide teacher4
# pause 0.4 # pause 0.4
#show teacher1: #show teacher1:
# ease_quart 1.5 xalign 1.5 alpha 0.0 # ease_quart 1.5 xalign 1.5 alpha 0.0
#show teacher2: #show teacher2:
# ease_quart 1.8 xalign 1.5 alpha 0.0 # ease_quart 1.8 xalign 1.5 alpha 0.0
#show teacher3: #show teacher3:
@ -381,7 +381,7 @@ label chapter_8:
pause 0.5 pause 0.5
show trish: show trish:
easeout_cubic 1 xalign 1.4 alpha 0.0 easeout_cubic 1 xalign 1.4 alpha 0.0
show trish neutral with dissolve show trish neutral with dissolve
hide trish with dissolve hide trish with dissolve
pause 0.25 pause 0.25
@ -449,16 +449,16 @@ label chapter_8:
"OH GO FUCK YOURSELF BILL WITHERS." "OH GO FUCK YOURSELF BILL WITHERS."
window hide window hide
window auto window auto
show fang behind anon: show fang behind anon:
easeout_cubic 1 xpos 0.0 alpha 0.0 easeout_cubic 1 xpos 0.0 alpha 0.0
show anon: show anon:
easeout_cubic 1 xalign -0.2 alpha 0.0 easeout_cubic 1 xalign -0.2 alpha 0.0
show fang unimpressed flip with Dissolve(0.25) show fang unimpressed flip with Dissolve(0.25)
pause 0.25 pause 0.25
hide fang hide fang
hide anon hide anon
with dissolve with dissolve
pause 0.25 pause 0.25
@ -619,11 +619,10 @@ label chapter_8:
window auto window auto
pause .5 pause .5
menu: python:
"Play The Guitar": choices = [(_('Play The Guitar'), '.LetFangPlayGuit'),
jump LetFangPlayGuit (_('Get to Studying'), '.GetStartedOnStudy')]
"Get to Studying": renpy.jump(renpy.display_menu(randomize_choices(choices)))
jump GetStartedOnStudy
label LetFangPlayGuit: label LetFangPlayGuit:
@ -729,7 +728,7 @@ label chapter_8:
F "Alright, try these chords." F "Alright, try these chords."
play sound 'audio/effects/goodA.ogg' fadein 0.5 play sound 'audio/effects/goodA.ogg' fadein 0.5
"Her fingers press mine down, holding down the strings in an awkward position." "Her fingers press mine down, holding down the strings in an awkward position."
F "Then this." F "Then this."
play sound 'audio/effects/goodB.ogg' fadein 0.5 play sound 'audio/effects/goodB.ogg' fadein 0.5
"My hands are slid down closer to the base of the neck and too close to my crotch." "My hands are slid down closer to the base of the neck and too close to my crotch."
@ -1429,7 +1428,7 @@ label chapter_8:
window hide window hide
window auto window auto
pause 0.5 pause 0.5
show anonphone at scenter with easeinbottom show anonphone at scenter with easeinbottom
pause .5 pause .5
@ -1530,7 +1529,7 @@ label chapter_8:
"Or rather proud of herself that she was that good of a music teacher." "Or rather proud of herself that she was that good of a music teacher."
"Her way of congratulating me was to hip-check me right into my locker, only to apologize while laughing her ass off." "Her way of congratulating me was to hip-check me right into my locker, only to apologize while laughing her ass off."
pause 0.5 pause 0.5
"Actually, the whole ordeal made me remember I had this old music program installed on my computer." "Actually, the whole ordeal made me remember I had this old music program installed on my computer."
@ -1631,7 +1630,7 @@ label chapter_8:
show anon neutral with dissolve show anon neutral with dissolve
A "So, what? We take turns reading it?" A "So, what? We take turns reading it?"
show fang unimpressed with Dissolve(0.25) show fang unimpressed with Dissolve(0.25)
F "Too slow. Lets just huddle and read it together." F "Too slow. Lets just huddle and read it together."
@ -1878,7 +1877,7 @@ label chapter_8:
"She reaches elbow-deep into her purse and pulls out a small flipbook." "She reaches elbow-deep into her purse and pulls out a small flipbook."
FM "Oh Lucy, this is my FAVORITE little picture of you and Naser!" FM "Oh Lucy, this is my FAVORITE little picture of you and Naser!"
show fangmom: show fangmom:
easein_cubic 1 xalign 0.0 easein_cubic 1 xalign 0.0
pause 0.5 pause 0.5
@ -1902,13 +1901,13 @@ label chapter_8:
pause 0.5 pause 0.5
F "{cps=*1.3}Oh my god mom{/cps}, he doesnt have time for this!" F "{cps=*1.3}Oh my god mom{/cps}, he doesnt have time for this!"
"Fang pulls me off the ground and begins to push me towards the door." "Fang pulls me off the ground and begins to push me towards the door."
window hide window hide
window auto window auto
pause 0.25 pause 0.25
#show anon neutral flip at acenter #show anon neutral flip at acenter
#show fang angry flip at sleft: #show fang angry flip at sleft:
# xalign 1.3 # xalign 1.3
#with dissolve #with dissolve

View file

@ -563,7 +563,7 @@ label chapter_9:
linear 0.5 alpha 0 linear 0.5 alpha 0
pause .25 pause .25
show reed considering: show reed considering:
xalign 1.05 xalign 1.05
with Dissolve(0.2) with Dissolve(0.2)
pause .2 pause .2
show reed: #flip show reed: #flip
@ -1076,18 +1076,12 @@ label chapter_9:
$ TalkedWithTrish = 0 $ TalkedWithTrish = 0
menu: python:
choices = [(_('Talk with Trish'), '.TalkWithTrish'),
"Talk with Trish": (_('Ignore Trish'), '.IgnoreTrish')]
_value = renpy.display_menu(randomize_choices(choices))
pause .5 renpy.pause(0.5)
jump .TalkWithTrish renpy.jump(_value)
"Ignore Trish":
pause .5
jump .IgnoreTrish
label .TalkWithTrish: label .TalkWithTrish: