|
1
|
if (global.chapter == 4)
|
|
2
|
{
|
|
3
|
if (warrior_construct)
|
|
4
|
{
|
|
5
|
if (i_ex(warrior_marker))
|
|
6
|
{
|
|
7
|
if (warrior_marker.image_index == 4)
|
|
8
|
{
|
|
9
|
audio_play_sound_on(emitter, snd_impact, false, 0);
|
|
10
|
with (tarp_marker)
|
|
11
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} ();
|
|
12
|
}
|
|
13
|
audio_listener_position(warrior_marker.x + (warrior_marker.x - obj_mainchara.x), obj_mainchara.y, 0);
|
|
14
|
}
|
|
15
|
}
|
|
16
|
if (global.plot < 95)
|
|
17
|
{
|
|
18
|
if (obj_mainchara.x >= 1790)
|
|
19
|
{
|
|
20
|
susie_hang_timer++;
|
|
21
|
if (susie_hang_timer == 1)
|
|
22
|
{
|
|
23
|
with (obj_caterpillarchara)
|
|
24
|
{
|
|
25
|
fun = 1;
|
|
26
|
sprite_index = spr_susie_surprised_right_lw;
|
|
27
|
if (follow == 1)
|
|
28
|
follow = 0;
|
|
29
|
}
|
|
30
|
}
|
|
31
|
if (susie_hang_timer == 8)
|
|
32
|
{
|
|
33
|
with (obj_caterpillarchara)
|
|
34
|
{
|
|
35
|
sprite_index = spr_susie_shifty;
|
|
36
|
image_speed = 0.15;
|
|
37
|
}
|
|
38
|
}
|
|
39
|
}
|
|
40
|
else
|
|
41
|
{
|
|
42
|
susie_hang_timer = 0;
|
|
43
|
with (obj_caterpillarchara)
|
|
44
|
{
|
|
45
|
if (follow == 0)
|
|
46
|
{
|
|
47
|
fun = 0;
|
|
48
|
follow = 1;
|
|
49
|
scr_caterpillar_interpolatescr_caterpillar_interpolate
function scr_caterpillar_interpolate(arg0 = "none")
{
if (arg0 == "all")
{
with (obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else if (arg0 == "none")
{
if (object_index == obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else
{
with (obj_caterpillarchara)
{
if (name == arg0)
scr_caterpillar_interpolate_old();
}
}
}
function scr_caterinterp(arg0 = "none")
{
scr_caterpillar_interpolate(arg0);
}
function scr_caterpillar_interpolate_old()
{
_newfacing = scr_facing_letter_to_number(scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = _newfacing;
for (_iaia = target; _iaia > 0; _iaia -= 1)
{
remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target);
if (global.darkzone == 1)
remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target);
else
remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target);
facing[_iaia] = _newfacing;
}
} ();
|
|
50
|
}
|
|
51
|
}
|
|
52
|
}
|
|
53
|
}
|
|
54
|
if (con == 0 && global.interact == 0)
|
|
55
|
{
|
|
56
|
con = 1;
|
|
57
|
alarm[0] = 30; gml_Object_obj_room_town_mid_Alarm_0.gml
con++;
|
|
58
|
global.interact = 1;
|
|
59
|
with (obj_caterpillarchara)
|
|
60
|
facing[target] = 2;
|
|
61
|
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;
... ("no_name");
|
|
62
|
msgsetloc(0, * (Knock knock knock...)Wait for input"* (Knock knock knock...)/", "obj_room_town_mid_slash_Step_0_gml_76_0" );
|
|
63
|
msgnextloc(* Hey!Delay 11 Human!Delay 11 Doesn't monsters scare you? Like if that girl bited you!Wait for input"* Hey^1! Human^1! Doesn't monsters scare you? Like if that girl bited you!/", "obj_room_town_mid_slash_Step_0_gml_77_0" );
|
|
64
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("susie", "9");
|
|
65
|
msgnextloc(Face 9* Nah,Delay 11 Kris's got nothing to worry about.Wait for input"\\E9* Nah^1, Kris's got nothing to worry about./", "obj_room_town_mid_slash_Step_0_gml_79_0" );
|
|
66
|
msgnextloc(Face Y* I only like to eat little rabbits.Wait for inputClose Message"\\EY* I only like to eat little rabbits./%", "obj_room_town_mid_slash_Step_0_gml_80_0" );
|
|
67
|
d_make();
|
|
68
|
}
|
|
69
|
if (con == 2 && !d_ex())
|
|
70
|
{
|
|
71
|
con = 3;
|
|
72
|
alarm[0] = 30; gml_Object_obj_room_town_mid_Alarm_0.gml
con++;
|
|
73
|
snd_play(snd_escaped);
|
|
74
|
var window_marker = 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;
} (1514, 6, spr_town_mid_child_leave);
|
|
75
|
with (window_marker)
|
|
76
|
{
|
|
77
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
78
|
scr_animatescr_animate
function scr_animate(arg0, arg1, arg2)
{
__animator = instance_create(x, y, obj_animator);
__animator.target = id;
__animator.initframe = arg0;
__animator.endframe = arg1;
__animator.fake_image_speed = arg2;
return __animator;
} (0, 3, 0.4);
|
|
79
|
}
|
|
80
|
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;
... ("no_name");
|
|
81
|
msgsetloc(0, * MOOOOOOOOOOOOOOOOOM!!!!!!!!!Wait for inputClose Message"* MOOOOOOOOOOOOOOOOOM!!!!!!!!!/%", "obj_room_town_mid_slash_Step_0_gml_99_0" );
|
|
82
|
d_make();
|
|
83
|
}
|
|
84
|
if (con == 4 && !d_ex())
|
|
85
|
{
|
|
86
|
con = 99;
|
|
87
|
global.interact = 0;
|
|
88
|
}
|
|
89
|
if (global.flag[20 other_text_command] == 1)
|
|
90
|
{
|
|
91
|
if (sans_face == -4)
|
|
92
|
{
|
|
93
|
sans_face = scr_marker_animatedscr_marker_animated
function scr_marker_animated()
{
var x_pos = argument[0];
var y_pos = argument[1];
var sprite = argument[2];
var anim_speed = (argument_count > 3) ? argument[3] : 0.2;
thismarker = instance_create(x_pos, y_pos, obj_marker);
with (thismarker)
{
sprite_index = sprite;
image_speed = anim_speed;
scr_depth();
}
return thismarker;
} (camerax() + 80, cameray() + 170, spr_conbini_sign_sans_white, 0.05);
|
|
94
|
sans_face.depth = -100;
|
|
95
|
}
|
|
96
|
else if (!d_ex())
|
|
97
|
{
|
|
98
|
global.flag[20 other_text_command] = 0;
|
|
99
|
with (sans_face)
|
|
100
|
instance_destroy();
|
|
101
|
sans_face = -4;
|
|
102
|
}
|
|
103
|
}
|
|
104
|
}
|