|
1
|
if (obj_npc_room_animated.talked == 1 && !instance_exists(obj_dialoguer) && con == -1 && global.flag[304 susie_ate_cake] == 0)
|
|
2
|
{
|
|
3
|
con = 1;
|
|
4
|
global.interact = 1;
|
|
5
|
with (obj_caterpillarchara)
|
|
6
|
{
|
|
7
|
fun = 1;
|
|
8
|
image_index = 0;
|
|
9
|
}
|
|
10
|
}
|
|
11
|
if (con == 1)
|
|
12
|
{
|
|
13
|
con = 3;
|
|
14
|
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 == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
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;
... ("ralsei");
|
|
15
|
msgsetloc(0, Face 2* Here,Delay 11 Kris,Delay 11 Susie,Delay 11 have a cake!!!Wait for inputClose Message"\\E2* Here^1, Kris^1, Susie^1, have a cake!!!/%", "obj_ch2_room_castle_1f_cake_slash_Step_0_gml_21_0" );
|
|
16
|
d_make();
|
|
17
|
}
|
|
18
|
if (con == 3 && !d_ex())
|
|
19
|
{
|
|
20
|
con = 10;
|
|
21
|
alarm[0] = 40; gml_Object_obj_room_castle_1f_cake_Alarm_0.gml
con++;
|
|
22
|
explosion = instance_create(620, 250, obj_animation);
|
|
23
|
snd_play(snd_badexplosion);
|
|
24
|
explosion.sprite_index = spr_realisticexplosion;
|
|
25
|
cake = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (590, 250, spr_cauldron_cake);
|
|
26
|
cake.depth = explosion.depth - 100;
|
|
27
|
}
|
|
28
|
if (con >= 3)
|
|
29
|
{
|
|
30
|
if (i_ex(cake))
|
|
31
|
{
|
|
32
|
if (con < 11)
|
|
33
|
cake.y = clamp(cake.y - 20, -100, 300);
|
|
34
|
else
|
|
35
|
cake.y += 20;
|
|
36
|
}
|
|
37
|
}
|
|
38
|
if (con == 11)
|
|
39
|
{
|
|
40
|
var susx = 0;
|
|
41
|
var susy = 0;
|
|
42
|
with (obj_caterpillarchara)
|
|
43
|
{
|
|
44
|
if (name == "susie")
|
|
45
|
{
|
|
46
|
susx = x;
|
|
47
|
susy = y;
|
|
48
|
}
|
|
49
|
}
|
|
50
|
cake.x = susx;
|
|
51
|
var susid = 0;
|
|
52
|
if (cake.y > (susy - 40))
|
|
53
|
{
|
|
54
|
with (obj_caterpillarchara)
|
|
55
|
{
|
|
56
|
if (name == "susie")
|
|
57
|
{
|
|
58
|
ignoredepth = 1;
|
|
59
|
sprite_index = spr_susie_chomp;
|
|
60
|
}
|
|
61
|
}
|
|
62
|
}
|
|
63
|
if (cake.y > (susy - 80))
|
|
64
|
{
|
|
65
|
with (obj_caterpillarchara)
|
|
66
|
{
|
|
67
|
if (name == "susie")
|
|
68
|
{
|
|
69
|
susid = id;
|
|
70
|
image_speed = 0.25;
|
|
71
|
}
|
|
72
|
}
|
|
73
|
}
|
|
74
|
if (cake.y > susy)
|
|
75
|
{
|
|
76
|
con = 12;
|
|
77
|
instance_destroy(cake);
|
|
78
|
snd_play_pitch(snd_reverse_splat, 1.2);
|
|
79
|
snd_play(snd_power);
|
|
80
|
healanim = instance_create(susx, susy, obj_healanim);
|
|
81
|
healanim.target = susid;
|
|
82
|
}
|
|
83
|
}
|
|
84
|
if (con == 12)
|
|
85
|
{
|
|
86
|
con = 13;
|
|
87
|
alarm[0] = 30; gml_Object_obj_room_castle_1f_cake_Alarm_0.gml
con++;
|
|
88
|
}
|
|
89
|
if (con == 14)
|
|
90
|
{
|
|
91
|
con = 15;
|
|
92
|
with (obj_caterpillarchara)
|
|
93
|
{
|
|
94
|
if (name == "susie")
|
|
95
|
{
|
|
96
|
ignoredepth = 0;
|
|
97
|
sprite_index = dsprite;
|
|
98
|
image_index = 0;
|
|
99
|
image_speed = 0;
|
|
100
|
}
|
|
101
|
}
|
|
102
|
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 == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
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;
... ("susie");
|
|
103
|
global.fe = 2;
|
|
104
|
msgsetloc(0, Face 2* Hmm,Delay 11 a little thick on the frosting.Wait for input"\\E2* Hmm^1, a little thick on the frosting./", "obj_ch2_room_castle_1f_cake_slash_Step_0_gml_128_0" );
|
|
105
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("ralsei", 30);
|
|
106
|
msgnextloc(Face U* ...Delay 11 Th...Delay 11 that was for sharing!Wait for input"\\EU* ..^1. Th..^1. that was for sharing!/", "obj_ch2_room_castle_1f_cake_slash_Step_0_gml_130_0" );
|
|
107
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("susie", 2);
|
|
108
|
msgnextloc(Face 2* Hey,Delay 11 anyone was free to make an interception.Wait for inputClose Message"\\E2* Hey^1, anyone was free to make an interception./%", "obj_ch2_room_castle_1f_cake_slash_Step_0_gml_132_0" );
|
|
109
|
d_make();
|
|
110
|
}
|
|
111
|
if (con == 15 && !d_ex())
|
|
112
|
{
|
|
113
|
with (obj_caterpillarchara)
|
|
114
|
fun = 0;
|
|
115
|
instance_destroy(healanim);
|
|
116
|
if (global.flag[304 susie_ate_cake] == 0)
|
|
117
|
global.flag[304 susie_ate_cake] = 1;
|
|
118
|
global.interact = 0;
|
|
119
|
con = -1;
|
|
120
|
instance_destroy();
|
|
121
|
}
|