|
1
|
if (init == 0)
|
|
2
|
{
|
|
3
|
var initiated = 0;
|
|
4
|
with (obj_caterpillarchara)
|
|
5
|
{
|
|
6
|
if (name == "ralsei")
|
|
7
|
other.ralsei = id;
|
|
8
|
if (name == "susie")
|
|
9
|
other.susie = id;
|
|
10
|
}
|
|
11
|
with (susie)
|
|
12
|
setxy(140, 392);
|
|
13
|
with (kris)
|
|
14
|
setxy(248, 400);
|
|
15
|
with (ralsei)
|
|
16
|
setxy(342, 396);
|
|
17
|
susie.follow = 0;
|
|
18
|
ralsei.follow = 0;
|
|
19
|
kris.fun = 1;
|
|
20
|
susie.fun = 1;
|
|
21
|
ralsei.fun = 1;
|
|
22
|
susie.ignoredepth = true;
|
|
23
|
ralsei.ignoredepth = true;
|
|
24
|
kris.sprite_index = kris.usprite;
|
|
25
|
susie.sprite_index = susie.usprite;
|
|
26
|
ralsei.sprite_index = ralsei.usprite;
|
|
27
|
kris.ystart = kris.y;
|
|
28
|
susie.ystart = susie.y;
|
|
29
|
ralsei.ystart = ralsei.y;
|
|
30
|
with (obj_mainchara_board)
|
|
31
|
{
|
|
32
|
if (name == "kris")
|
|
33
|
other.kris_board = id;
|
|
34
|
if (name == "susie")
|
|
35
|
other.susie_board = id;
|
|
36
|
if (name == "ralsei")
|
|
37
|
other.ralsei_board = id;
|
|
38
|
}
|
|
39
|
if (kris_board != 0 && susie_board != 0 && ralsei_board != 0)
|
|
40
|
{
|
|
41
|
kris_board.myhealth = 12;
|
|
42
|
susie_board.myhealth = 12;
|
|
43
|
ralsei_board.myhealth = 12;
|
|
44
|
init = 1;
|
|
45
|
initiated = 1;
|
|
46
|
}
|
|
47
|
else if (kris_board != 0)
|
|
48
|
{
|
|
49
|
kris_board.myhealth = 12;
|
|
50
|
init = 1;
|
|
51
|
initiated = 1;
|
|
52
|
}
|
|
53
|
if (!scr_swordroomscr_swordroom
function scr_swordroom()
{
if (room == room_board_dungeon_2 || room == room_board_dungeon_3 || room == room_board_sword_intro || room == room_board_1_sword || room == room_board_1_sword_trees || room == room_board_preshadowmantle || room == room_board_preshadowmantle_repeat || room == room_shadowmantle || room == room_board_prepostshadowmantle || room == room_board_postshadowmantle || room == room_board_2_sword || room == room_board_3_sword)
return true;
else
return false;
} ())
|
|
54
|
{
|
|
55
|
kr_healthbar = instance_create(222, 32, obj_board_healthbar);
|
|
56
|
su_healthbar = instance_create(128, 32, obj_board_healthbar);
|
|
57
|
ra_healthbar = instance_create(316, 32, obj_board_healthbar);
|
|
58
|
kr_healthbar.index = 0;
|
|
59
|
su_healthbar.index = 1;
|
|
60
|
ra_healthbar.index = 2;
|
|
61
|
kr_healthbar.mycolor = hexcolor(#DBFC8F);
|
|
62
|
su_healthbar.mycolor = hexcolor(#EC95FB);
|
|
63
|
ra_healthbar.mycolor = hexcolor(#1DE6B5);
|
|
64
|
}
|
|
65
|
else
|
|
66
|
{
|
|
67
|
kr_healthbar = instance_create(270, 34, obj_board_healthbar);
|
|
68
|
kr_healthbar.index = 0;
|
|
69
|
kr_healthbar.mycolor = hexcolor(#DBFC8F);
|
|
70
|
}
|
|
71
|
scoreboard = instance_create(410, 32, obj_board_scoreboard);
|
|
72
|
inventory = instance_create(80, 64, obj_board_inventory);
|
|
73
|
if (room == room_board_dungeon_2 || room == room_board_dungeon_3)
|
|
74
|
{
|
|
75
|
with (obj_mainchara_board)
|
|
76
|
sword = true;
|
|
77
|
}
|
|
78
|
if (room == room_board_intro)
|
|
79
|
{
|
|
80
|
}
|
|
81
|
if (room == room_board_tests)
|
|
82
|
{
|
|
83
|
if (i_ex(ralsei_board))
|
|
84
|
ralsei_board.follow = false;
|
|
85
|
}
|
|
86
|
}
|
|
87
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} () && init)
|
|
88
|
{
|
|
89
|
if (keyboard_check_pressed(ord("I")))
|
|
90
|
{
|
|
91
|
invulnerable = 1 - invulnerable;
|
|
92
|
if (invulnerable == 1)
|
|
93
|
scr_debug_printscr_debug_print
function scr_debug_print(arg0)
{
}
function print_message(arg0)
{
}
function debug_print(arg0)
{
}
function scr_debug_clear_all()
{
} ("Invulnerable");
|
|
94
|
else
|
|
95
|
scr_debug_printscr_debug_print
function scr_debug_print(arg0)
{
}
function print_message(arg0)
{
}
function debug_print(arg0)
{
}
function scr_debug_clear_all()
{
} ("Not Invulnerable");
|
|
96
|
snd_play_pitch(snd_item, 0.8 + (0.8 * invulnerable));
|
|
97
|
}
|
|
98
|
if (invulnerable)
|
|
99
|
{
|
|
100
|
with (obj_mainchara_board)
|
|
101
|
myhealth++;
|
|
102
|
}
|
|
103
|
if (keyboard_check_pressed(vk_add))
|
|
104
|
scr_board_scorescr_board_score
function scr_board_score(arg0)
{
var scoreadder = instance_create(x, y, obj_board_scoreAdder);
scoreadder.scoreamount = arg0;
if (argument_count == 2)
scoreadder.mysnd = argument1;
}
function scr_board_score_set(arg0)
{
global.flag[1044 points] = arg0;
} (100);
|
|
105
|
if (keyboard_check_pressed(vk_subtract))
|
|
106
|
scr_board_scorescr_board_score
function scr_board_score(arg0)
{
var scoreadder = instance_create(x, y, obj_board_scoreAdder);
scoreadder.scoreamount = arg0;
if (argument_count == 2)
scoreadder.mysnd = argument1;
}
function scr_board_score_set(arg0)
{
global.flag[1044 points] = arg0;
} (-100);
|
|
107
|
if (keyboard_check_pressed(ord("M")))
|
|
108
|
snd_free_all();
|
|
109
|
if (keyboard_check_pressed(ord("Q")))
|
|
110
|
{
|
|
111
|
with (obj_board_inventory)
|
|
112
|
{
|
|
113
|
if (qcount < 2)
|
|
114
|
qcount++;
|
|
115
|
}
|
|
116
|
}
|
|
117
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("K")))
|
|
118
|
{
|
|
119
|
with (obj_board_inventory)
|
|
120
|
{
|
|
121
|
keycount = 4;
|
|
122
|
sunmoonstone = 1;
|
|
123
|
lancer = 1;
|
|
124
|
}
|
|
125
|
}
|
|
126
|
if (keyboard_check_pressed(ord("K")))
|
|
127
|
{
|
|
128
|
inventory.keycount++;
|
|
129
|
if (inventory.keycount > 4)
|
|
130
|
inventory.keycount = 4;
|
|
131
|
}
|
|
132
|
if (room == room_board_1)
|
|
133
|
{
|
|
134
|
if (keyboard_check(vk_shift) && keyboard_check_pressed(ord("W")))
|
|
135
|
{
|
|
136
|
with (obj_board_tree_static)
|
|
137
|
sprite_index = spr_board_tree_withered;
|
|
138
|
with (obj_board_tree)
|
|
139
|
wither = 1;
|
|
140
|
with (obj_board_cactus)
|
|
141
|
wither = 1;
|
|
142
|
with (obj_board_smallpond)
|
|
143
|
wither = 1;
|
|
144
|
with (obj_board_waterfall)
|
|
145
|
wither = 1;
|
|
146
|
with (obj_board_lancermoat)
|
|
147
|
wither = 1;
|
|
148
|
with (obj_board_oasis)
|
|
149
|
wither = 2;
|
|
150
|
}
|
|
151
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("V")))
|
|
152
|
{
|
|
153
|
with (obj_mainchara_board)
|
|
154
|
{
|
|
155
|
visible = true;
|
|
156
|
canfreemove = true;
|
|
157
|
with (obj_board_startransition)
|
|
158
|
instance_destroy();
|
|
159
|
with (obj_script_delayed)
|
|
160
|
instance_destroy();
|
|
161
|
}
|
|
162
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ("ralsei");
|
|
163
|
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");
|
|
164
|
scr_board_instawarpscr_board_instawarp
function scr_board_instawarp(arg0, arg1, arg2, arg3, arg4)
{
with (obj_board_camera)
{
instawarp = true;
if (argument_count == 6)
{
instawarproomgoto = argument5;
camsavex = arg0;
camsavey = arg1;
}
if (arg4 == "left" || arg4 == "right")
scr_quickwarp(arg0, arg1, arg2, arg3 + (obj_board_controller.kris_object.y - 144));
else if (arg4 == "up" || arg4 == "down")
scr_quickwarp(arg0, arg1, arg2 + (obj_board_controller.kris_object.x - 288), arg3);
else
scr_quickwarp(arg0, arg1, arg2, arg3);
}
} (512, 1088, 800, 1280);
|
|
165
|
}
|
|
166
|
if (keyboard_check_pressed(vk_up) && keyboard_check(vk_shift))
|
|
167
|
{
|
|
168
|
if (global.flag[1020 got_power_croissant] == 0)
|
|
169
|
{
|
|
170
|
snd_play(snd_board_lift);
|
|
171
|
global.flag[1020 got_power_croissant] = 1;
|
|
172
|
scr_debug_printscr_debug_print
function scr_debug_print(arg0)
{
}
function print_message(arg0)
{
}
function debug_print(arg0)
{
}
function scr_debug_clear_all()
{
} ("Susie can now grab");
|
|
173
|
}
|
|
174
|
else
|
|
175
|
{
|
|
176
|
snd_play_pitch(snd_board_lift, 0.6);
|
|
177
|
global.flag[1020 got_power_croissant] = 0;
|
|
178
|
scr_debug_printscr_debug_print
function scr_debug_print(arg0)
{
}
function print_message(arg0)
{
}
function debug_print(arg0)
{
}
function scr_debug_clear_all()
{
} ("Susie can no longer grab");
|
|
179
|
}
|
|
180
|
}
|
|
181
|
}
|
|
182
|
if (room == room_board_2 && scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
183
|
{
|
|
184
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("T")))
|
|
185
|
{
|
|
186
|
global.flag[1022 tenna_board_absent] = 1 - global.flag[1022 tenna_board_absent];
|
|
187
|
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")
... ("tenna", 4);
|
|
188
|
}
|
|
189
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("P")))
|
|
190
|
{
|
|
191
|
obj_board_inventory.ninfriendo = true;
|
|
192
|
scr_board_instawarpscr_board_instawarp
function scr_board_instawarp(arg0, arg1, arg2, arg3, arg4)
{
with (obj_board_camera)
{
instawarp = true;
if (argument_count == 6)
{
instawarproomgoto = argument5;
camsavex = arg0;
camsavey = arg1;
}
if (arg4 == "left" || arg4 == "right")
scr_quickwarp(arg0, arg1, arg2, arg3 + (obj_board_controller.kris_object.y - 144));
else if (arg4 == "up" || arg4 == "down")
scr_quickwarp(arg0, arg1, arg2 + (obj_board_controller.kris_object.x - 288), arg3);
else
scr_quickwarp(arg0, arg1, arg2, arg3);
}
} (2432, 1600, 2656, 1792);
|
|
193
|
obj_b2bossencounterroom.active = 1;
|
|
194
|
obj_b2bossencounterroom.suwalktimer = 999;
|
|
195
|
with (obj_mainchara_board)
|
|
196
|
{
|
|
197
|
if (name == "kris")
|
|
198
|
camera = true;
|
|
199
|
}
|
|
200
|
}
|
|
201
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("B")))
|
|
202
|
{
|
|
203
|
var boat = instance_create(x, y, obj_board_boat);
|
|
204
|
with (boat)
|
|
205
|
setxy_board(1856, 3296);
|
|
206
|
}
|
|
207
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("E")))
|
|
208
|
{
|
|
209
|
scr_board_instawarpscr_board_instawarp
function scr_board_instawarp(arg0, arg1, arg2, arg3, arg4)
{
with (obj_board_camera)
{
instawarp = true;
if (argument_count == 6)
{
instawarproomgoto = argument5;
camsavex = arg0;
camsavey = arg1;
}
if (arg4 == "left" || arg4 == "right")
scr_quickwarp(arg0, arg1, arg2, arg3 + (obj_board_controller.kris_object.y - 144));
else if (arg4 == "up" || arg4 == "down")
scr_quickwarp(arg0, arg1, arg2 + (obj_board_controller.kris_object.x - 288), arg3);
else
scr_quickwarp(arg0, arg1, arg2, arg3);
}
} (2816, 3392, 2816, 3488);
|
|
210
|
global.flag[1022 tenna_board_absent] = 1;
|
|
211
|
}
|
|
212
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("V")))
|
|
213
|
{
|
|
214
|
with (obj_mainchara_board)
|
|
215
|
{
|
|
216
|
visible = true;
|
|
217
|
canfreemove = true;
|
|
218
|
with (obj_board_startransition)
|
|
219
|
instance_destroy();
|
|
220
|
with (obj_script_delayed)
|
|
221
|
instance_destroy();
|
|
222
|
}
|
|
223
|
scr_board_instawarpscr_board_instawarp
function scr_board_instawarp(arg0, arg1, arg2, arg3, arg4)
{
with (obj_board_camera)
{
instawarp = true;
if (argument_count == 6)
{
instawarproomgoto = argument5;
camsavex = arg0;
camsavey = arg1;
}
if (arg4 == "left" || arg4 == "right")
scr_quickwarp(arg0, arg1, arg2, arg3 + (obj_board_controller.kris_object.y - 144));
else if (arg4 == "up" || arg4 == "down")
scr_quickwarp(arg0, arg1, arg2 + (obj_board_controller.kris_object.x - 288), arg3);
else
scr_quickwarp(arg0, arg1, arg2, arg3);
}
} (3200, 832, 3376, 1052);
|
|
224
|
global.flag[1022 tenna_board_absent] = 1;
|
|
225
|
with (obj_b2tennaleave1)
|
|
226
|
con = 5;
|
|
227
|
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");
|
|
228
|
}
|
|
229
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("F")))
|
|
230
|
{
|
|
231
|
scr_board_instawarpscr_board_instawarp
function scr_board_instawarp(arg0, arg1, arg2, arg3, arg4)
{
with (obj_board_camera)
{
instawarp = true;
if (argument_count == 6)
{
instawarproomgoto = argument5;
camsavex = arg0;
camsavey = arg1;
}
if (arg4 == "left" || arg4 == "right")
scr_quickwarp(arg0, arg1, arg2, arg3 + (obj_board_controller.kris_object.y - 144));
else if (arg4 == "up" || arg4 == "down")
scr_quickwarp(arg0, arg1, arg2 + (obj_board_controller.kris_object.x - 288), arg3);
else
scr_quickwarp(arg0, arg1, arg2, arg3);
}
} (2816, 3392, 3104, 3520);
|
|
232
|
obj_b2enemysquabble.con = 999;
|
|
233
|
global.flag[1022 tenna_board_absent] = 1;
|
|
234
|
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");
|
|
235
|
}
|
|
236
|
if (keyboard_check_pressed(ord("N")))
|
|
237
|
obj_board_inventory.ninfriendo = true;
|
|
238
|
if (keyboard_check(vk_shift) && keyboard_check_pressed(ord("N")))
|
|
239
|
{
|
|
240
|
global.flag[1017 fave_weather] = 1 - global.flag[1017 fave_weather];
|
|
241
|
var friendoname = "elnina (cloud)";
|
|
242
|
if (global.flag[1017 fave_weather] == 1)
|
|
243
|
friendoname = "lanino (moon)";
|
|
244
|
debug_print("favored=" + friendoname);
|
|
245
|
}
|
|
246
|
if (keyboard_check_pressed(ord("K")))
|
|
247
|
obj_board_inventory.lancer = true;
|
|
248
|
}
|
|
249
|
}
|
|
250
|
if (room == room_board_3 && scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
251
|
{
|
|
252
|
if (global.flag[1053] == 1 && obj_board_camera.con == 0)
|
|
253
|
{
|
|
254
|
global.flag[1053] = 0;
|
|
255
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_board_instawarp, 1, 1280, 1600, 1632, 1712);
|
|
256
|
safe_delete(obj_b3elevator);
|
|
257
|
}
|
|
258
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("R")))
|
|
259
|
global.flag[1053] = 1;
|
|
260
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("V")))
|
|
261
|
scr_board_instawarpscr_board_instawarp
function scr_board_instawarp(arg0, arg1, arg2, arg3, arg4)
{
with (obj_board_camera)
{
instawarp = true;
if (argument_count == 6)
{
instawarproomgoto = argument5;
camsavex = arg0;
camsavey = arg1;
}
if (arg4 == "left" || arg4 == "right")
scr_quickwarp(arg0, arg1, arg2, arg3 + (obj_board_controller.kris_object.y - 144));
else if (arg4 == "up" || arg4 == "down")
scr_quickwarp(arg0, arg1, arg2 + (obj_board_controller.kris_object.x - 288), arg3);
else
scr_quickwarp(arg0, arg1, arg2, arg3);
}
} (512, 1088, 704, 1280);
|
|
262
|
if (keyboard_check_pressed(ord("K")))
|
|
263
|
obj_board_inventory.lancer++;
|
|
264
|
}
|
|
265
|
if (room == room_board_3b && scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
266
|
{
|
|
267
|
if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("V")))
|
|
268
|
scr_board_instawarpscr_board_instawarp
function scr_board_instawarp(arg0, arg1, arg2, arg3, arg4)
{
with (obj_board_camera)
{
instawarp = true;
if (argument_count == 6)
{
instawarproomgoto = argument5;
camsavex = arg0;
camsavey = arg1;
}
if (arg4 == "left" || arg4 == "right")
scr_quickwarp(arg0, arg1, arg2, arg3 + (obj_board_controller.kris_object.y - 144));
else if (arg4 == "up" || arg4 == "down")
scr_quickwarp(arg0, arg1, arg2 + (obj_board_controller.kris_object.x - 288), arg3);
else
scr_quickwarp(arg0, arg1, arg2, arg3);
}
} (128, 1600, 288, 1728);
|
|
269
|
}
|
|
270
|
if (room == room_board_tests && scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
271
|
{
|
|
272
|
if (keyboard_check_pressed(vk_up) && keyboard_check(vk_shift))
|
|
273
|
{
|
|
274
|
if (global.flag[1020 got_power_croissant] == 0)
|
|
275
|
{
|
|
276
|
snd_play(snd_board_lift);
|
|
277
|
global.flag[1020 got_power_croissant] = 1;
|
|
278
|
scr_debug_printscr_debug_print
function scr_debug_print(arg0)
{
}
function print_message(arg0)
{
}
function debug_print(arg0)
{
}
function scr_debug_clear_all()
{
} ("Susie can now grab");
|
|
279
|
}
|
|
280
|
else
|
|
281
|
{
|
|
282
|
snd_play_pitch(snd_board_lift, 0.6);
|
|
283
|
global.flag[1020 got_power_croissant] = 0;
|
|
284
|
scr_debug_printscr_debug_print
function scr_debug_print(arg0)
{
}
function print_message(arg0)
{
}
function debug_print(arg0)
{
}
function scr_debug_clear_all()
{
} ("Susie can no longer grab");
|
|
285
|
}
|
|
286
|
}
|
|
287
|
}
|