68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
:init
|
|
global cocina_delante_intro_played
|
|
global turno_cocina_frontal_entregado
|
|
global turno_cocina_eneko_catando
|
|
global intro_dialog2_playing
|
|
global turno_cocina_pan_mojado_playing
|
|
|
|
:setup
|
|
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 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
|
|
|
|
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
|
|
|
|
teleport($player, $new_game_start_location)
|
|
set_angle($player, 90)
|
|
|
|
|
|
|
|
:ready
|
|
if not 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)
|
|
|
|
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")
|
|
set_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")
|
|
set_global("turno_cocina_pan_mojado_playing", false)
|