|
1
|
scr_board_populatevarsscr_board_populatevars
function scr_board_populatevars()
{
if (!variable_instance_exists(id, "kris"))
kris = 0;
if (!variable_instance_exists(id, "susie"))
susie = 0;
if (!variable_instance_exists(id, "ralsei"))
ralsei = 0;
if (kris == 0)
{
with (obj_mainchara_board)
{
if (name == "kris")
other.kris = id;
}
}
if (ralsei == 0)
{
with (obj_mainchara_board)
{
if (name == "ralsei")
other.ralsei = id;
}
}
if (susie == 0)
{
with (obj_mainchara_board)
{
if (name == "susie")
other.susie = id;
}
}
} ();
|
|
2
|
scr_gameshow_populatevarsscr_gameshow_populatevars
function scr_gameshow_populatevars()
{
if (!variable_instance_exists(id, "kr_real"))
kr_real = 0;
if (!variable_instance_exists(id, "su_real"))
su_real = 0;
if (!variable_instance_exists(id, "ra_real"))
ra_real = 0;
if (!variable_instance_exists(id, "tenna"))
tenna = 0;
if (kr_real == 0)
{
with (obj_mainchara)
other.kr_real = id;
}
if (su_real == 0)
{
with (obj_caterpillarchara)
{
if (name == "susie")
other.su_real = id;
}
}
if (ra_real == 0)
{
with (obj_caterpillarchara)
{
if (name == "ralsei")
other.ra_real = id;
}
}
if (tenna == 0)
{
with (obj_actor_tenna)
other.tenna = id;
}
} ();
|
|
3
|
if (active)
|
|
4
|
{
|
|
5
|
if (firstvisitfix == 0 && obj_board_camera.con == 0)
|
|
6
|
{
|
|
7
|
firstvisitfix = 1;
|
|
8
|
kris.controlled = 0;
|
|
9
|
susie.controlled = 1;
|
|
10
|
ralsei.follow = 1;
|
|
11
|
battlecon = 0;
|
|
12
|
}
|
|
13
|
if (battlecon == 0 && obj_board_camera.con == 0)
|
|
14
|
{
|
|
15
|
timer++;
|
|
16
|
if (timer == 5)
|
|
17
|
{
|
|
18
|
var sutalk = stringsetloc(Look out, Kris! Enemy!"Look out, Kris! Enemy!", "obj_b2enemysquabble_slash_Step_0_gml_26_0" );
|
|
19
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (sutalk, "susie", 2, 70);
|
|
20
|
scr_pathfind_to_pointscr_pathfind_to_point
function scr_pathfind_to_point(arg0, arg1, arg2)
{
var __destx = arg1 + 16;
var __desty = arg2 + 16;
if (arg1 < 12 && arg2 < 8)
{
__destx = 128 + (32 * arg1) + 16;
__desty = 64 + (32 * arg2) + 16;
}
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
is_moving_timer = 0;
is_moving = true;
path_target_x = __destx;
path_target_y = __desty;
follow = false;
if (argument_count == 4)
{
if (argument3 != -1)
path_end_facing = argument3;
}
if (argument_count == 5)
{
if (argument4 != -1)
allow_diagonals = argument4;
}
}
}
} ("kris", 5.5, 4, 1);
|
|
21
|
battlecon = 1;
|
|
22
|
timer = 0;
|
|
23
|
}
|
|
24
|
}
|
|
25
|
}
|
|
26
|
if (battlecon == 2)
|
|
27
|
{
|
|
28
|
if (global.fighting == true)
|
|
29
|
battlecon = 3.1;
|
|
30
|
}
|
|
31
|
if (battlecon == 3.1)
|
|
32
|
{
|
|
33
|
if (global.fighting == false)
|
|
34
|
{
|
|
35
|
if (global.boardbattleresult == "won")
|
|
36
|
{
|
|
37
|
if (!i_ex(obj_gameshow_battlemanager))
|
|
38
|
battlecon = 3.9;
|
|
39
|
}
|
|
40
|
else if (!i_ex(obj_gameover_board) && !i_ex(obj_gameshow_battlemanager) && !i_ex(obj_gameover_minigame))
|
|
41
|
{
|
|
42
|
battlecon = 3.9;
|
|
43
|
}
|
|
44
|
}
|
|
45
|
}
|
|
46
|
if (battlecon == 3.9)
|
|
47
|
{
|
|
48
|
with (susie)
|
|
49
|
{
|
|
50
|
if (grabbed != -4)
|
|
51
|
{
|
|
52
|
grab = 0;
|
|
53
|
fun = 0;
|
|
54
|
}
|
|
55
|
}
|
|
56
|
battlecon = 4;
|
|
57
|
timer = 0;
|
|
58
|
}
|
|
59
|
if (battlecon == 4)
|
|
60
|
{
|
|
61
|
timer++;
|
|
62
|
var delay = 40;
|
|
63
|
if (timer == 5)
|
|
64
|
{
|
|
65
|
global.flag[1020 got_power_croissant] = 0;
|
|
66
|
var sutalk = stringsetloc(FINE. I'll fix the controllers."FINE. I'll fix the controllers.", "obj_b2enemysquabble_slash_Step_0_gml_59_0" );
|
|
67
|
subub = scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (sutalk, "susie", 2, 90);
|
|
68
|
}
|
|
69
|
if (timer == (65 + delay))
|
|
70
|
{
|
|
71
|
su_real.fun = 1;
|
|
72
|
su_real.sprite_index = spr_susie_walk_up_dw;
|
|
73
|
kr_real.sprite_index = kr_real.usprite;
|
|
74
|
ra_real.sprite_index = ra_real.usprite;
|
|
75
|
with (su_real)
|
|
76
|
{
|
|
77
|
image_speed = 0.25;
|
|
78
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (294, 288, 16);
|
|
79
|
}
|
|
80
|
}
|
|
81
|
if (timer == (81 + delay))
|
|
82
|
su_real.sprite_index = spr_susieu_dark_benddown;
|
|
83
|
if (timer == (87 + delay))
|
|
84
|
{
|
|
85
|
susie.canfreemove = 0;
|
|
86
|
scr_board_forcethrowscr_board_forcethrow
function scr_board_forcethrow()
{
var delivered = false;
var _mysusie = 0;
with (obj_mainchara_board)
{
if (name == "susie")
_mysusie = id;
}
if (!i_ex(_mysusie))
{
debug_print("NO SUSIE FOUND");
return 0;
}
if (i_ex(obj_board_grabobject))
{
var realsux = round((_mysusie.x - 128) / 32);
var realsuy = round((_mysusie.y - 64) / 32);
realsux = clamp(realsux, 1, 10);
realsuy = clamp(realsuy, 1, 6);
if (!i_ex(instance_place(board_tilex(realsux - 1), board_tiley(realsuy), obj_board_solid)))
{
delivered = true;
_mysusie.facing = 3;
with (obj_board_grabobject)
{
aimx = board_tilex(realsux - 1);
aimy = board_tiley(realsuy);
snd_play(snd_board_throw);
grabdaddy.xx = aimx;
grabdaddy.yy = aimy;
con = 1;
}
}
else
{
}
if (!delivered)
{
if (!i_ex(instance_place(board_tilex(realsux + 1), board_tiley(realsuy), obj_board_solid)))
{
_mysusie.facing = 1;
delivered = true;
with (obj_board_grabobject)
{
aimx = board_tilex(realsux + 1);
aimy = board_tiley(realsuy);
snd_play(snd_board_throw);
grabdaddy.xx = aimx;
grabdaddy.yy = aimy;
con = 1;
}
}
else
{
}
}
if (!delivered)
{
if (!i_ex(instance_place(board_tilex(realsux), board_tiley(realsuy - 1), obj_board_solid)))
{
_mysusie.facing = 2;
delivered = true;
with (obj_board_grabobject)
{
aimx = board_tilex(realsux);
aimy = board_tiley(realsuy - 1);
snd_play(snd_board_throw);
grabdaddy.xx = aimx;
grabdaddy.yy = aimy;
con = 1;
}
}
else
{
}
}
if (!delivered)
{
if (!i_ex(instance_place(board_tilex(realsux), board_tiley(realsuy - 1), obj_board_solid)))
{
_mysusie.facing = 0;
delivered = true;
}
else
{
}
}
if (delivered == false)
{
_mysusie.facing = 2;
with (obj_board_grabobject)
{
aimx = grabdaddy.x;
aimy = grabdaddy.y;
snd_play(snd_board_throw);
grabdaddy.xx = aimx;
grabdaddy.yy = aimy;
con = 1;
}
}
... ();
|
|
87
|
susie.facing = 0;
|
|
88
|
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);
} (su_real, 8);
|
|
89
|
snd_play(snd_wing);
|
|
90
|
global.flag[1020 got_power_croissant] = 1;
|
|
91
|
}
|
|
92
|
if (timer == (93 + delay))
|
|
93
|
{
|
|
94
|
susie.canfreemove = 1;
|
|
95
|
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);
} (su_real, 8);
|
|
96
|
snd_play(snd_equip);
|
|
97
|
}
|
|
98
|
if (timer == (99 + delay))
|
|
99
|
{
|
|
100
|
with (su_real)
|
|
101
|
{
|
|
102
|
sprite_index = usprite;
|
|
103
|
image_index = 0;
|
|
104
|
image_speed = 0;
|
|
105
|
snd_play(snd_wing);
|
|
106
|
}
|
|
107
|
obj_ch3_gameshow.wires.sprite_index = spr_controllerwires_rks;
|
|
108
|
}
|
|
109
|
if (timer == (105 + delay))
|
|
110
|
{
|
|
111
|
with (su_real)
|
|
112
|
{
|
|
113
|
image_speed = 0.25;
|
|
114
|
sprite_index = dsprite;
|
|
115
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (140, 392, 16);
|
|
116
|
}
|
|
117
|
}
|
|
118
|
if (timer == (122 + delay))
|
|
119
|
{
|
|
120
|
with (su_real)
|
|
121
|
{
|
|
122
|
image_speed = 0;
|
|
123
|
sprite_index = usprite;
|
|
124
|
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);
} (id, 4);
|
|
125
|
}
|
|
126
|
battlecon = 5;
|
|
127
|
timer = 0;
|
|
128
|
with (obj_mainchara_board)
|
|
129
|
controlled = 0;
|
|
130
|
with (obj_mainchara_board)
|
|
131
|
canfreemove = true;
|
|
132
|
ralsei.follow = false;
|
|
133
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ("ralsei");
|
|
134
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ("susie");
|
|
135
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ("kris");
|
|
136
|
susie.controlled = 1;
|
|
137
|
}
|
|
138
|
}
|
|
139
|
if (battlecon == 5)
|
|
140
|
{
|
|
141
|
timer++;
|
|
142
|
if (timer == 5)
|
|
143
|
scr_pathfind_to_pointscr_pathfind_to_point
function scr_pathfind_to_point(arg0, arg1, arg2)
{
var __destx = arg1 + 16;
var __desty = arg2 + 16;
if (arg1 < 12 && arg2 < 8)
{
__destx = 128 + (32 * arg1) + 16;
__desty = 64 + (32 * arg2) + 16;
}
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
is_moving_timer = 0;
is_moving = true;
path_target_x = __destx;
path_target_y = __desty;
follow = false;
if (argument_count == 4)
{
if (argument3 != -1)
path_end_facing = argument3;
}
if (argument_count == 5)
{
if (argument4 != -1)
allow_diagonals = argument4;
}
}
}
} ("kris", 5.5, 5, 2);
|
|
144
|
if (timer == 15)
|
|
145
|
{
|
|
146
|
var ratalk = stringsetloc(Thank you very..."Thank you very...", "obj_b2enemysquabble_slash_Step_0_gml_142_0" );
|
|
147
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 60);
|
|
148
|
}
|
|
149
|
if (timer == 25)
|
|
150
|
scr_play_recordingscr_play_recording
function scr_play_recording(arg0, arg1)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
susierecordcon = 2;
susierecordcount = 0;
susierecordstring = arg1;
susierecordsave = false;
}
}
} ("kris", "0W0W0W0W0W0W0W0W0W0W0W0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0R0R0R0R0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0W0W0W0W0W0R0R0W0W0W0W0W0W0W0W0W0W0W0W0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0W0W0W0W0W0W0D0D0D0D0D0D0D");
|
|
151
|
if (timer == 80)
|
|
152
|
{
|
|
153
|
var ratalk = stringsetloc(W... wait a second.."W... wait a second..", "obj_b2enemysquabble_slash_Step_0_gml_151_0" );
|
|
154
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 60);
|
|
155
|
}
|
|
156
|
if (timer == 120)
|
|
157
|
scr_play_recordingscr_play_recording
function scr_play_recording(arg0, arg1)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
susierecordcon = 2;
susierecordcount = 0;
susierecordstring = arg1;
susierecordsave = false;
}
}
} ("kris", "0W0W0W0W0W0W0W0W0L0L0L0LDU0LDU0DU0DU0RD0R0R0R0R0RU0U0LU0L0L0LD0D0RD0RD0LR0LR0LR0R0RD0RD0LD0L0L0R0R0LR0L0L0LR0RU0RU0LRU0LU0LU0LU0L0L0LD0D0D0D0LRD0LR0LR0R0LR0LR0L0LRU0RU0RU0LRU0LU0LU0LRU0RU0LR0LR0LR0LRDU0RD0RD0RD0LD0LD0L0L0RDU0RDU0LRDU0L0L0LR0R0R0W0W0W0W");
|
|
158
|
if (timer == 140)
|
|
159
|
{
|
|
160
|
var ratalk = stringsetloc(S-Susie! Change me back!!"S-Susie! Change me back!!", "obj_b2enemysquabble_slash_Step_0_gml_161_0" );
|
|
161
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 60);
|
|
162
|
}
|
|
163
|
if (timer == 170)
|
|
164
|
{
|
|
165
|
su_real.sprite_index = spr_susie_laugh_dw;
|
|
166
|
su_real.image_xscale = -2;
|
|
167
|
su_real.x += 44;
|
|
168
|
su_real.image_speed = 0.25;
|
|
169
|
snd_play(snd_suslaugh);
|
|
170
|
}
|
|
171
|
if (timer == 235)
|
|
172
|
{
|
|
173
|
su_real.image_speed = 0;
|
|
174
|
timer = 0;
|
|
175
|
battlecon = 6;
|
|
176
|
}
|
|
177
|
}
|
|
178
|
if (battlecon == 6)
|
|
179
|
{
|
|
180
|
timer++;
|
|
181
|
if (timer == 5)
|
|
182
|
{
|
|
183
|
scr_resetgameshowcharacterscr_resetgameshowcharacter
function scr_resetgameshowcharacter(arg0)
{
if (room == room_dw_puzzlecloset_3)
exit;
var _name = arg0;
var _smooth = 0;
var __found = 0;
if (argument_count == 2)
_smooth = argument1;
if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all")
{
var _krx = 248;
var _kry = 400;
if (scr_swordroom())
{
_krx = 300;
_kry = 298;
}
with (obj_mainchara)
{
if (_smooth == 0)
{
setxy(_krx, _kry);
}
else
{
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
}
fun = true;
ignoredepth = true;
depth = 95240;
sprite_index = spr_krisu_dark;
image_speed = 0;
image_index = 0;
if (scr_swordroom())
{
sprite_index = spr_krisu_holdcontroller;
depth = 96260;
}
scr_darksize();
__found = 1;
}
}
if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all")
{
with (obj_caterpillarchara)
{
if (name == "susie")
{
fun = true;
ignoredepth = true;
depth = 95165;
var _sux = 140;
var _suy = 392;
if (_smooth == 0)
{
setxy(_sux, _suy);
}
else
{
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
}
sprite_index = spr_susie_walk_up_dw;
image_speed = 0;
image_index = 0;
scr_darksize();
__found = 1;
}
}
}
if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all")
{
with (obj_caterpillarchara)
{
if (name == "ralsei")
{
fun = true;
ignoredepth = true;
depth = 95145;
var _rax = 342;
var _ray = 396;
if (_smooth == 0)
{
setxy(_rax, _ray);
}
else
{
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
}
sprite_index = spr_ralsei_walk_up;
image_speed = 0;
image_index = 0;
scr_darksize();
__found = 1;
}
}
}
if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all")
... ("susie");
|
|
184
|
var sutalk = stringsetloc(C'mon, just for a bit. It'll be fun."C'mon, just for a bit. It'll be fun.", "obj_b2enemysquabble_slash_Step_0_gml_185_0" );
|
|
185
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (sutalk, "susie", 2, 80);
|
|
186
|
}
|
|
187
|
if (timer == 15)
|
|
188
|
scr_pathfind_to_pointscr_pathfind_to_point
function scr_pathfind_to_point(arg0, arg1, arg2)
{
var __destx = arg1 + 16;
var __desty = arg2 + 16;
if (arg1 < 12 && arg2 < 8)
{
__destx = 128 + (32 * arg1) + 16;
__desty = 64 + (32 * arg2) + 16;
}
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
is_moving_timer = 0;
is_moving = true;
path_target_x = __destx;
path_target_y = __desty;
follow = false;
if (argument_count == 4)
{
if (argument3 != -1)
path_end_facing = argument3;
}
if (argument_count == 5)
{
if (argument4 != -1)
allow_diagonals = argument4;
}
}
}
} ("kris", 6, 0, 0);
|
|
189
|
if (timer == 85)
|
|
190
|
{
|
|
191
|
var ratalk = stringsetloc(..."...", "obj_b2enemysquabble_slash_Step_0_gml_194_0" );
|
|
192
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 60);
|
|
193
|
battlecon = 7;
|
|
194
|
timer = 0;
|
|
195
|
}
|
|
196
|
}
|
|
197
|
if (battlecon == 7)
|
|
198
|
{
|
|
199
|
if (scr_board_checklocationscr_board_checklocation
function scr_board_checklocation()
{
var _name = argument0;
var _xloc = argument1;
var _yloc = argument2;
if (_xloc < 12)
_xloc = board_tilex(_xloc);
if (_yloc < 12)
_yloc = board_tiley(_yloc);
var _tol = 4;
if (argument_count == 4)
_tol = argument3;
var targ = 0;
with (obj_mainchara_board)
{
if (name == _name)
targ = id;
}
if (!i_ex(targ))
{
debug_message("target does not exist");
return false;
}
if (abs(targ.x - _xloc) < _tol && abs(targ.y - _yloc) < _tol)
return true;
} ("kris", 6, 0, 4))
|
|
200
|
{
|
|
201
|
timer = 0;
|
|
202
|
battlecon = 8;
|
|
203
|
}
|
|
204
|
}
|
|
205
|
if (battlecon == 8)
|
|
206
|
{
|
|
207
|
timer++;
|
|
208
|
if (timer == 15)
|
|
209
|
{
|
|
210
|
var ratalk = stringsetloc(Umm, Kris, don't you want your controller back?"Umm, Kris, don't you want your controller back?", "obj_b2enemysquabble_slash_Step_0_gml_218_0" );
|
|
211
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 9999);
|
|
212
|
}
|
|
213
|
if (timer == 75)
|
|
214
|
{
|
|
215
|
global.interact = 1;
|
|
216
|
global.msc = -99;
|
|
217
|
global.choice = -1;
|
|
218
|
global.choicemsg[0] = stringsetloc(You can#have a#turn"You can#have a#turn", "obj_b2enemysquabble_slash_Step_0_gml_228_0" );
|
|
219
|
global.choicemsg[1] = stringsetloc(Let's all#go back#to normal"Let's all#go back#to normal", "obj_b2enemysquabble_slash_Step_0_gml_229_0" );
|
|
220
|
global.choicemsg[2] = stringset("");
|
|
221
|
global.choicemsg[3] = stringset("");
|
|
222
|
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");
|
|
223
|
msgset(0, "\\C2");
|
|
224
|
d_make();
|
|
225
|
battlecon = 9;
|
|
226
|
}
|
|
227
|
}
|
|
228
|
if (battlecon == 9 && global.choice != -1)
|
|
229
|
{
|
|
230
|
k_d();
|
|
231
|
safe_delete(obj_couchwriter);
|
|
232
|
global.interact = 0;
|
|
233
|
timer = 0;
|
|
234
|
if (global.choice == 0)
|
|
235
|
{
|
|
236
|
battlecon = 10;
|
|
237
|
global.flag[1190 control_unjumble] = 0;
|
|
238
|
}
|
|
239
|
if (global.choice == 1)
|
|
240
|
{
|
|
241
|
battlecon = 11;
|
|
242
|
global.flag[1190 control_unjumble] = 1;
|
|
243
|
}
|
|
244
|
}
|
|
245
|
if (battlecon == 10)
|
|
246
|
{
|
|
247
|
timer++;
|
|
248
|
if (timer == 10)
|
|
249
|
{
|
|
250
|
var ratalk = stringsetloc(Well, if Kris says it's okay..."Well, if Kris says it's okay...", "obj_b2enemysquabble_slash_Step_0_gml_210_0" );
|
|
251
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 70);
|
|
252
|
}
|
|
253
|
if (timer == 60)
|
|
254
|
{
|
|
255
|
with (obj_mainchara_board)
|
|
256
|
controlled = false;
|
|
257
|
kris.facing = 2;
|
|
258
|
kris.controlled = true;
|
|
259
|
global.interact = 1;
|
|
260
|
obj_board_camera.shift = "up";
|
|
261
|
battlecon = 15;
|
|
262
|
timer = 0;
|
|
263
|
}
|
|
264
|
}
|
|
265
|
if (battlecon == 11)
|
|
266
|
{
|
|
267
|
timer++;
|
|
268
|
if (timer == 1)
|
|
269
|
{
|
|
270
|
su_real.sprite_index = spr_susie_walk_right_dw_unhappy;
|
|
271
|
var sutalk = stringsetloc(Seriously? You guys are no fun."Seriously? You guys are no fun.", "obj_b2enemysquabble_slash_Step_0_gml_283_0" );
|
|
272
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (sutalk, "susie", 2, 70);
|
|
273
|
}
|
|
274
|
if (timer == 70)
|
|
275
|
{
|
|
276
|
with (obj_couchwriter)
|
|
277
|
instance_destroy();
|
|
278
|
timer = 0;
|
|
279
|
battlecon = 12;
|
|
280
|
}
|
|
281
|
}
|
|
282
|
if (battlecon == 12)
|
|
283
|
{
|
|
284
|
timer++;
|
|
285
|
var delay = 1;
|
|
286
|
if (timer == 6)
|
|
287
|
{
|
|
288
|
global.flag[1020 got_power_croissant] = 0;
|
|
289
|
su_real.fun = 1;
|
|
290
|
su_real.sprite_index = spr_susie_walk_up_dw;
|
|
291
|
kr_real.sprite_index = kr_real.usprite;
|
|
292
|
ra_real.sprite_index = ra_real.usprite;
|
|
293
|
kris.cantleave = true;
|
|
294
|
with (su_real)
|
|
295
|
{
|
|
296
|
image_speed = 0.25;
|
|
297
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (294, 288, 16);
|
|
298
|
}
|
|
299
|
}
|
|
300
|
if (timer == 22)
|
|
301
|
su_real.sprite_index = spr_susieu_dark_benddown;
|
|
302
|
if (timer == 28)
|
|
303
|
{
|
|
304
|
susie.canfreemove = 0;
|
|
305
|
scr_board_forcethrowscr_board_forcethrow
function scr_board_forcethrow()
{
var delivered = false;
var _mysusie = 0;
with (obj_mainchara_board)
{
if (name == "susie")
_mysusie = id;
}
if (!i_ex(_mysusie))
{
debug_print("NO SUSIE FOUND");
return 0;
}
if (i_ex(obj_board_grabobject))
{
var realsux = round((_mysusie.x - 128) / 32);
var realsuy = round((_mysusie.y - 64) / 32);
realsux = clamp(realsux, 1, 10);
realsuy = clamp(realsuy, 1, 6);
if (!i_ex(instance_place(board_tilex(realsux - 1), board_tiley(realsuy), obj_board_solid)))
{
delivered = true;
_mysusie.facing = 3;
with (obj_board_grabobject)
{
aimx = board_tilex(realsux - 1);
aimy = board_tiley(realsuy);
snd_play(snd_board_throw);
grabdaddy.xx = aimx;
grabdaddy.yy = aimy;
con = 1;
}
}
else
{
}
if (!delivered)
{
if (!i_ex(instance_place(board_tilex(realsux + 1), board_tiley(realsuy), obj_board_solid)))
{
_mysusie.facing = 1;
delivered = true;
with (obj_board_grabobject)
{
aimx = board_tilex(realsux + 1);
aimy = board_tiley(realsuy);
snd_play(snd_board_throw);
grabdaddy.xx = aimx;
grabdaddy.yy = aimy;
con = 1;
}
}
else
{
}
}
if (!delivered)
{
if (!i_ex(instance_place(board_tilex(realsux), board_tiley(realsuy - 1), obj_board_solid)))
{
_mysusie.facing = 2;
delivered = true;
with (obj_board_grabobject)
{
aimx = board_tilex(realsux);
aimy = board_tiley(realsuy - 1);
snd_play(snd_board_throw);
grabdaddy.xx = aimx;
grabdaddy.yy = aimy;
con = 1;
}
}
else
{
}
}
if (!delivered)
{
if (!i_ex(instance_place(board_tilex(realsux), board_tiley(realsuy - 1), obj_board_solid)))
{
_mysusie.facing = 0;
delivered = true;
}
else
{
}
}
if (delivered == false)
{
_mysusie.facing = 2;
with (obj_board_grabobject)
{
aimx = grabdaddy.x;
aimy = grabdaddy.y;
snd_play(snd_board_throw);
grabdaddy.xx = aimx;
grabdaddy.yy = aimy;
con = 1;
}
}
... ();
|
|
306
|
susie.facing = 0;
|
|
307
|
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);
} (su_real, 8);
|
|
308
|
snd_play(snd_wing);
|
|
309
|
global.flag[1020 got_power_croissant] = 1;
|
|
310
|
}
|
|
311
|
if (timer == 34)
|
|
312
|
{
|
|
313
|
susie.canfreemove = 1;
|
|
314
|
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);
} (su_real, 8);
|
|
315
|
snd_play(snd_equip);
|
|
316
|
}
|
|
317
|
if (timer == 40)
|
|
318
|
{
|
|
319
|
with (su_real)
|
|
320
|
{
|
|
321
|
sprite_index = usprite;
|
|
322
|
image_index = 0;
|
|
323
|
image_speed = 0;
|
|
324
|
snd_play(snd_wing);
|
|
325
|
}
|
|
326
|
obj_ch3_gameshow.wires.sprite_index = spr_controllerwires_ksr_tangle;
|
|
327
|
}
|
|
328
|
if (timer == 46)
|
|
329
|
{
|
|
330
|
with (su_real)
|
|
331
|
{
|
|
332
|
image_speed = 0.25;
|
|
333
|
sprite_index = dsprite;
|
|
334
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (140, 392, 16);
|
|
335
|
}
|
|
336
|
}
|
|
337
|
if (timer == 63)
|
|
338
|
{
|
|
339
|
with (su_real)
|
|
340
|
{
|
|
341
|
image_speed = 0;
|
|
342
|
sprite_index = usprite;
|
|
343
|
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);
} (id, 4);
|
|
344
|
}
|
|
345
|
battlecon = 13;
|
|
346
|
timer = 0;
|
|
347
|
with (obj_mainchara_board)
|
|
348
|
controlled = 0;
|
|
349
|
with (obj_mainchara_board)
|
|
350
|
canfreemove = true;
|
|
351
|
ralsei.follow = false;
|
|
352
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ("ralsei");
|
|
353
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ("susie");
|
|
354
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ("kris");
|
|
355
|
kris.controlled = 1;
|
|
356
|
}
|
|
357
|
}
|
|
358
|
if (battlecon == 13)
|
|
359
|
{
|
|
360
|
kris.cantleave = false;
|
|
361
|
battlecon = 14;
|
|
362
|
}
|
|
363
|
if (con == 72)
|
|
364
|
{
|
|
365
|
if (suwalk == 0 && obj_board_camera.con == 0 && active)
|
|
366
|
{
|
|
367
|
suwalktimer++;
|
|
368
|
susie.sleepy = true;
|
|
369
|
if (suwalktimer == 1)
|
|
370
|
{
|
|
371
|
ralsei.follow = true;
|
|
372
|
debug_print("follow");
|
|
373
|
}
|
|
374
|
if (suwalktimer == 16)
|
|
375
|
scr_pathfind_to_pointscr_pathfind_to_point
function scr_pathfind_to_point(arg0, arg1, arg2)
{
var __destx = arg1 + 16;
var __desty = arg2 + 16;
if (arg1 < 12 && arg2 < 8)
{
__destx = 128 + (32 * arg1) + 16;
__desty = 64 + (32 * arg2) + 16;
}
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
is_moving_timer = 0;
is_moving = true;
path_target_x = __destx;
path_target_y = __desty;
follow = false;
if (argument_count == 4)
{
if (argument3 != -1)
path_end_facing = argument3;
}
if (argument_count == 5)
{
if (argument4 != -1)
allow_diagonals = argument4;
}
}
}
} ("susie", 5, 4, 0);
|
|
376
|
}
|
|
377
|
}
|
|
378
|
if (!active)
|
|
379
|
{
|
|
380
|
suwalk = 0;
|
|
381
|
suwalktimer = 0;
|
|
382
|
}
|
|
383
|
if (battlecon == 1)
|
|
384
|
{
|
|
385
|
if (global.fighting == true)
|
|
386
|
{
|
|
387
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ("kris");
|
|
388
|
ralsei.follow = false;
|
|
389
|
battlecon = 2;
|
|
390
|
}
|
|
391
|
}
|
|
392
|
if (battlecon == 2 && global.fighting == false)
|
|
393
|
{
|
|
394
|
battlecon = 3;
|
|
395
|
with (obj_mainchara_board)
|
|
396
|
controlled = 0;
|
|
397
|
}
|
|
398
|
if (battlecon == 14 && active)
|
|
399
|
{
|
|
400
|
timer++;
|
|
401
|
if (timer == 1)
|
|
402
|
{
|
|
403
|
susie.sleepy = true;
|
|
404
|
scr_pathfind_to_pointscr_pathfind_to_point
function scr_pathfind_to_point(arg0, arg1, arg2)
{
var __destx = arg1 + 16;
var __desty = arg2 + 16;
if (arg1 < 12 && arg2 < 8)
{
__destx = 128 + (32 * arg1) + 16;
__desty = 64 + (32 * arg2) + 16;
}
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
is_moving_timer = 0;
is_moving = true;
path_target_x = __destx;
path_target_y = __desty;
follow = false;
if (argument_count == 4)
{
if (argument3 != -1)
path_end_facing = argument3;
}
if (argument_count == 5)
{
if (argument4 != -1)
allow_diagonals = argument4;
}
}
}
} ("ralsei", 6, 1, 2);
|
|
405
|
var ratalk = stringsetloc(There! Now everything's the right way!"There! Now everything's the right way!", "obj_b2enemysquabble_slash_Step_0_gml_429_0" );
|
|
406
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 70);
|
|
407
|
obj_b2enemysquabble.makePathBlockers = 1;
|
|
408
|
}
|
|
409
|
if (timer == 70)
|
|
410
|
{
|
|
411
|
var ratalk = stringsetloc(... right, Kris...?"... right, Kris...?", "obj_b2enemysquabble_slash_Step_0_gml_434_0" );
|
|
412
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 70);
|
|
413
|
battlecon = 15;
|
|
414
|
}
|
|
415
|
}
|
|
416
|
if (active && battlecon == 15 && obj_board_camera.con == 0)
|
|
417
|
{
|
|
418
|
if (!ralsei.follow)
|
|
419
|
{
|
|
420
|
if (point_distance(ralsei.x, ralsei.y, kris.x, kris.y) < 32)
|
|
421
|
{
|
|
422
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ("ralsei");
|
|
423
|
ralsei.follow = true;
|
|
424
|
with (ralsei)
|
|
425
|
scr_board_caterpillar_interpolatescr_board_caterpillar_interpolate
function scr_board_caterpillar_interpolate()
{
var _____kris = 0;
with (obj_mainchara_board)
{
if (name == "kris")
_____kris = id;
}
if (_____kris != 0)
{
remx[0] = _____kris.x;
remy[0] = _____kris.y;
for (var __rempos = 75; __rempos > 0; __rempos -= 1)
{
remx[__rempos] = lerp(_____kris.x, x, __rempos / 75);
remy[__rempos] = lerp(_____kris.y, y + 6, __rempos / 75);
}
}
} ();
|
|
426
|
}
|
|
427
|
}
|
|
428
|
}
|
|
429
|
if (!active)
|
|
430
|
{
|
|
431
|
if (battlecon >= 14)
|
|
432
|
{
|
|
433
|
timer = 0;
|
|
434
|
battlecon = 15;
|
|
435
|
con = 72;
|
|
436
|
suwalktimer = 0;
|
|
437
|
suwalk = 0;
|
|
438
|
}
|
|
439
|
}
|
|
440
|
if (makePathBlockers == 1)
|
|
441
|
{
|
|
442
|
makePathBlockers = 2;
|
|
443
|
with (obj_b2d_centertrigger)
|
|
444
|
{
|
|
445
|
instance_create(x, y, obj_board_blockpath);
|
|
446
|
instance_destroy();
|
|
447
|
}
|
|
448
|
}
|