feat: Graphics update for room 5 (#525)

Co-authored-by: Balloonpopper <balloonpopper@git.com>
This commit is contained in:
balloonpopperandBalloonpopper authored and GitHub committed 2022-03-04 14:49:15 +01:00
1 parent 391d642549
commit bcb366c6af
19 files changed
+249 -144

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
:look
> [eq r5_dialog_advance 0]
say player "It's a leaking pipe."
set_global r5_dialog_advance 1
stop
> [eq r5_dialog_advance 1]
say player "I don't think I can turn off the water with my hands."
stop
> [eq r5_dialog_advance 2]
say player "I already turned the water off."
stop
:use r5_wrench
> [eq r5_dialog_advance 2]
say player "I already fixed the water leak."
stop
accept_input SKIP
set_state r5_pipe stop_water
set_global r5_pipe_broken false
say player "The leak's now fixed."
set_global r5_dialog_advance 2
accept_input ALL
+23 -9
View File
@@ -1,9 +1,25 @@
:setup
# 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]
@@ -13,6 +29,12 @@
> [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
@@ -25,11 +47,3 @@
set_angle player 270
stop
#walk player r5_wrench
#set_global i/r5_wrench true
#set_active r5_wrench false
#set_global i/r5_pen true
#set_active r5_pen false
#set_global i/r5_empty_sheet true
#set_active r5_empty_sheet false
-23
View File
@@ -1,23 +0,0 @@
:look
> [! dialog_advance]
say player "I don't know what that stuff is."
set_global dialog_advance 1
stop
> [eq dialog_advance 1]
say player "I REALLY don't know what that stuff is."
set_global dialog_advance 2
stop
> [eq dialog_advance 2]
say player "No, SERIOUSLY, I have no idea what that is!"
set_angle player 180
say player "Please stop asking me that!"
stop
:use r5_wrench
> [r5_wall_item_state_round]
set_state r5_wall_item state_square
set_global r5_wall_item_state_round false
stop
set_state r5_wall_item state_round
set_global r5_wall_item_state_round true