|
1
|
if (pointcount < global.flag[1044 points])
|
|
2
|
pointcount = global.flag[1044 points];
|
|
3
|
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;
}
}
} ();
|
|
4
|
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;
}
} ();
|
|
5
|
if (active == 1)
|
|
6
|
{
|
|
7
|
if (sndpause == 0 && obj_board_camera.con == 0)
|
|
8
|
{
|
|
9
|
sndpause = 1;
|
|
10
|
snd_pause(global.currentsong[1]);
|
|
11
|
}
|
|
12
|
if (sndpause == 1 && obj_board_camera.con != 0)
|
|
13
|
{
|
|
14
|
sndpause = 0;
|
|
15
|
snd_resume(global.currentsong[1]);
|
|
16
|
}
|
|
17
|
if (global.interact == 0)
|
|
18
|
susietimer++;
|
|
19
|
if (writerinit == 0 && obj_board_camera.con == 0)
|
|
20
|
{
|
|
21
|
shopstring = stringsetloc(NEED HEALING IN#BATTLE? TRY OUR#IN-GAME PURCHASES!"NEED HEALING IN#BATTLE? TRY OUR#IN-GAME PURCHASES!", "obj_b1store_slash_Step_0_gml_29_0" );
|
|
22
|
if (susieshoplift != 0 && i_ex(key))
|
|
23
|
shopstring = stringsetloc(HEY THIEF!GET A KEY!#JUST 250 POINTS!"HEY THIEF!GET A KEY!#JUST 250 POINTS!", "obj_b1store_slash_Step_0_gml_34_0" );
|
|
24
|
shopwriter = instance_create(x, y, obj_board_shopwriter);
|
|
25
|
shopwriter.shopstring = shopstring;
|
|
26
|
writerinit = 1;
|
|
27
|
}
|
|
28
|
if (made == 0 && obj_board_camera.con == 0)
|
|
29
|
{
|
|
30
|
instance_create_board(3, 4.5, obj_board_smokepuff);
|
|
31
|
instance_create_board(8, 4.5, obj_board_smokepuff);
|
|
32
|
key = instance_create_board(3, 4.5, obj_board_store_key);
|
|
33
|
key.cost = 250;
|
|
34
|
heal = instance_create(x + board_tilex(3), y + board_tiley(1.5), obj_board_tvdinner);
|
|
35
|
heal.active = true;
|
|
36
|
tennamarker = instance_create_board(5.5, 1.25, obj_board_marker);
|
|
37
|
tennamarker.sprite_index = spr_board_npc_tenna;
|
|
38
|
tennamarker.image_speed = 0.05;
|
|
39
|
with (tennamarker)
|
|
40
|
scr_depth_boardscr_depth_board
function scr_depth_board()
{
depth = 1000000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10));
}
function scr_board_depth()
{
scr_depth_board();
} ();
|
|
41
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} (tennamarker);
|
|
42
|
tennasolid = instance_create_board(5.5, 1.25, obj_board_solid);
|
|
43
|
tennasolid.sprite_index = spr_board_npc_tenna;
|
|
44
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} (tennasolid);
|
|
45
|
instance_create(304, 88, obj_board_smokepuff);
|
|
46
|
made = 1;
|
|
47
|
}
|
|
48
|
if (susieshoplift == 0)
|
|
49
|
{
|
|
50
|
if (i_ex(heal))
|
|
51
|
{
|
|
52
|
if (heal.con > 1)
|
|
53
|
{
|
|
54
|
safe_delete(shopwriter);
|
|
55
|
shopwriter = -2;
|
|
56
|
}
|
|
57
|
}
|
|
58
|
if (shopwriter == -2)
|
|
59
|
{
|
|
60
|
if (!i_ex(heal))
|
|
61
|
{
|
|
62
|
shopwriter = instance_create(x, y, obj_board_shopwriter);
|
|
63
|
shopwriter.shopstring = stringsetloc(BUY MORE LATER!!"BUY MORE LATER!!", "obj_b1store_slash_Step_0_gml_85_0" );
|
|
64
|
}
|
|
65
|
}
|
|
66
|
}
|
|
67
|
if (con == 0 && obj_board_camera.con == 0)
|
|
68
|
{
|
|
69
|
var picked = 0;
|
|
70
|
if (susieshoplift == 0 && global.flag[1020 got_power_croissant] == 1 && i_ex(key))
|
|
71
|
{
|
|
72
|
con = 1;
|
|
73
|
timer = 0;
|
|
74
|
picked = 1;
|
|
75
|
}
|
|
76
|
if (susieshoplift == 1)
|
|
77
|
{
|
|
78
|
con = 5;
|
|
79
|
timer = 0;
|
|
80
|
picked = true;
|
|
81
|
}
|
|
82
|
if (!picked && visit == 0)
|
|
83
|
{
|
|
84
|
con = 10;
|
|
85
|
timer = 0;
|
|
86
|
picked = true;
|
|
87
|
}
|
|
88
|
if (!picked && visit == 1)
|
|
89
|
{
|
|
90
|
con = 15;
|
|
91
|
timer = 0;
|
|
92
|
picked = true;
|
|
93
|
}
|
|
94
|
if (!picked && visit > 1)
|
|
95
|
{
|
|
96
|
con = 20;
|
|
97
|
timer = 0;
|
|
98
|
picked = true;
|
|
99
|
}
|
|
100
|
}
|
|
101
|
var _blocked = false;
|
|
102
|
if (i_ex(key) && key.myinteract >= 3)
|
|
103
|
_blocked = true;
|
|
104
|
if (global.interact != 0)
|
|
105
|
_blocked = true;
|
|
106
|
with (obj_board_tvdinner)
|
|
107
|
{
|
|
108
|
if (myinteract >= 3)
|
|
109
|
_blocked = true;
|
|
110
|
}
|
|
111
|
if (con == 1 && !_blocked)
|
|
112
|
{
|
|
113
|
timer++;
|
|
114
|
if (timer == 15)
|
|
115
|
{
|
|
116
|
susie.allow_diagonals = false;
|
|
117
|
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", 256, 208, 3);
|
|
118
|
}
|
|
119
|
if (timer > 8 && 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", 256, 208, 4))
|
|
120
|
{
|
|
121
|
timer = 0;
|
|
122
|
con = 1.1;
|
|
123
|
}
|
|
124
|
}
|
|
125
|
if (con == 1.1 && !_blocked && obj_board_camera.shift == "none")
|
|
126
|
{
|
|
127
|
timer++;
|
|
128
|
if (timer == 25)
|
|
129
|
debug_print("five frames!!");
|
|
130
|
if (timer == 30)
|
|
131
|
{
|
|
132
|
kris.cantleave = true;
|
|
133
|
with (key)
|
|
134
|
tempblock = true;
|
|
135
|
with (obj_board_tvdinner)
|
|
136
|
tempblock = true;
|
|
137
|
safe_delete(shopwriter);
|
|
138
|
with (susie)
|
|
139
|
{
|
|
140
|
freeroam = true;
|
|
141
|
grabbed = other.key;
|
|
142
|
grab = 1;
|
|
143
|
grabmarker = instance_create(x, y, obj_board_grabobject);
|
|
144
|
with (grabmarker)
|
|
145
|
{
|
|
146
|
drawreticle = false;
|
|
147
|
snd_play(snd_board_lift);
|
|
148
|
grabdaddy = other.id;
|
|
149
|
grabbedid = other.grabbed;
|
|
150
|
sprite_index = grabbedid.sprite_index;
|
|
151
|
image_xscale = grabbedid.image_xscale;
|
|
152
|
image_yscale = grabbedid.image_yscale;
|
|
153
|
image_speed = grabbedid.image_speed;
|
|
154
|
sourcex = grabbedid.x;
|
|
155
|
sourcey = grabbedid.y;
|
|
156
|
}
|
|
157
|
with (grabbed)
|
|
158
|
setxy(board_tilex(-1), board_tiley(-1));
|
|
159
|
}
|
|
160
|
}
|
|
161
|
if (timer == 40)
|
|
162
|
{
|
|
163
|
with (su_real)
|
|
164
|
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);
} ();
|
|
165
|
snd_play(snd_wing);
|
|
166
|
susieshoplift = 1;
|
|
167
|
var sustring = stringsetloc(Oops. You didn't see that."Oops. You didn't see that.", "obj_b1store_slash_Step_0_gml_202_0" );
|
|
168
|
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;
} (sustring, "susie", 2, 80);
|
|
169
|
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", "0L0L0L0R0R0R0L0L0LR0R0R0L0L0L0R0L0L0L0L0L0R0R0LR0L0L0L0R0R0R0R0R0R0R0R0R0L0L0L0L0L0L0L0LU0U0U0U0U02010D0D0D0D0RD0RD0RD0RD0R0R0R0R0R0R0R0R0R0RD0RD0RD0RD0RD0RD0R0R0R0R0R0R0R0R0R0R0R0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D");
|
|
170
|
}
|
|
171
|
if (timer == 50)
|
|
172
|
{
|
|
173
|
shopwriter = instance_create(x, y, obj_board_shopwriter);
|
|
174
|
shopwriter.shopstring = stringsetloc(THIEF!!"THIEF!!", "obj_b1store_slash_Step_0_gml_217_0" );
|
|
175
|
}
|
|
176
|
if (timer > 60)
|
|
177
|
{
|
|
178
|
var krisblocked = false;
|
|
179
|
with (key)
|
|
180
|
{
|
|
181
|
if (place_meeting(x, y, other.kris))
|
|
182
|
{
|
|
183
|
with (other)
|
|
184
|
{
|
|
185
|
krisblocked = true;
|
|
186
|
kris.y += 4;
|
|
187
|
kris.y = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (kris.y);
|
|
188
|
}
|
|
189
|
}
|
|
190
|
}
|
|
191
|
if (key.x == 224 && key.y == 96 && susie.y >= 320 && krisblocked == false)
|
|
192
|
{
|
|
193
|
timer = 0;
|
|
194
|
con = 3;
|
|
195
|
key.tempblock = false;
|
|
196
|
with (obj_board_tvdinner)
|
|
197
|
tempblock = false;
|
|
198
|
kris.cantleave = false;
|
|
199
|
}
|
|
200
|
}
|
|
201
|
}
|
|
202
|
if (con == 1 || con == 1.1 || con == 2)
|
|
203
|
{
|
|
204
|
if (!i_ex(key) || (i_ex(key) && key.myinteract >= 3))
|
|
205
|
{
|
|
206
|
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", 3, 6, 0);
|
|
207
|
timer = 0;
|
|
208
|
con = 3;
|
|
209
|
key.tempblock = false;
|
|
210
|
with (obj_board_tvdinner)
|
|
211
|
tempblock = false;
|
|
212
|
kris.cantleave = false;
|
|
213
|
}
|
|
214
|
}
|
|
215
|
if (con == 5 && !_blocked)
|
|
216
|
{
|
|
217
|
timer++;
|
|
218
|
if (timer == 1)
|
|
219
|
{
|
|
220
|
susie.facing = 2;
|
|
221
|
if (!i_ex(key))
|
|
222
|
con = 20;
|
|
223
|
}
|
|
224
|
if (timer == 80)
|
|
225
|
{
|
|
226
|
susie.freeroam = true;
|
|
227
|
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", "0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D");
|
|
228
|
}
|
|
229
|
}
|
|
230
|
if (con == 10 && !_blocked)
|
|
231
|
{
|
|
232
|
timer++;
|
|
233
|
if (timer == 8)
|
|
234
|
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", "0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0RU0RU0RU0R0R0R0R0R0R0R0R0RU0RU0RU0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0U0LU0L0L0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0D0D0D0D0D0D0D0D0D0D0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0LU0U0U0U0U0U0U0U0W0W0W0R0R0R0W0W0W0W0W0W0W0W0W0W0W0W0L0L0L0L0D0D0D0D0D0D0D0D0RD0RD0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0RU0U0U0U0U0U0U0U0U0LU0L0L0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0LD0LD00L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D");
|
|
235
|
if (timer == 130)
|
|
236
|
{
|
|
237
|
visit = 1;
|
|
238
|
var sutalk = stringsetloc(How do I kill this guy?"How do I kill this guy?", "obj_b1store_slash_Step_0_gml_125_0" );
|
|
239
|
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);
|
|
240
|
}
|
|
241
|
var time2 = 203;
|
|
242
|
if (timer == time2)
|
|
243
|
{
|
|
244
|
var tetalk = stringsetloc(Get in line, kid!"Get in line, kid!", "obj_b1store_slash_Step_0_gml_135_0" );
|
|
245
|
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);
|
|
246
|
tenna.bounce = 1;
|
|
247
|
}
|
|
248
|
if (timer == (time2 + 20))
|
|
249
|
{
|
|
250
|
timer = 0;
|
|
251
|
snd_play(snd_laughtrack_short_temp);
|
|
252
|
con++;
|
|
253
|
}
|
|
254
|
}
|
|
255
|
if (con == 15 && !_blocked)
|
|
256
|
{
|
|
257
|
timer++;
|
|
258
|
if (timer == 8)
|
|
259
|
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", 4, 6, 0);
|
|
260
|
var starttime = 60;
|
|
261
|
if (timer == starttime)
|
|
262
|
{
|
|
263
|
visit++;
|
|
264
|
tenna.bounce = 1;
|
|
265
|
var tetalk = stringsetloc(Are you crying for a buying!?"Are you crying for a buying!?", "obj_b1store_slash_Step_0_gml_237_0" );
|
|
266
|
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);
|
|
267
|
}
|
|
268
|
if (timer == (starttime + 100 + 11))
|
|
269
|
{
|
|
270
|
tenna.bounce = 1;
|
|
271
|
var tetalk = stringsetloc(Then save up your points, folks!"Then save up your points, folks!", "obj_b1store_slash_Step_0_gml_243_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;
} (tetalk, "tenna", 2, 120);
|
|
273
|
}
|
|
274
|
if (timer == (starttime + 222 + 120))
|
|
275
|
{
|
|
276
|
ra_real.sprite_index = ra_real.lsprite;
|
|
277
|
var ratalk = stringsetloc(POINTs can be exchanged for goods and services."POINTs can be exchanged for goods and services.", "obj_b1store_slash_Step_0_gml_254_0" );
|
|
278
|
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, 145);
|
|
279
|
}
|
|
280
|
if (timer == (starttime + 222 + 120 + 145 + 11))
|
|
281
|
{
|
|
282
|
ra_real.sprite_index = ra_real.usprite;
|
|
283
|
con++;
|
|
284
|
}
|
|
285
|
}
|
|
286
|
if (con == 20)
|
|
287
|
{
|
|
288
|
timer++;
|
|
289
|
if (timer == 8)
|
|
290
|
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", 4, 6, 0);
|
|
291
|
}
|
|
292
|
}
|
|
293
|
else
|
|
294
|
{
|
|
295
|
timer = 0;
|
|
296
|
texttimer = 0;
|
|
297
|
activeinit = 0;
|
|
298
|
con = 0;
|
|
299
|
susiewalkcon = 0;
|
|
300
|
susietimer = 0;
|
|
301
|
pocketcheck = 0;
|
|
302
|
if (i_ex(shopwriter))
|
|
303
|
{
|
|
304
|
writerinit = 0;
|
|
305
|
safe_delete(shopwriter);
|
|
306
|
susie.freeroam = false;
|
|
307
|
}
|
|
308
|
if (made == 1)
|
|
309
|
{
|
|
310
|
if (!i_ex(heal))
|
|
311
|
heal = instance_create(x + board_tilex(3), y + board_tiley(1.5), obj_board_tvdinner);
|
|
312
|
}
|
|
313
|
if (i_ex(key))
|
|
314
|
{
|
|
315
|
if (susieshoplift > 0)
|
|
316
|
{
|
|
317
|
if (i_ex(key))
|
|
318
|
{
|
|
319
|
with (key)
|
|
320
|
setxy_board(1760, 208);
|
|
321
|
}
|
|
322
|
}
|
|
323
|
}
|
|
324
|
}
|