|
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 == 1)
|
|
4
|
{
|
|
5
|
if (con == 0 && obj_board_camera.con == 0)
|
|
6
|
{
|
|
7
|
if (global.flag[1190 control_unjumble] == 0)
|
|
8
|
{
|
|
9
|
timer = 0;
|
|
10
|
kris.controlled = 0;
|
|
11
|
susie.controlled = 1;
|
|
12
|
ralsei.follow = 0;
|
|
13
|
con = 1;
|
|
14
|
}
|
|
15
|
else
|
|
16
|
{
|
|
17
|
con = 20;
|
|
18
|
}
|
|
19
|
}
|
|
20
|
if (con == 1)
|
|
21
|
{
|
|
22
|
timer++;
|
|
23
|
if (timer == 1)
|
|
24
|
{
|
|
25
|
global.flag[1024 board_transitioning?] = 0;
|
|
26
|
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")
... ("all");
|
|
27
|
}
|
|
28
|
if (timer == 15)
|
|
29
|
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", 5, 2, 0);
|
|
30
|
if (timer == 30)
|
|
31
|
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.5, 2);
|
|
32
|
if (timer == 80)
|
|
33
|
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, 3.5, 2);
|
|
34
|
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", 5.5, 3.5, 2))
|
|
35
|
{
|
|
36
|
if (timer > 80 && timer < 150)
|
|
37
|
{
|
|
38
|
if ((timer % 20) == 0)
|
|
39
|
{
|
|
40
|
if (kris.facing == 1)
|
|
41
|
kris.facing = 2;
|
|
42
|
else
|
|
43
|
kris.facing = 1;
|
|
44
|
}
|
|
45
|
}
|
|
46
|
}
|
|
47
|
if (timer == 150)
|
|
48
|
{
|
|
49
|
kris.facing = 0;
|
|
50
|
ra_real.sprite_index = ra_real.lsprite;
|
|
51
|
var ratalk = stringsetloc(So... um..."So... um...", "obj_b2ralseichoose_slash_Step_0_gml_56_0" );
|
|
52
|
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);
|
|
53
|
}
|
|
54
|
if (timer == 215)
|
|
55
|
{
|
|
56
|
ra_real.y -= 4;
|
|
57
|
ra_real.sprite_index = spr_ralsei_walk_left_blush;
|
|
58
|
var ratalk = stringsetloc(K-Kris, which way should I..."K-Kris, which way should I...", "obj_b2ralseichoose_slash_Step_0_gml_63_0" );
|
|
59
|
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, 90);
|
|
60
|
}
|
|
61
|
checkskip(215, 295);
|
|
62
|
if (timer == 295)
|
|
63
|
{
|
|
64
|
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);
|
|
65
|
snd_play(snd_wing);
|
|
66
|
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")
... ("ralsei");
|
|
67
|
su_real.sprite_index = spr_susie_walk_right_dw_unhappy;
|
|
68
|
ra_real.sprite_index = spr_ralsei_shocked_left;
|
|
69
|
ra_real.x -= 16;
|
|
70
|
ra_real.y -= 6;
|
|
71
|
var sutalk = stringsetloc(You got the controller, YOU choose."You got the controller, YOU choose.", "obj_b2ralseichoose_slash_Step_0_gml_76_0" );
|
|
72
|
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", 1, 100);
|
|
73
|
}
|
|
74
|
checkskip(295, 395);
|
|
75
|
if (timer == 335)
|
|
76
|
{
|
|
77
|
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")
... ("ralsei");
|
|
78
|
ra_real.y -= 4;
|
|
79
|
ra_real.sprite_index = spr_ralsei_walk_left_blush;
|
|
80
|
}
|
|
81
|
checkskip(295, 395);
|
|
82
|
if (timer == 395)
|
|
83
|
{
|
|
84
|
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")
... ("ralsei");
|
|
85
|
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");
|
|
86
|
var ratalk = stringsetloc(This way... seems nice."This way... seems nice.", "obj_b2ralseichoose_slash_Step_0_gml_91_0" );
|
|
87
|
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, 100);
|
|
88
|
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", 11, 4, 1);
|
|
89
|
con = 2;
|
|
90
|
timer = 0;
|
|
91
|
}
|
|
92
|
}
|
|
93
|
if (con == 2)
|
|
94
|
{
|
|
95
|
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", 11, 4, 2))
|
|
96
|
timer++;
|
|
97
|
if (timer == 4)
|
|
98
|
{
|
|
99
|
timer = 0;
|
|
100
|
con = 3;
|
|
101
|
with (obj_mainchara_board)
|
|
102
|
controlled = 0;
|
|
103
|
kris.controlled = 1;
|
|
104
|
global.interact = 1;
|
|
105
|
obj_board_camera.shift = "right";
|
|
106
|
}
|
|
107
|
}
|
|
108
|
if (con == 10 && obj_board_camera.con == 0)
|
|
109
|
{
|
|
110
|
kris.controlled = 0;
|
|
111
|
susie.controlled = 1;
|
|
112
|
ralsei.follow = 0;
|
|
113
|
timer = 0;
|
|
114
|
con = 10.1;
|
|
115
|
}
|
|
116
|
if (con == 10.1)
|
|
117
|
{
|
|
118
|
ralsei.follow = 0;
|
|
119
|
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, 3, 0);
|
|
120
|
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", 7, 4, 3);
|
|
121
|
con = 11;
|
|
122
|
}
|
|
123
|
if (con == 11)
|
|
124
|
{
|
|
125
|
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", 5.5, 3, 4))
|
|
126
|
timer++;
|
|
127
|
if (timer == 4)
|
|
128
|
con++;
|
|
129
|
}
|
|
130
|
if (con == 12)
|
|
131
|
{
|
|
132
|
timer++;
|
|
133
|
if (timer == 5)
|
|
134
|
{
|
|
135
|
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", "0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L0D0D0D0D0D0D0D0D0R0R0R0R0R0U0U0U0U0U0U0U0U0L0L0L0L0L");
|
|
136
|
var ratalk = stringsetloc(It's fun... just moving around. Haha."It's fun... just moving around. Haha.", "obj_b2ralseichoose_slash_Step_0_gml_148_0" );
|
|
137
|
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, 90);
|
|
138
|
}
|
|
139
|
if (timer == 125)
|
|
140
|
{
|
|
141
|
kris.susierecordcon = 0;
|
|
142
|
su_real.sprite_index = spr_susie_walk_right_dw;
|
|
143
|
var sutalk = stringsetloc(Y'know you can do that whenever, right."Y'know you can do that whenever, right.", "obj_b2ralseichoose_slash_Step_0_gml_154_0" );
|
|
144
|
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);
|
|
145
|
}
|
|
146
|
if (timer == 185)
|
|
147
|
{
|
|
148
|
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", "0L0L0L0L0L0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U");
|
|
149
|
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");
|
|
150
|
var ratalk = stringsetloc(I... I guess so."I... I guess so.", "obj_b2ralseichoose_slash_Step_0_gml_161_0" );
|
|
151
|
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, 90);
|
|
152
|
timer = 0;
|
|
153
|
con = 13;
|
|
154
|
}
|
|
155
|
}
|
|
156
|
if (con == 13)
|
|
157
|
{
|
|
158
|
if (kris.y <= 65)
|
|
159
|
timer++;
|
|
160
|
if (timer == 2)
|
|
161
|
{
|
|
162
|
kris.x = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (kris.x);
|
|
163
|
kris.y = 64;
|
|
164
|
timer = 0;
|
|
165
|
con++;
|
|
166
|
global.interact = 1;
|
|
167
|
with (obj_mainchara_board)
|
|
168
|
controlled = 0;
|
|
169
|
kris.controlled = 1;
|
|
170
|
obj_board_camera.shift = "up";
|
|
171
|
}
|
|
172
|
}
|
|
173
|
if (con == 20)
|
|
174
|
{
|
|
175
|
if (suwalk == 0 && obj_board_camera.con == 0)
|
|
176
|
{
|
|
177
|
suwalktimer++;
|
|
178
|
if (suwalktimer == 1)
|
|
179
|
ralsei.follow = true;
|
|
180
|
if (suwalktimer == 16)
|
|
181
|
{
|
|
182
|
susie.sleepy = true;
|
|
183
|
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", choose(8, 9, 10), choose(3, 4), 0);
|
|
184
|
suwalktimer = 0;
|
|
185
|
suwalk = 1;
|
|
186
|
}
|
|
187
|
}
|
|
188
|
}
|
|
189
|
}
|
|
190
|
else
|
|
191
|
{
|
|
192
|
if (con == 14)
|
|
193
|
{
|
|
194
|
timer = 0;
|
|
195
|
con = 20;
|
|
196
|
}
|
|
197
|
suwalk = 0;
|
|
198
|
suwalktimer = 0;
|
|
199
|
}
|