|
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 (init == 0)
|
|
4
|
{
|
|
5
|
if (global.flag[1055 sword_route_progress] == 1)
|
|
6
|
{
|
|
7
|
type = 1;
|
|
8
|
layer_set_visible(layer_get_id("BOARD_Tiles_alt"), false);
|
|
9
|
}
|
|
10
|
else
|
|
11
|
{
|
|
12
|
type = 2;
|
|
13
|
layer_set_visible(layer_get_id("BOARD_Tiles_alt"), true);
|
|
14
|
tree1 = instance_create(x + 144, y + 0, obj_board_cactus);
|
|
15
|
tree2 = instance_create(x + 64, y + 128, obj_board_tree);
|
|
16
|
tree3 = instance_create(x + 224, y + 128, obj_board_tree);
|
|
17
|
tree2.sprite_index = spr_board_tree_anim2;
|
|
18
|
tree3.sprite_index = spr_board_tree_anim2;
|
|
19
|
}
|
|
20
|
init = 1;
|
|
21
|
}
|
|
22
|
if (active)
|
|
23
|
{
|
|
24
|
if (sndpause == 0 && obj_board_camera.con == 0)
|
|
25
|
{
|
|
26
|
sndpause = 1;
|
|
27
|
snd_pause(global.currentsong[1]);
|
|
28
|
}
|
|
29
|
if (sndpause == 1 && obj_board_camera.con != 0)
|
|
30
|
{
|
|
31
|
sndpause = 0;
|
|
32
|
snd_free(north);
|
|
33
|
snd_resume(global.currentsong[1]);
|
|
34
|
}
|
|
35
|
if (con == 0 && obj_board_camera.con == 0)
|
|
36
|
{
|
|
37
|
if (visitinit == 0)
|
|
38
|
visitinit = 1;
|
|
39
|
}
|
|
40
|
}
|
|
41
|
else
|
|
42
|
{
|
|
43
|
timer = 0;
|
|
44
|
texttimer = 0;
|
|
45
|
visitinit = 0;
|
|
46
|
textcomplete = false;
|
|
47
|
}
|