Files
IWaniHugThatGator-Demo-Public/game/00src/ochest.rpy
2024-03-06 19:57:33 -06:00

117 lines
5.8 KiB
Plaintext

transform wipeinout:
alpha 0.0
block:
linear 1.0 alpha 1.0
linear 1.0 alpha 0.0
repeat
# in 14.5
#olivia_chest_choices_flag = 0b0 #has to hit: 0b1111111
#olivia_chest_choices = {
# 'Photo': 0b1,
# 'Teeth': 0b10,
# 'Brush': 0b100,
# 'Rocks': 0b1000,
# 'Ball': 0b10000,
# 'Pins': 0b100000,
# 'Lighter': 0b1000000
#}
#the chest variable holds 0b0000000, you click on the items and it flips the 0 into a 1
# according to olivia_chest_choices
#so the pins flips 0b1 << 5 (0b100000), the brush flips 0b1 << 3 (0b100), etc.
#as soon as the chest variable hits 0b1111111, you jump out back into the script
#if statements are doing this:
# flag & 0b1 == 0b1
# (0b1000 & 0b1 == 0b1) is false
# (0b0010 & 0b10 == 0b10) is true
# in the dialogue, it does |=, | flips the bit to 1, if it's already 1 it flips it to 1
# unironicly learn actual programming because this the Nth amount of time I have to explain this
transform grayout:
matrixcolor TintMatrix((255*0.5, 255*0.5, 255*0.5))
alpha 0.5
pass
#to the writ: it is wrong because it makes no sense. ideally the items should be swallowed by olivia and she's going to dump it 2nd round at the white castle. 1st round for eating those sliders, 2nd round at the throne
screen ochest():
add "bg_box"
#add "_finalcomparison" at wipeinout
#would use hotspot but it's broken and this auto uses the dimensions
if (olivia_chest_choices_flag & olivia_chest_choices['Pins']) and olivia_chest_choices['Pins']:
imagebutton idle "spr_box_pin_5" xpos 228 ypos 742 action Jump('oliviachest_pins') focus_mask True at grayout
imagebutton idle "spr_box_pin_4" xpos 155 ypos 562 action Jump('oliviachest_pins') focus_mask True at grayout
imagebutton idle "spr_box_pin_1" xpos 430 ypos 559 action Jump('oliviachest_pins') focus_mask True at grayout
imagebutton idle "spr_box_pin_8" xpos 1515 ypos 606 action Jump('oliviachest_pins') focus_mask True at grayout
pass
else:
imagebutton idle "spr_box_pin_5" xpos 228 ypos 742 action Jump('oliviachest_pins') focus_mask True
imagebutton idle "spr_box_pin_4" xpos 155 ypos 562 action Jump('oliviachest_pins') focus_mask True
imagebutton idle "spr_box_pin_1" xpos 430 ypos 559 action Jump('oliviachest_pins') focus_mask True
imagebutton idle "spr_box_pin_8" xpos 1515 ypos 606 action Jump('oliviachest_pins') focus_mask True
if (olivia_chest_choices_flag & olivia_chest_choices['Brush']) and olivia_chest_choices['Brush']:
imagebutton idle "spr_box_brush" xpos 512 ypos 404 action Jump('oliviachest_brush') focus_mask True at grayout
pass
else:
imagebutton idle "spr_box_brush" xpos 512 ypos 404 action Jump('oliviachest_brush') focus_mask True
if (olivia_chest_choices_flag & olivia_chest_choices['Rocks']) and olivia_chest_choices['Rocks']:
imagebutton idle "spr_box_rock_1" xpos 368 ypos 362 action Jump('oliviachest_rocks') focus_mask True at grayout
imagebutton idle "spr_box_rock_2" xpos 293 ypos 738 action Jump('oliviachest_rocks') focus_mask True at grayout
imagebutton idle "spr_box_rock_3" xpos 1453 ypos 369 action Jump('oliviachest_rocks') focus_mask True at grayout
pass
else:
imagebutton idle "spr_box_rock_1" xpos 368 ypos 362 action Jump('oliviachest_rocks') focus_mask True
imagebutton idle "spr_box_rock_2" xpos 293 ypos 738 action Jump('oliviachest_rocks') focus_mask True
imagebutton idle "spr_box_rock_3" xpos 1453 ypos 369 action Jump('oliviachest_rocks') focus_mask True
if (olivia_chest_choices_flag & olivia_chest_choices['Lighter']) and olivia_chest_choices['Lighter']:
imagebutton idle "spr_box_lighter" xpos 128 ypos 202 action Jump('oliviachest_lighter') focus_mask True at grayout
pass
else:
imagebutton idle "spr_box_lighter" xpos 128 ypos 202 action Jump('oliviachest_lighter') focus_mask True
if (olivia_chest_choices_flag & olivia_chest_choices['Ball']) and olivia_chest_choices['Ball']:
imagebutton idle "spr_box_toy" xpos 1237 ypos 430 action Jump('oliviachest_ball') focus_mask True at grayout
pass
else:
imagebutton idle "spr_box_toy" xpos 1237 ypos 430 action Jump('oliviachest_ball') focus_mask True
if (olivia_chest_choices_flag & olivia_chest_choices['Photo']) and olivia_chest_choices['Photo']:
imagebutton idle "spr_box_picture" xpos 573 ypos 236 action Jump('oliviachest_photo') focus_mask True at grayout
pass
else:
imagebutton idle "spr_box_picture" xpos 573 ypos 236 action Jump('oliviachest_photo') focus_mask True
#green
if (olivia_chest_choices_flag & olivia_chest_choices['Pins']) and olivia_chest_choices['Pins']:
imagebutton idle "spr_box_pin_6" xpos 611 ypos 653 action Jump('oliviachest_pins') focus_mask True at grayout
imagebutton idle "spr_box_pin_7" xpos 1326 ypos 646 action Jump('oliviachest_pins') focus_mask True at grayout
pass
else:
imagebutton idle "spr_box_pin_6" xpos 611 ypos 653 action Jump('oliviachest_pins') focus_mask True
imagebutton idle "spr_box_pin_7" xpos 1326 ypos 646 action Jump('oliviachest_pins') focus_mask True
if (olivia_chest_choices_flag & olivia_chest_choices['Teeth']) and olivia_chest_choices['Teeth']:
imagebutton idle "spr_box_teeth" xpos 1096 ypos 112 action Jump('oliviachest_teeth') focus_mask True at grayout
pass
else:
imagebutton idle "spr_box_teeth" xpos 1096 ypos 112 action Jump('oliviachest_teeth') focus_mask True
imagemap:
ground "bg_box_front"
on "hide" action With(eoDissolve(0.5))
label olivia_chest:
if (olivia_chest_choices_flag == 0b1111111):
$ renpy.jump("oliviachest_end")
else:
call screen ochest with dissolve