Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_doorX_Other_19

(view raw script w/o annotations or w/e)
1
global.interact = 3;
2
instance_create(0, 0, obj_fadeout);
3
if (touched == 0)
4
{
5
    alarm[2]
 = 8;
gml_Object_obj_doorX_Alarm_2.gml

global.entrance = 24; instance_create(0, 0, obj_persistentfadein); if (room == room_castle_town) room_goto(room_castle_tutorial ); if (room == room_castle_tutorial) room_goto(room_castle_town ); if (room == room_town_south) room_goto(room_library ); if (room == room_library) room_goto(room_town_south ); if (room == room_town_church) room_goto(room_townhall ); if (room == room_townhall) room_goto(room_town_church ); if (room == room_schoollobby) room_goto(room_town_school ); if (room == room_town_school) room_goto(room_schoollobby ); if (room == room_town_mid) room_goto(room_diner ); if (room == room_diner) room_goto(room_town_mid ); if (room == room_town_north) room_goto(room_flowershop_1f ); if (room == room_flowershop_1f) room_goto(room_town_north ); if (room == room_cc_prisonlancer) room_goto(room_cc_prison_cells_ch1 Castle - B1 - Prison (in wall)); if (room == room_cc_prison_cells) room_goto(room_cc_prisonlancer_ch1 Castle - B1 - Corridor with puzzle); if (room == room_forest_secret1) room_goto(room_forest_dancers1_ch1 Forest - Star dancers (Broken key piece)); if (room == room_forest_dancers1) room_goto(room_forest_secret1_ch1 Forest - Dust Bunny ambush room); if (room == room_forest_savepoint3) room_goto(room_forest_savepoint_relax_ch1 Forest - Before maze); if (room == room_forest_savepoint_relax) { if (global.plot < 120) room_goto(room_forest_maze1_ch1 Maze - Following only Lancer - Placeholder sprite is present.); else room_goto(room_forest_savepoint3_ch1 Maze - Exit (SAVE point)); } if (room == room_forest_maze_susie) { if (y >= (room_height / 2)) { global.flag[292 maze_fail_count] = 0; global.flag[291 maze_progress] = 0; room_goto(room_forest_savepoint_relax_ch1 Forest - Before maze); } else { room_goto(room_forest_maze2_ch1 Maze - following both Susie and Lancer - Placeholder sprite is present.); } } if (room == room_forest_castlefront) { if (global.plot < 150) room_goto_previous(); else room_goto(room_forest_fightsusie_ch1 Forest - Door room); } if (room == room_forest_fightsusie) { if (global.plot < 150) room_goto_next(); else room_goto(room_forest_castlefront_ch1 Forest - Before Castle (Capture Scene)); } if (room == room_forest_maze1 || room == room_forest_maze2) { if (y >= (room_width / 2)) { global.flag[292 maze_fail_count] = 0; if (room == room_forest_maze1) { global.flag[291 maze_progress] = 0; room_goto(room_forest_savepoint_relax_ch1 Forest - Before maze); } if (room == room_forest_maze2) { global.flag[291 maze_progress] = 5; room_goto(room_forest_maze_susie_ch1 Maze - Intro); } } else { with (obj_forestmaze_controller) event_user(0); } }
6
    touched = 1;
7
}