|
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 (suwalk == 0 && obj_board_camera.con == 0)
|
|
6
|
{
|
|
7
|
suwalktimer++;
|
|
8
|
if (susie.y > 170)
|
|
9
|
{
|
|
10
|
if (suwalktimer == 1)
|
|
11
|
ralsei.follow = true;
|
|
12
|
if (suwalktimer == 5)
|
|
13
|
{
|
|
14
|
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", "0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0W0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0D0D");
|
|
15
|
susie.sleepy = true;
|
|
16
|
}
|
|
17
|
}
|
|
18
|
else
|
|
19
|
{
|
|
20
|
if (suwalktimer == 1)
|
|
21
|
ralsei.follow = true;
|
|
22
|
if (suwalktimer == 5)
|
|
23
|
{
|
|
24
|
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", "0W0W0R0R0R0R0R0R0R0RU0U0U0U0U0U0U0U0U0U0U0U0U0U0U0RU0RU0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0D0D0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W");
|
|
25
|
susie.sleepy = true;
|
|
26
|
}
|
|
27
|
}
|
|
28
|
if (solved)
|
|
29
|
{
|
|
30
|
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;
} ("susie", 240, 192, 1))
|
|
31
|
{
|
|
32
|
suwalktimer = 0;
|
|
33
|
suwalk = 3;
|
|
34
|
}
|
|
35
|
}
|
|
36
|
}
|
|
37
|
var _blocked = false;
|
|
38
|
if (i_ex(obj_board_playercamera))
|
|
39
|
_blocked = true;
|
|
40
|
if (suwalk == 3)
|
|
41
|
{
|
|
42
|
if (!_blocked)
|
|
43
|
suwalktimer++;
|
|
44
|
if (suwalktimer == 10 && !_blocked)
|
|
45
|
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", "0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0RD0RD0RD0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0LD0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0LR0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0W0W0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0W0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0LR0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0LR0L0L0L0L0L0L0L0L0L0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0LU0LU0LU0L0L0L0L0L0L0L0L0L0L0W0W0W0W0W0W0R0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W");
|
|
46
|
if (_blocked && susie.susierecordcon == 2)
|
|
47
|
susie.susierecordcon = 999;
|
|
48
|
if (!_blocked && susie.susierecordcon == 999)
|
|
49
|
susie.susierecordcon = 2;
|
|
50
|
if (suwalktimer == 50 && drinkingit == 0 && !_blocked)
|
|
51
|
{
|
|
52
|
drinkingit = 0.5;
|
|
53
|
var sutalk = stringsetloc(Mmm, I'm drinking it!"Mmm, I'm drinking it!", "obj_b2lancersalsa_slash_Step_0_gml_74_0" );
|
|
54
|
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);
|
|
55
|
}
|
|
56
|
if (suwalktimer == 110 && drinkingit == 0.5 && !_blocked)
|
|
57
|
{
|
|
58
|
drinkingit = 1;
|
|
59
|
var ratalk = stringsetloc(You're not drinking it!"You're not drinking it!", "obj_b2lancersalsa_slash_Step_0_gml_80_0" );
|
|
60
|
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, 80);
|
|
61
|
}
|
|
62
|
if (suwalktimer >= 201)
|
|
63
|
{
|
|
64
|
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;
} ("susie", 272, 192, 4))
|
|
65
|
{
|
|
66
|
suwalk = 4;
|
|
67
|
suwalktimer = 0;
|
|
68
|
}
|
|
69
|
}
|
|
70
|
}
|
|
71
|
if (con == 0 && obj_board_camera.con == 0)
|
|
72
|
{
|
|
73
|
if (!solved)
|
|
74
|
{
|
|
75
|
if (obj_board_inventory.lancer == true)
|
|
76
|
{
|
|
77
|
with (obj_board_trigger)
|
|
78
|
{
|
|
79
|
if (extflag == "b2lancersalsa")
|
|
80
|
{
|
|
81
|
if (place_meeting(x, y, obj_mainchara_board))
|
|
82
|
{
|
|
83
|
other.con = 1;
|
|
84
|
other.timer = 0;
|
|
85
|
global.interact = 1;
|
|
86
|
}
|
|
87
|
}
|
|
88
|
}
|
|
89
|
}
|
|
90
|
else if (commentary == 0)
|
|
91
|
{
|
|
92
|
con = 20;
|
|
93
|
commentary = 1;
|
|
94
|
}
|
|
95
|
else if (commentary == 1)
|
|
96
|
{
|
|
97
|
con = 30;
|
|
98
|
}
|
|
99
|
}
|
|
100
|
}
|
|
101
|
if (grayspring == 0 && con >= 20)
|
|
102
|
{
|
|
103
|
var doline = false;
|
|
104
|
if (i_ex(obj_board_grayregion))
|
|
105
|
{
|
|
106
|
with (obj_board_grayregion)
|
|
107
|
{
|
|
108
|
var inst = instance_place(x, y, obj_board_trigger);
|
|
109
|
if (i_ex(inst))
|
|
110
|
{
|
|
111
|
if (inst.extflag == "b2inthesauce")
|
|
112
|
doline = true;
|
|
113
|
}
|
|
114
|
}
|
|
115
|
}
|
|
116
|
if (doline)
|
|
117
|
{
|
|
118
|
timer = 0;
|
|
119
|
con = 40;
|
|
120
|
grayspring = 1;
|
|
121
|
var tetalk = stringsetloc(Sorry, the "grey" spring is blocked up."Sorry, the \"grey\" spring is blocked up.", "obj_b2lancersalsa_slash_Step_0_gml_86_0" );
|
|
122
|
tenna.bounce = true;
|
|
123
|
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, 70);
|
|
124
|
}
|
|
125
|
}
|
|
126
|
if (con == 20 && tennahere())
|
|
127
|
{
|
|
128
|
timer++;
|
|
129
|
if (timer == 45)
|
|
130
|
{
|
|
131
|
tenna.bounce = true;
|
|
132
|
var tetalk = stringsetloc(Oh no! the green spring is blocked up!"Oh no! the green spring is blocked up!", "obj_b2lancersalsa_slash_Step_0_gml_98_0" );
|
|
133
|
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, 80);
|
|
134
|
}
|
|
135
|
if (timer == 125)
|
|
136
|
{
|
|
137
|
su_real.sprite_index = su_real.rsprite;
|
|
138
|
var sutalk = stringsetloc(Guess we'll have to squeeze Ralsei into a green smoothie."Guess we'll have to squeeze Ralsei into a green smoothie.", "obj_b2lancersalsa_slash_Step_0_gml_104_0" );
|
|
139
|
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);
|
|
140
|
}
|
|
141
|
if (timer == 190)
|
|
142
|
{
|
|
143
|
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);
} (ra_real);
|
|
144
|
snd_play(snd_wing);
|
|
145
|
ra_real.sprite_index = spr_ralsei_surprised_left_walk;
|
|
146
|
var ratalk = stringsetloc(H-huh?! Make smoochies, not smoothies..."H-huh?! Make smoochies, not smoothies...", "obj_b2lancersalsa_slash_Step_0_gml_110_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, 90);
|
|
148
|
}
|
|
149
|
if (timer > 175 && !i_ex(obj_couchwriter))
|
|
150
|
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");
|
|
151
|
}
|
|
152
|
if (con == 30)
|
|
153
|
{
|
|
154
|
timer++;
|
|
155
|
if (timer == 60)
|
|
156
|
{
|
|
157
|
var ratalk = stringsetloc(We'll need something to get out that green liquid..."We'll need something to get out that green liquid...", "obj_b2lancersalsa_slash_Step_0_gml_123_0" );
|
|
158
|
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);
|
|
159
|
}
|
|
160
|
}
|
|
161
|
if (con == 1)
|
|
162
|
{
|
|
163
|
timer++;
|
|
164
|
if (timer == 1)
|
|
165
|
{
|
|
166
|
lancer = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (88, 170, spr_board_lancer_down, 0, 5000);
|
|
167
|
lancer.autodepth = false;
|
|
168
|
obj_board_inventory.lancer = false;
|
|
169
|
}
|
|
170
|
if (timer == 2)
|
|
171
|
{
|
|
172
|
with (lancer)
|
|
173
|
scr_jump_to_pointscr_jump_to_point
function scr_jump_to_point(arg0, arg1, arg2, arg3, arg4 = 0)
{
var ___jump = scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
with (___jump)
{
trackalpha = arg4;
trackblend = arg4;
trackindex = arg4;
tracksprite = arg4;
}
return ___jump;
} (board_tilex(-0.5), board_tiley(2), 12, 12);
|
|
174
|
snd_play(snd_jump);
|
|
175
|
}
|
|
176
|
if (timer == 15)
|
|
177
|
{
|
|
178
|
snd_play(snd_lancerhonk);
|
|
179
|
lancer.sprite_index = spr_board_lancer_spin;
|
|
180
|
lancer.image_index = 0;
|
|
181
|
}
|
|
182
|
if (timer == 17)
|
|
183
|
lancer.image_index = 1;
|
|
184
|
if (timer == 19)
|
|
185
|
lancer.image_index = 2;
|
|
186
|
if (timer == 21)
|
|
187
|
lancer.image_index = 3;
|
|
188
|
if (timer == 23)
|
|
189
|
lancer.image_index = 0;
|
|
190
|
if (timer == 28)
|
|
191
|
{
|
|
192
|
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;
... ("lancer");
|
|
193
|
msgsetloc(0, IS THAT A GREEN BATH!? LEAVE IT TO ME TO GET IT FREE!Wait for input"IS THAT A GREEN BATH!? LEAVE IT TO ME TO GET IT FREE!/", "obj_b2lancersalsa_slash_Step_0_gml_156_0" );
|
|
194
|
msgnextloc(DIG^Delay 111, DIG^Delay 111, DIG!Wait for inputClose Message"DIG^1^1, DIG^1^1, DIG!/%", "obj_b2lancersalsa_slash_Step_0_gml_157_0" );
|
|
195
|
var d = bw_make();
|
|
196
|
d.side = 1;
|
|
197
|
scr_boardlancer_voicescr_boardlancer_voice
function scr_boardlancer_voice()
{
if (argument_count == 0)
{
for (var i = 0; i < 3; i++)
snd_play_delay(snd_txtlan, 8 + (3 * i), 1, 1 + (i / 14));
}
else if (argument0 == 1)
{
for (var i = 0; i < 3; i++)
snd_play_delay(snd_txtlan, 1 + (3 * i), 1, 1 - (i / 14));
}
} ();
|
|
198
|
con = 2;
|
|
199
|
timer = 2;
|
|
200
|
}
|
|
201
|
}
|
|
202
|
if (con == 2 && !bw_ex())
|
|
203
|
{
|
|
204
|
con = 3;
|
|
205
|
timer = 0;
|
|
206
|
snd_free_all();
|
|
207
|
mus_play_ext("board_lancer_dig.ogg", true);
|
|
208
|
}
|
|
209
|
var lancerspeed = 4;
|
|
210
|
if (con == 3)
|
|
211
|
{
|
|
212
|
timer++;
|
|
213
|
if (timer == 4)
|
|
214
|
{
|
|
215
|
playdigsound = true;
|
|
216
|
lancer.sprite_index = spr_board_lancer_dug;
|
|
217
|
lancer.image_index = 1;
|
|
218
|
}
|
|
219
|
if (timer == 8)
|
|
220
|
{
|
|
221
|
lancer.hspeed = lancerspeed;
|
|
222
|
con++;
|
|
223
|
}
|
|
224
|
}
|
|
225
|
if (con == 4)
|
|
226
|
{
|
|
227
|
if (lancer.x >= board_tilex(0.5))
|
|
228
|
lancer.depth = depth - 1;
|
|
229
|
if (lancer.x >= board_tilex(1) && lancer.hspeed > 0)
|
|
230
|
{
|
|
231
|
with (lancer)
|
|
232
|
{
|
|
233
|
x = board_tilex(1);
|
|
234
|
hspeed = 0;
|
|
235
|
vspeed = -lancerspeed;
|
|
236
|
image_index = 2;
|
|
237
|
}
|
|
238
|
}
|
|
239
|
if (lancer.y <= board_tiley(0) && lancer.vspeed < 0)
|
|
240
|
{
|
|
241
|
with (lancer)
|
|
242
|
{
|
|
243
|
y = board_tiley(0);
|
|
244
|
vspeed = 0;
|
|
245
|
hspeed = lancerspeed;
|
|
246
|
image_index = 1;
|
|
247
|
}
|
|
248
|
con = 5;
|
|
249
|
timer = 0;
|
|
250
|
}
|
|
251
|
}
|
|
252
|
if (con == 5)
|
|
253
|
{
|
|
254
|
if (lancer.x >= board_tilex(10) && lancer.hspeed > 0)
|
|
255
|
{
|
|
256
|
with (lancer)
|
|
257
|
{
|
|
258
|
x = board_tilex(10);
|
|
259
|
hspeed = 0;
|
|
260
|
vspeed = lancerspeed;
|
|
261
|
image_index = 0;
|
|
262
|
}
|
|
263
|
}
|
|
264
|
if (lancer.y >= board_tiley(7) && lancer.vspeed > 0)
|
|
265
|
{
|
|
266
|
with (lancer)
|
|
267
|
{
|
|
268
|
y = board_tiley(7);
|
|
269
|
vspeed = 0;
|
|
270
|
hspeed = -lancerspeed;
|
|
271
|
image_index = 3;
|
|
272
|
}
|
|
273
|
}
|
|
274
|
if (lancer.x <= board_tilex(6) && lancer.hspeed < 0)
|
|
275
|
{
|
|
276
|
with (lancer)
|
|
277
|
{
|
|
278
|
x = board_tilex(6);
|
|
279
|
hspeed = 0;
|
|
280
|
vspeed = -lancerspeed;
|
|
281
|
image_index = 2;
|
|
282
|
}
|
|
283
|
}
|
|
284
|
if (lancer.x == board_tilex(6) && lancer.y == board_tiley(6))
|
|
285
|
{
|
|
286
|
snd_free_all();
|
|
287
|
lancer.hspeed = 0;
|
|
288
|
lancer.vspeed = 0;
|
|
289
|
con++;
|
|
290
|
timer = 0;
|
|
291
|
lancer.sprite_index = spr_board_lancer_spin;
|
|
292
|
lancer.image_index = 0;
|
|
293
|
playdigsound = false;
|
|
294
|
}
|
|
295
|
}
|
|
296
|
if (con == 6)
|
|
297
|
{
|
|
298
|
var timetofloat = 30;
|
|
299
|
lancer.sprite_index = spr_board_lancer_floatate;
|
|
300
|
lancer.image_speed = 0;
|
|
301
|
lancer.image_index = 0;
|
|
302
|
with (lancer)
|
|
303
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_speed", 0, 0.35, timetofloat, 2, "out");
|
|
304
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("lancy", 284, 164, timetofloat, 2, "out");
|
|
305
|
scr_delay_var("waterfloat", true, timetofloat + 1);
|
|
306
|
con = 7;
|
|
307
|
}
|
|
308
|
if (con == 7)
|
|
309
|
{
|
|
310
|
if (lancy <= board_tiley(5.5))
|
|
311
|
{
|
|
312
|
safe_delete(myblock);
|
|
313
|
black = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (board_tilex(6), board_tiley(5), spr_whitepx);
|
|
314
|
black.image_blend = c_black;
|
|
315
|
black.depth = 999999;
|
|
316
|
black.image_xscale = 32;
|
|
317
|
black.image_yscale = 32;
|
|
318
|
var puff = instance_create(board_tilex(6), board_tiley(5), obj_board_smokepuff);
|
|
319
|
puff.image_blend = #C46053;
|
|
320
|
puff.depth = 999900;
|
|
321
|
snd_play(snd_board_splash);
|
|
322
|
con = 8;
|
|
323
|
}
|
|
324
|
}
|
|
325
|
if (con == 8 && waterfloat == true)
|
|
326
|
{
|
|
327
|
ralsei.follow = true;
|
|
328
|
scr_board_caterpillar_interpolate_ralseiscr_board_caterpillar_interpolate_ralsei
function scr_board_caterpillar_interpolate_ralsei()
{
var _ralsei = obj_board_controller.ralsei_object;
if (_ralsei != -1)
{
with (_ralsei)
{
for (i = 0; i < 75; i += 1)
{
remx[i] = x;
remy[i] = y;
facing[i] = 0;
}
}
var _a = 0;
var _dir = point_direction(_ralsei.x, _ralsei.y, x, y);
repeat (_ralsei.ralsei_target)
{
_ralsei.remx[_a] = lerp(obj_board_controller.kris_object.x, _ralsei.x, _a / _ralsei.ralsei_target);
_ralsei.remy[_a] = lerp(obj_board_controller.kris_object.y, _ralsei.y, _a / _ralsei.ralsei_target);
if (_dir >= 45 && _dir < 135)
_ralsei.facingdir[_a] = 2;
else if (_dir >= 135 && _dir < 225)
_ralsei.facingdir[_a] = 3;
else if (_dir >= 225 && _dir < 315)
_ralsei.facingdir[_a] = 0;
else if (_dir >= 315 || _dir < 45)
_ralsei.facingdir[_a] = 1;
_a++;
}
}
} ();
|
|
329
|
scr_boardlancer_voicescr_boardlancer_voice
function scr_boardlancer_voice()
{
if (argument_count == 0)
{
for (var i = 0; i < 3; i++)
snd_play_delay(snd_txtlan, 8 + (3 * i), 1, 1 + (i / 14));
}
else if (argument0 == 1)
{
for (var i = 0; i < 3; i++)
snd_play_delay(snd_txtlan, 1 + (3 * i), 1, 1 - (i / 14));
}
} ();
|
|
330
|
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;
... ("lancer");
|
|
331
|
msgsetloc(0, LOOKS LIKE I STRUCK GREEN GOLD!Delay 11 TAKE A PICTURE FOR THE AGES!Wait for inputClose Message"LOOKS LIKE I STRUCK GREEN GOLD^1! TAKE A PICTURE FOR THE AGES!/%", "obj_b2lancersalsa_slash_Step_0_gml_309_0" );
|
|
332
|
bw_make();
|
|
333
|
mus_initloop(obj_ch3_gameshow.boardmusic);
|
|
334
|
instance_create_depth(x, y, depth - 10, obj_b2perfumespring_triggerarea);
|
|
335
|
con++;
|
|
336
|
}
|
|
337
|
if (con == 9 && !bw_ex())
|
|
338
|
{
|
|
339
|
global.interact = 0;
|
|
340
|
con = 0;
|
|
341
|
solved = 1;
|
|
342
|
}
|
|
343
|
if (waterfloat == true)
|
|
344
|
{
|
|
345
|
water++;
|
|
346
|
lancy = 164 + (sin(water / 8) * 8);
|
|
347
|
if ((water % 6) == 0)
|
|
348
|
{
|
|
349
|
var bubble = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (x + 160 + 6 + scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (random_range(0, 16)), (y + 160 + 28) - scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (random_range(0, 32)), spr_whitepx, 0, depth - 10, choose(2, 4));
|
|
350
|
bubble.image_blend = #C8E76C;
|
|
351
|
var endtime = irandom_range(10, 20);
|
|
352
|
with (bubble)
|
|
353
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, other.lancy + irandom(32), endtime);
|
|
354
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (bubble, endtime);
|
|
355
|
}
|
|
356
|
}
|
|
357
|
if (i_ex(lancer))
|
|
358
|
{
|
|
359
|
if (lancy < (board_tiley(6) + 16))
|
|
360
|
lancer.y = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (lancy - 16);
|
|
361
|
}
|
|
362
|
}
|
|
363
|
else
|
|
364
|
{
|
|
365
|
if (drinkingit == 0.5)
|
|
366
|
drinkingit = 99;
|
|
367
|
suwalk = 0;
|
|
368
|
suwalktimer = 0;
|
|
369
|
con = 0;
|
|
370
|
timer = 0;
|
|
371
|
}
|
|
372
|
if (playdigsound)
|
|
373
|
{
|
|
374
|
digindex++;
|
|
375
|
if ((digindex % 4) == 0)
|
|
376
|
{
|
|
377
|
snd_stop(snd_board_text_main);
|
|
378
|
snd_play_x(snd_board_text_main, 0.6, 0.8 + random_range(0, 0.1));
|
|
379
|
}
|
|
380
|
}
|