|
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 (obj_board_camera.con == 0)
|
|
6
|
{
|
|
7
|
if (suwalk == 0)
|
|
8
|
{
|
|
9
|
ralsei.follow = true;
|
|
10
|
if (con == 0)
|
|
11
|
{
|
|
12
|
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", irandom_range(3, 8), 5, 0);
|
|
13
|
suwalk = 1;
|
|
14
|
}
|
|
15
|
else
|
|
16
|
{
|
|
17
|
suwalktimer++;
|
|
18
|
if (suwalktimer == 1)
|
|
19
|
ralsei.follow = true;
|
|
20
|
if (suwalktimer == 8)
|
|
21
|
{
|
|
22
|
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", irandom_range(4, 6), 1, 0);
|
|
23
|
suwalk = 1;
|
|
24
|
susie.sleepy = true;
|
|
25
|
}
|
|
26
|
}
|
|
27
|
}
|
|
28
|
}
|
|
29
|
if (con == 0)
|
|
30
|
{
|
|
31
|
if (tennaintro == 0)
|
|
32
|
{
|
|
33
|
timer++;
|
|
34
|
if (timer == 1)
|
|
35
|
{
|
|
36
|
tenna.bounce = 1;
|
|
37
|
var tetalk = stringsetloc(As a reward, a BONUS ZONE!!!"As a reward, a BONUS ZONE!!!", "obj_b1bonuszone_slash_Step_0_gml_41_0" );
|
|
38
|
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;
} (tetalk, "tenna", 2, 100);
|
|
39
|
}
|
|
40
|
if (timer == 81)
|
|
41
|
{
|
|
42
|
var sutalk = stringsetloc(Hell yeah!"Hell yeah!", "obj_b1bonuszone_slash_Step_0_gml_46_0" );
|
|
43
|
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);
|
|
44
|
tennaintro = 1;
|
|
45
|
}
|
|
46
|
}
|
|
47
|
if (i_ex(obj_board_pointsGetDisplay))
|
|
48
|
{
|
|
49
|
con = 1;
|
|
50
|
timer = 0;
|
|
51
|
}
|
|
52
|
}
|
|
53
|
}
|
|
54
|
else
|
|
55
|
{
|
|
56
|
suwalk = 0;
|
|
57
|
}
|
|
58
|
if (con == 1)
|
|
59
|
{
|
|
60
|
if (global.interact == 0)
|
|
61
|
{
|
|
62
|
timer++;
|
|
63
|
if (timer == 1)
|
|
64
|
{
|
|
65
|
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");
|
|
66
|
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;
}
}
} ("susie", "0W0W0W");
|
|
67
|
}
|
|
68
|
if (timer == 5)
|
|
69
|
{
|
|
70
|
global.flag[1024 board_transitioning?] = 1;
|
|
71
|
su_real.sprite_index = spr_susie_exasperated;
|
|
72
|
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);
|
|
73
|
snd_play(snd_wing);
|
|
74
|
var sutalk = stringsetloc(What? Only 1 point!?"What? Only 1 point!?", "obj_b1bonuszone_slash_Step_0_gml_82_0" );
|
|
75
|
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);
|
|
76
|
}
|
|
77
|
if (timer == 95)
|
|
78
|
{
|
|
79
|
global.flag[1024 board_transitioning?] = 0;
|
|
80
|
su_real.sprite_index = spr_susie_walk_right_dw_unhappy;
|
|
81
|
scr_resetgameshowcharacter_delayscr_resetgameshowcharacter_delay
function scr_resetgameshowcharacter_delay()
{
var _x_smooth = 0;
if (argument_count == 3)
_x_smooth = 1;
return scr_script_delayed(scr_resetgameshowcharacter, argument1, argument0, _x_smooth);
} ("susie", 90);
|
|
82
|
tenna.bounce = 1;
|
|
83
|
var tetalk = stringsetloc(Hey hey!! We've got a budget!"Hey hey!! We've got a budget!", "obj_b1bonuszone_slash_Step_0_gml_91_0" );
|
|
84
|
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;
} (tetalk, "tenna", 2, 90);
|
|
85
|
}
|
|
86
|
if (timer == 185)
|
|
87
|
{
|
|
88
|
susie.sleepy = true;
|
|
89
|
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", irandom_range(3, 8), 6, 0);
|
|
90
|
}
|
|
91
|
}
|
|
92
|
else
|
|
93
|
{
|
|
94
|
global.flag[1024 board_transitioning?] = 0;
|
|
95
|
con = 99;
|
|
96
|
timer = 0;
|
|
97
|
}
|
|
98
|
}
|