Files
gymkhana-actions/gymkhana/rooms/turno_cocina/cocina/esc/cocina.esc

59 lines
2.2 KiB
Plaintext

:setup
# Disable cocina_patata if already picked.
# We cannot look in inventory because the countable item is a different item.
if cocina_patata_picked:
set_active(cocina_patata, false)
# Disable cocina_debajo_sofa if already picked.
# We cannot look in inventory because the countable item is a different item.
if cocina_debajo_sofa_picked:
set_active(cocina_debajo_sofa, false)
# Enable/disable olla on economica item if olla already put on the economica
set_active(turno_cocina_olla_llena, turno_cocina_economica_con_olla)
# Enable/disable jarra items depending if bread is wet
if turno_cocina_pan_mojado:
set_active(turno_cocina_jarra, false)
set_active(turno_cocina_jarra_volcada, true)
if !turno_cocina_pan_mojado:
set_active(turno_cocina_jarra, true)
set_active(turno_cocina_jarra_volcada, false)
# Position player depending of last scene
if ESC_LAST_SCENE == cocina_detras:
teleport($player, puerta_detras_start)
set_angle($player, 180)
else:
teleport($player, puerta_delante_start)
set_angle($player, 270)
:ready
if !cocina_intro_played:
set_active(turno_cocina_economica, false)
set_interactive(turno_cocina_peso, false)
set_active(turno_cocina_cocina_gas, false)
set_active(turno_cocina_bol, false)
set_active(cocina_cuchillos, false)
set_active(cocina_fregadero_izq, false)
set_active(cocina_fregadero_der, false)
set_active(cocina_puerta_delante, false)
set_active(cocina_puerta_detras, false)
set_active(turno_cocina_cuerno, false)
set_interactive(cocina_patata, false)
set_active(cocina_debajo_sofa, false)
set_active(turno_cocina_jarra, false)
set_active(cocina_pan, false)
accept_input(SKIP)
set_angle($player, 180)
say($player, "No se me ocurre ningún plato, debería buscar un libro de recetas.", "cocina_intro_1")
say($player, "Si mantienes MAYÚSCULAS pulsado los objetos con los que puedes interactuar aparecerán marcados.", "cocina_intro_2")
accept_input(ALL)
if turno_cocina_mikel_playing:
# TODO: in 3.6 a bug prevented walk_block working in this situation, test again with 4.3
# walk_block $player new_game_start_location
# set_angle $player 180
say($player, "Ya no está, que raro...", "cocina_mikel_playing")
accept_input(ALL)
global turno_cocina_mikel_playing = false