Files
gymkhana-actions/game/rooms/room05/esc/room05.esc
balloonpopper bcb366c6af feat: Graphics update for room 5 (#525)
Co-authored-by: Balloonpopper <balloonpopper@git.com>
2022-03-04 14:49:15 +01:00

50 lines
1.2 KiB
Plaintext
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 will run every time you enter the room, before the player
# can see the room.
:setup
> [!room5_visited]
# This runs only the first time the room is ever opened.
# That way, if you fix the pipe then leave the room, this will not
# break the pipe when you come back
set_global room5_visited true
set_global r5_pipe_broken true
set_global r5_dialog_advance 0
# Disable wrench item if present in the inventory
> [i/r5_wrench]
set_active r5_wrench false
> [r5_pipe_broken]
set_state r5_pipe start_water
> [!r5_pipe_broken]
set_state r5_pipe stop_water
# Disable pen item if present in the inventory
> [i/r5_pen]
set_active r5_pen false
# Disable empty_sheet item if present in the inventory
> [i/r5_empty_sheet]
set_active r5_empty_sheet false
# Disable both the pen and sheet if the completed form is present in the inventory
> [i/r5_filled_sheet]
set_active r5_pen false
set_active r5_empty_sheet false
# Manage player position depending on where he comes from
> [eq ESC_LAST_SCENE room4]
teleport player r5_l_exit
# Set player look right
set_angle player 180
stop
> [eq ESC_LAST_SCENE room6]
teleport player r5_r_exit
# Set player look left
set_angle player 270
stop