Files
gymkhana-actions/game/rooms/room09/esc/button_reset.esc
2022-03-09 08:02:23 +01:00

26 lines
927 B
Plaintext
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# :SETUP is called EVERY TIME the room is loaded BEFORE ready
# :READY is called EVERY TIME the room is loaded AFTER setup
:use
# Set the counter of open closets to 0. Used for the magic bottle appearance.
set_global open_closets 0
# Clear the variable holding which closet contains the bottle
# (Used for if the player exits then reenters the room)
set_global r9_bottle_closet 0
# If the bottle is active in any cupboard, disable it
set_active r9_bottle_left false
set_active r9_bottle_middle false
set_active r9_bottle_right false
# Animate all the doors closing
set_state r9_closet_left close_door
set_state r9_closet_middle close_door
set_state r9_closet_right close_door
# Mark all the doors closed. Used to work out if we ignore the close command
# on a closed closet, or the open command on an opened closet.
set_global left_closet_open false
set_global middle_closet_open false
set_global right_closet_open false