|
1
|
if (con == 1)
|
|
2
|
{
|
|
3
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
... ("no_name");
|
|
4
|
msgsetloc(0, * (Inside the trash...)Wait for input"* (Inside the trash...)/", "obj_dw_ch3_b3bs_zappera_trashswitch_slash_Step_0_gml_7_0" );
|
|
5
|
msgnextloc(* (...Delay 11 was a switch!)Wait for inputClose Message"* (..^1. was a switch!)/%", "obj_dw_ch3_b3bs_zappera_trashswitch_slash_Step_0_gml_8_0" );
|
|
6
|
d = d_make();
|
|
7
|
con = 2;
|
|
8
|
}
|
|
9
|
if (con == 2)
|
|
10
|
con = 3;
|
|
11
|
if (con == 3 && !d_ex())
|
|
12
|
{
|
|
13
|
snd_play(snd_impact);
|
|
14
|
scr_shakescreenscr_shakescreen
function scr_shakescreen()
{
instance_create(x, y, obj_shake);
} ();
|
|
15
|
with (obj_dw__backstagelight)
|
|
16
|
instance_destroy();
|
|
17
|
con = 4;
|
|
18
|
timer = 0;
|
|
19
|
global.interact = 0;
|
|
20
|
global.flag[1137 found_trash_switch] = 1;
|
|
21
|
with (obj_dw_b3bs_zapper_a)
|
|
22
|
{
|
|
23
|
safe_delete(closeddoor);
|
|
24
|
safe_delete(doortrig);
|
|
25
|
}
|
|
26
|
}
|
|
27
|
if (con == 5)
|
|
28
|
{
|
|
29
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
... ("no_name");
|
|
30
|
global.interact = 1;
|
|
31
|
global.msc = -99;
|
|
32
|
global.choice = -1;
|
|
33
|
global.choicemsg[0] = stringsetloc(Climb#into the#trash"Climb#into the#trash", "obj_dw_ch3_b3bs_zappera_trashswitch_slash_Step_0_gml_44_0" );
|
|
34
|
global.choicemsg[1] = stringsetloc(#Forget it"#Forget it", "obj_dw_ch3_b3bs_zappera_trashswitch_slash_Step_0_gml_45_0_b" );
|
|
35
|
global.choicemsg[2] = stringset("");
|
|
36
|
global.choicemsg[3] = stringset("");
|
|
37
|
msgsetloc(0, * (Inside the trash is a switch,Delay 11 but it's pressed down too far.)Wait for input"* (Inside the trash is a switch^1, but it's pressed down too far.)/", "obj_dw_ch3_b3bs_zappera_trashswitch_slash_Step_0_gml_45_0" );
|
|
38
|
msgnextloc(* (Reaching it would mean climbing into the trash.)Wait for input"* (Reaching it would mean climbing into the trash.)/", "obj_dw_ch3_b3bs_zappera_trashswitch_slash_Step_0_gml_46_0" );
|
|
39
|
msgnextloc(* (Also,Delay 11 it would turn the lights back on.)Wait for input"* (Also^1, it would turn the lights back on.)/", "obj_dw_ch3_b3bs_zappera_trashswitch_slash_Step_0_gml_47_0" );
|
|
40
|
msgnext("\\C2 ");
|
|
41
|
d_make();
|
|
42
|
con = 6;
|
|
43
|
}
|
|
44
|
if (con == 6 && global.choice != -1)
|
|
45
|
{
|
|
46
|
k_d(1);
|
|
47
|
if (global.choice == 0)
|
|
48
|
con = 7;
|
|
49
|
if (global.choice == 1)
|
|
50
|
{
|
|
51
|
con = 4;
|
|
52
|
global.interact = 0;
|
|
53
|
msgsetloc(0, Close MessageClose Message"%%", "obj_dw_ch3_b3bs_zappera_trashswitch_slash_Step_0_gml_64_0" );
|
|
54
|
}
|
|
55
|
}
|
|
56
|
if (con == 7)
|
|
57
|
{
|
|
58
|
timer++;
|
|
59
|
if (timer == 1)
|
|
60
|
{
|
|
61
|
blackout = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (camerax() - 10, cameray() - 10, spr_pxwhite);
|
|
62
|
blackout.image_xscale = 999;
|
|
63
|
blackout.image_yscale = 999;
|
|
64
|
blackout.image_alpha = 0;
|
|
65
|
blackout.image_blend = c_black;
|
|
66
|
blackout.depth = 10;
|
|
67
|
scr_lerpvar_instancescr_lerpvar_instance
function scr_lerpvar_instance()
{
__lerpvar = instance_create(0, 0, obj_lerpvar);
__lerpvar.target = argument[0];
__lerpvar.varname = argument[1];
__lerpvar.pointa = argument[2];
__lerpvar.pointb = argument[3];
__lerpvar.maxtime = argument[4];
if (argument_count >= 6)
__lerpvar.easetype = argument[5];
if (argument_count >= 7)
__lerpvar.easeinout = argument[6];
return __lerpvar;
}
function scr_lerp_var_instance()
{
if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
}
function scr_lerp_instance_var()
{
if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
} (blackout, "image_alpha", 0, 1, 30);
|
|
68
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
... ("no_name");
|
|
69
|
msgsetloc(0, * (Everyone climbed into the trash.)Wait for inputClose Message"* (Everyone climbed into the trash.)/%", "obj_dw_ch3_b3bs_zappera_trashswitch_slash_Step_0_gml_81_0" );
|
|
70
|
d_make();
|
|
71
|
}
|
|
72
|
if (timer == 31)
|
|
73
|
{
|
|
74
|
timer = 0;
|
|
75
|
con = 8;
|
|
76
|
}
|
|
77
|
}
|
|
78
|
if (con == 8 && !d_ex())
|
|
79
|
{
|
|
80
|
timer++;
|
|
81
|
if (timer == 15)
|
|
82
|
{
|
|
83
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
... ("no_name");
|
|
84
|
msgsetloc(0, * (...)Wait for input"* (...)/", "obj_dw_ch3_b3bs_zappera_trashswitch_slash_Step_0_gml_96_0" );
|
|
85
|
msgnextloc(* (...Delay 11 there's no way to unpress the switch.)Wait for inputClose Message"* (..^1. there's no way to unpress the switch.)/%", "obj_dw_ch3_b3bs_zappera_trashswitch_slash_Step_0_gml_97_0" );
|
|
86
|
d_make();
|
|
87
|
timer = 0;
|
|
88
|
con++;
|
|
89
|
}
|
|
90
|
}
|
|
91
|
if (con == 9)
|
|
92
|
{
|
|
93
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () == 1)
|
|
94
|
{
|
|
95
|
scr_lerpvar_instancescr_lerpvar_instance
function scr_lerpvar_instance()
{
__lerpvar = instance_create(0, 0, obj_lerpvar);
__lerpvar.target = argument[0];
__lerpvar.varname = argument[1];
__lerpvar.pointa = argument[2];
__lerpvar.pointb = argument[3];
__lerpvar.maxtime = argument[4];
if (argument_count >= 6)
__lerpvar.easetype = argument[5];
if (argument_count >= 7)
__lerpvar.easeinout = argument[6];
return __lerpvar;
}
function scr_lerp_var_instance()
{
if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
}
function scr_lerp_instance_var()
{
if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
} (blackout, "image_alpha", 1, 0, 30);
|
|
96
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (blackout, 31);
|
|
97
|
con = -1;
|
|
98
|
scr_delay_var("con", 10, 30);
|
|
99
|
}
|
|
100
|
}
|
|
101
|
if (con == 10 && !d_ex())
|
|
102
|
{
|
|
103
|
global.interact = 0;
|
|
104
|
con = 11;
|
|
105
|
}
|