Port: cocina delante

This commit is contained in:
2025-01-24 01:00:37 +01:00
parent 137d696a21
commit f538ab07b6
11 changed files with 489 additions and 474 deletions

View File

@@ -1,54 +1,65 @@
:setup
# Uncomment to disable intro scene
> [!cocina_delante_intro_played]
accept_input SKIP
stop_snd
play_video res://gymkhana/videos/turno_cocina/intro.ogv
if not cocina_delante_intro_played:
accept_input("SKIP")
stop_snd()
play_video("res://gymkhana/videos/turno_cocina/intro.ogv")
if not turno_cocina_frontal_entregado:
inventory_add("turno_cocina_frontal")
if skip_intro:
inventory_add("turno_cocina_libro_de_cocina")
if not turno_cocina_eneko_catando:
set_active(turno_cocina_ajo,false)
anim($eneko_smoking, "idle")
if ESC_LAST_SCENE == "despensa":
teleport($player, $puerta_despensa_start)
set_angle($player,180)
stop
inventory_add turno_cocina_frontal [!turno_cocina_frontal_entregado]
inventory_add turno_cocina_libro_de_cocina [skip_intro]
if ESC_LAST_SCENE == "cocina_detras":
teleport($player, $puerta_detras_start)
set_angle($player, 180)
stop
if ESC_LAST_SCENE == "cocina":
teleport($player, $puerta_cocina_start)
set_angle($player,180)
stop
set_active turno_cocina_ajo false [!turno_cocina_eneko_catando]
anim eneko_smoking idle
> [eq ESC_LAST_SCENE despensa]
teleport player puerta_despensa_start
set_angle player 180
stop
> [eq ESC_LAST_SCENE cocina_detras]
teleport player puerta_detras_start
set_angle player 180
stop
> [eq ESC_LAST_SCENE cocina]
teleport player puerta_cocina_start
set_angle player 180
stop
teleport player new_game_start_location
set_angle player 90
teleport($player, $new_game_start_location)
set_angle($player, 90)
:ready
> [!cocina_delante_intro_played]
set_global cocina_delante_intro_played true
accept_input SKIP
stop_snd
queue_event eneko_smoking intro_dialog intro_dialog_channel true
set_gui_visible true
walk_block player puerta_cocina_start
# Go to cocina
queue_event cocina_delante_puerta_cocina action1
accept_input ALL
play_snd res://gymkhana/sounds/music_loop.ogg _music
> [intro_dialog2_playing]
accept_input SKIP
walk_block player new_game_start_location
set_angle player 90
queue_event eneko_smoking intro_dialog2 intro_dialog2_channel true
accept_input ALL
set_global intro_dialog2_playing false
> [turno_cocina_pan_mojado_playing]
walk_block player new_game_start_location
set_angle player 90
queue_event eneko_smoking pan_mojado_dialog pan_mojado_dialog_channel true
accept_input ALL
set_global turno_cocina_pan_mojado_playing false
if not cocina_delante_intro_played:
global cocina_delante_intro_played = true
accept_input("SKIP")
stop_snd()
queue_event($eneko_smoking, "intro_dialog", "intro_dialog_channel", true)
set_gui_visible(true)
walk_block($player, $puerta_cocina_start)
# Go to cocina
queue_event($cocina_delante_puerta_cocina, "action1")
accept_input("ALL")
play_snd("res://gymkhana/sounds/music_loop.ogg", _music)
if intro_dialog2_playing:
accept_input("SKIP")
walk_block($player, $new_game_start_location)
set_angle($player,90)
queue_event($eneko_smoking, "intro_dialog2", "intro_dialog2_channel", true)
accept_input("ALL")
global intro_dialog2_playing = false
if turno_cocina_pan_mojado_playing:
walk_block($player,$new_game_start_location)
set_angle($player, 90)
queue_event($eneko_smoking, "pan_mojado_dialog", "pan_mojado_dialog_channel", true)
accept_input("ALL")
global turno_cocina_pan_mojado_playing = false