1 |
if (scr_havecharscr_havecharfunction scr_havechar(arg0)
{
var checker = arg0;
if (checker == "susie" || checker == "su" || checker == "s")
checker = 2;
if (checker == "ralsei" || checker == "ra" || checker == "r")
checker = 3;
if (checker == "noelle" || checker == "no" || checker == "n")
checker = 4;
_rreturn = 0;
if (global.char[0] == checker)
_rreturn = 1;
if (global.char[1] == checker)
_rreturn = 1;
if (global.char[2] == checker)
_rreturn = 1;
return _rreturn;
} (2) && obj_mainchara.x < x && con == -1 && global.flag[336 susie_avoid_alphys] == 0) |
2 |
{ |
3 |
con = 1; |
4 |
global.interact = 1; |
5 |
global.facing = 1; |
6 |
global.flag[336 susie_avoid_alphys] = 1; |
7 |
scr_losecharscr_losecharfunction scr_losechar()
{
global.char[2] = 0;
global.char[1] = 0;
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
} (); |
8 |
susxpos = obj_caterpillarchara.x; |
9 |
susypos = obj_caterpillarchara.y; |
10 |
nisesusie = scr_markerscr_markerfunction scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (susxpos, susypos, spr_susie_walk_left_lw); |
11 |
with (nisesusie) |
12 |
scr_depth(); |
13 |
with (obj_caterpillarchara) |
14 |
instance_destroy(); |
15 |
} |
16 |
if (con == 1) |
17 |
{ |
18 |
con = 3; |
19 |
leaveCounter++; |
20 |
scr_speakerscr_speakerfunction 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 == "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;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("susie"); |
21 |
if (leaveCounter == 1) |
22 |
{ |
23 |
msgsetloc(0, Face 0* Uh oh. Alphys. Hell if I'm going any further.Wait for input"\\E0* Uh oh. Alphys. Hell if I'm going any further./", "obj_ch2_room_town_south_alphys_slash_Step_0_gml_33_0" ); |
24 |
msgnextloc(Face 0* Already close enough to getting banned from school.Wait for input"\\E0* Already close enough to getting banned from school./", "obj_ch2_room_town_south_alphys_slash_Step_0_gml_34_0" ); |
25 |
msgnextloc(Face 0* Don't wanna be banned from outside of school too.Wait for input"\\E0* Don't wanna be banned from outside of school too./", "obj_ch2_room_town_south_alphys_slash_Step_0_gml_35_0" ); |
26 |
msgnextloc(Face 1* (...Delay 11 that's a thing,Delay 11 right?)Wait for inputClose Message"\\E1* (..^1. that's a thing^1, right?)/%", "obj_ch2_room_town_south_alphys_slash_Step_0_gml_36_0" ); |
27 |
} |
28 |
else |
29 |
{ |
30 |
msgsetloc(0, Face 0* Alphys? You're on your own.Wait for inputClose Message"\\E0* Alphys? You're on your own./%", "obj_ch2_room_town_south_alphys_slash_Step_0_gml_39_0" ); |
31 |
} |
32 |
d_make(); |
33 |
} |
34 |
if (obj_mainchara.x > x && global.flag[336 susie_avoid_alphys] == 1 && !scr_havecharscr_havecharfunction scr_havechar(arg0)
{
var checker = arg0;
if (checker == "susie" || checker == "su" || checker == "s")
checker = 2;
if (checker == "ralsei" || checker == "ra" || checker == "r")
checker = 3;
if (checker == "noelle" || checker == "no" || checker == "n")
checker = 4;
_rreturn = 0;
if (global.char[0] == checker)
_rreturn = 1;
if (global.char[1] == checker)
_rreturn = 1;
if (global.char[2] == checker)
_rreturn = 1;
return _rreturn;
} (2)) |
35 |
{ |
36 |
scr_getcharscr_getcharfunction scr_getchar(arg0)
{
getchar = 0;
if (global.char[0] == 0)
{
global.char[0] = arg0;
getchar = 1;
}
if (global.char[1] == 0 && getchar == 0)
{
global.char[1] = arg0;
getchar = 1;
}
if (global.char[2] == 0 && getchar == 0)
{
global.char[2] = arg0;
getchar = 1;
}
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
} (2); |
37 |
scr_getcharscr_getcharfunction scr_getchar(arg0)
{
getchar = 0;
if (global.char[0] == 0)
{
global.char[0] = arg0;
getchar = 1;
}
if (global.char[1] == 0 && getchar == 0)
{
global.char[1] = arg0;
getchar = 1;
}
if (global.char[2] == 0 && getchar == 0)
{
global.char[2] = arg0;
getchar = 1;
}
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
} (3); |
38 |
scr_makecaterpillarscr_makecaterpillarfunction scr_makecaterpillar(arg0, arg1, arg2, arg3)
{
global.cinstance[arg3] = instance_create(arg0, arg1, obj_caterpillarchara);
global.cinstance[arg3].target = 12 + (arg3 * 12);
if (arg2 == 3)
{
with (global.cinstance[arg3])
{
usprite = spr_ralseiu;
dsprite = spr_ralseid;
rsprite = spr_ralseir;
lsprite = spr_ralseil;
if (global.chapter >= 2)
{
name = "ralsei";
usprite = spr_ralsei_walk_up;
dsprite = spr_ralsei_walk_down;
rsprite = spr_ralsei_walk_right;
lsprite = spr_ralsei_walk_left;
}
}
}
if (arg2 == 4)
{
with (global.cinstance[arg3])
{
name = "noelle";
usprite = spr_noelle_walk_up_dw;
dsprite = spr_noelle_walk_down_dw;
rsprite = spr_noelle_walk_right_dw;
lsprite = spr_noelle_walk_left_dw;
if (global.chapter == 2 && global.plot == 95)
{
dsprite = spr_noelle_walk_down_blush_dw;
rsprite = spr_noelle_walk_right_blush_dw;
lsprite = spr_noelle_walk_left_blush_dw;
}
}
}
if (arg2 == 5)
{
with (global.cinstance[arg3])
{
name = "berdly";
usprite = spr_berdly_walk_up_dw;
dsprite = spr_berdly_walk_down_dw;
rsprite = spr_berdly_walk_right_dw;
lsprite = spr_berdly_walk_left_dw;
}
}
if (arg2 == 6)
{
with (global.cinstance[arg3])
{
name = "starwalker";
usprite = spr_npc_originalstarwalker;
dsprite = spr_npc_originalstarwalker;
rsprite = spr_npc_originalstarwalker;
lsprite = spr_npc_originalstarwalker;
}
}
return global.cinstance[arg3];
} (obj_mainchara.x - 40, obj_mainchara.y - 7, 2, 0); |
39 |
with (obj_caterpillarchara) |
40 |
visible = 0; |
41 |
} |
42 |
if (obj_mainchara.x < x && global.flag[336 susie_avoid_alphys] == 1 && scr_havecharscr_havecharfunction scr_havechar(arg0)
{
var checker = arg0;
if (checker == "susie" || checker == "su" || checker == "s")
checker = 2;
if (checker == "ralsei" || checker == "ra" || checker == "r")
checker = 3;
if (checker == "noelle" || checker == "no" || checker == "n")
checker = 4;
_rreturn = 0;
if (global.char[0] == checker)
_rreturn = 1;
if (global.char[1] == checker)
_rreturn = 1;
if (global.char[2] == checker)
_rreturn = 1;
return _rreturn;
} (2)) |
43 |
{ |
44 |
scr_losecharscr_losecharfunction scr_losechar()
{
global.char[2] = 0;
global.char[1] = 0;
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
} (); |
45 |
with (obj_caterpillarchara) |
46 |
instance_destroy(); |
47 |
} |
48 |
if (obj_mainchara.x > (x + 40) && global.flag[336 susie_avoid_alphys] == 1) |
49 |
{ |
50 |
con = 4; |
51 |
global.interact = 1; |
52 |
global.flag[336 susie_avoid_alphys] = 0; |
53 |
nisesusie.image_speed = 0.25; |
54 |
nisesusie.sprite_index = spr_susie_walk_left_lw; |
55 |
} |
56 |
if (con == 4) |
57 |
{ |
58 |
nisesusie.y = lerp(nisesusie.y, obj_caterpillarchara.y, 0.15); |
59 |
nisesusie.x = lerp(nisesusie.x, obj_caterpillarchara.x, 0.1); |
60 |
if (abs(nisesusie.x - obj_caterpillarchara.x) <= 4 && abs(nisesusie.y - obj_caterpillarchara.y) <= 4) |
61 |
{ |
62 |
nisesusie.x = obj_caterpillarchara.x; |
63 |
nisesusie.sprite_index = obj_caterpillarchara.sprite_index; |
64 |
with (obj_caterpillarchara) |
65 |
visible = 1; |
66 |
with (nisesusie) |
67 |
instance_destroy(); |
68 |
con = 5; |
69 |
} |
70 |
} |
71 |
if (con == 5) |
72 |
{ |
73 |
con = 3; |
74 |
scr_speakerscr_speakerfunction 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 == "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;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("susie"); |
75 |
msgsetloc(0, Face 2* (Alright,Delay 11 let's go.)Wait for inputClose Message"\\E2* (Alright^1, let's go.)/%", "obj_ch2_room_town_south_alphys_slash_Step_0_gml_96_0" ); |
76 |
d_make(); |
77 |
} |
78 |
if (con == 3 && !d_ex()) |
79 |
{ |
80 |
global.interact = 0; |
81 |
con = -1; |
82 |
} |