|
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
|
if (tenna == 0)
|
|
3
|
{
|
|
4
|
with (obj_actor_tenna)
|
|
5
|
other.tenna = id;
|
|
6
|
}
|
|
7
|
if (susiereal == 0)
|
|
8
|
{
|
|
9
|
with (obj_caterpillarchara)
|
|
10
|
{
|
|
11
|
if (name == "susie")
|
|
12
|
other.susiereal = id;
|
|
13
|
}
|
|
14
|
}
|
|
15
|
if (ralseireal == 0)
|
|
16
|
{
|
|
17
|
with (obj_caterpillarchara)
|
|
18
|
{
|
|
19
|
if (name == "ralsei")
|
|
20
|
other.ralseireal = id;
|
|
21
|
}
|
|
22
|
}
|
|
23
|
if (krisreal == 0)
|
|
24
|
{
|
|
25
|
with (obj_mainchara)
|
|
26
|
other.krisreal = id;
|
|
27
|
}
|
|
28
|
if (active == 1)
|
|
29
|
{
|
|
30
|
if (con == 0 && obj_board_camera.con == 0)
|
|
31
|
{
|
|
32
|
timer++;
|
|
33
|
if (timer == 1)
|
|
34
|
{
|
|
35
|
visit++;
|
|
36
|
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", 6, 4, 2);
|
|
37
|
if (visit == 1)
|
|
38
|
{
|
|
39
|
var tetalk = stringsetloc(Enter the giant pyramid tile to enter!"Enter the giant pyramid tile to enter!", "obj_b1pyramid1_slash_Step_0_gml_23_0" );
|
|
40
|
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);
|
|
41
|
with (obj_actor_tenna)
|
|
42
|
bounce = 1;
|
|
43
|
}
|
|
44
|
}
|
|
45
|
if (timer == 15)
|
|
46
|
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, 4, 2);
|
|
47
|
if (visit == 1)
|
|
48
|
{
|
|
49
|
if (timer == 165)
|
|
50
|
{
|
|
51
|
var sutalk = stringsetloc(Why is it small?"Why is it small?", "obj_b1pyramid1_slash_Step_0_gml_28_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;
} (sutalk, "susie", 2, 90);
|
|
53
|
}
|
|
54
|
if (timer == 255)
|
|
55
|
{
|
|
56
|
var ratalk = stringsetloc(Maybe there's a smaller one inside?"Maybe there's a smaller one inside?", "obj_b1pyramid1_slash_Step_0_gml_33_0" );
|
|
57
|
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);
|
|
58
|
global.flag[1001 tiny_pyramid_state] = 1;
|
|
59
|
}
|
|
60
|
if (timer == 345)
|
|
61
|
{
|
|
62
|
var tetalk = stringsetloc(You will never find the even smaller pyramid!"You will never find the even smaller pyramid!", "obj_b1pyramid1_slash_Step_0_gml_39_0" );
|
|
63
|
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);
|
|
64
|
with (obj_actor_tenna)
|
|
65
|
bounce = 1;
|
|
66
|
}
|
|
67
|
}
|
|
68
|
}
|
|
69
|
}
|
|
70
|
else
|
|
71
|
{
|
|
72
|
timer = 0;
|
|
73
|
}
|