Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_doorX_musfade_Other_19

(view raw script w/o annotations or w/e)
1
global.interact = 3;
2
mus_volume(global.currentsong[1], 0, 14);
3
instance_create(0, 0, obj_fadeout);
4
if (touched == 0)
5
{
6
    alarm[2]
 = 15;
gml_Object_obj_doorX_musfade_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_field_shop1) room_goto(room_shop1 ); if (room == room_man) room_goto(room_forest_savepoint2_ch1 Forest - Bakesale); if (room == room_forest_area5) { ch = ceil(random(50)); if (ch == 50 && global.flag[910 ch1_egg_room] == 0) room_goto(room_man_ch1 Forest - Egg Room (room_man)); else room_goto(room_forest_starwalker_ch1 Forest - Starwalker and bell room); } if (room == room_town_krisyard) room_goto(room_torhouse ); if (room == room_torhouse) room_goto(room_town_krisyard ); if (room == room_town_school) room_goto(room_schoollobby ); if (room == room_schoollobby) room_goto(room_town_school ); if (room == room_cc_1f) { if (x >= 1300) room_goto(room_cc_prisonelevator_ch1 Castle - Top floor Elevator); else snd_play(snd_error); } if (room == room_cc_5f) room_goto(room_shop2_ch1 Castle - Rouxls Kaard's Shop); if (room == room_cc_prisonelevator) { if (global.flag[239 elevator_floor] == 0) room_goto(room_cc_prison_to_elevator_ch1 Castle - B1 - Elevator room); if (global.flag[239 elevator_floor] == 1) room_goto(room_cc_1f_ch1 Castle - 1F); if (global.flag[239 elevator_floor] == 2) room_goto(room_cc_5f_ch1 Castle - 5F (SAVE point)); if (global.flag[239 elevator_floor] == 3) room_goto(room_cc_prison_prejoker_ch1 Castle - Room before Jevil fight. (SAVE point)); } if (room == room_cc_prison_to_elevator) { global.flag[239 elevator_floor] = 0; room_goto(room_cc_prisonelevator_ch1 Castle - Top floor Elevator); } if (room == room_cc_1f) { global.flag[239 elevator_floor] = 1; room_goto(room_cc_prisonelevator_ch1 Castle - Top floor Elevator); } if (room == room_cc_prison_prejoker) { global.flag[239 elevator_floor] = 3; room_goto(room_cc_prisonelevator_ch1 Castle - Top floor Elevator); } if (room == room_cc_entrance) room_goto(room_forest_castlefront_ch1 Forest - Before Castle (Capture Scene));
7
    alarm[3]
 = 14;
gml_Object_obj_doorX_musfade_Alarm_3.gml

snd_free(global.currentsong[0]);
8
    touched = 1;
9
}