Files
gymkhana-actions/game/rooms/room05/esc/room05.esc
Julian Murgia 9dbcf2b58b Make ESCLocation is_start_location work (#421)
Introducing BYPASS_LAST_ROOM global to allow changing scene without considering the previous room
Fixes godot-escoria/escoria-issues#40
2021-10-26 16:36:02 +02:00

35 lines
773 B
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
# Disable wrench item if present in the inventory
> [i/r5_wrench]
set_active r5_wrench false
# 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
# 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
#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