|
1
|
if (init == 0)
|
|
2
|
{
|
|
3
|
if (place_meeting(x, y, obj_board_tree))
|
|
4
|
{
|
|
5
|
with (instance_place(x, y, obj_board_tree))
|
|
6
|
{
|
|
7
|
other.init = 1;
|
|
8
|
instance_destroy();
|
|
9
|
}
|
|
10
|
}
|
|
11
|
}
|
|
12
|
if (active == 1)
|
|
13
|
{
|
|
14
|
if (con == 0)
|
|
15
|
{
|
|
16
|
mus_volume(global.currentsong[1], 0, 60);
|
|
17
|
with (obj_mainchara_board)
|
|
18
|
cantleave = true;
|
|
19
|
con = 1;
|
|
20
|
timer = 0;
|
|
21
|
}
|
|
22
|
if (killoutertrees == false && obj_board_camera.con == 0)
|
|
23
|
{
|
|
24
|
with (obj_board_tree)
|
|
25
|
{
|
|
26
|
if (x > 480 || y > 288 || x < 128 || y < 64)
|
|
27
|
instance_destroy();
|
|
28
|
}
|
|
29
|
killoutertrees = true;
|
|
30
|
}
|
|
31
|
}
|
|
32
|
if (con == 2)
|
|
33
|
{
|
|
34
|
timer++;
|
|
35
|
if (timer == 1)
|
|
36
|
{
|
|
37
|
snd_play(snd_impact);
|
|
38
|
image_index = 1;
|
|
39
|
}
|
|
40
|
if (timer == 45)
|
|
41
|
{
|
|
42
|
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;
... ("no_name");
|
|
43
|
msgsetloc(0, YOU GOT THE ICE KEY"YOU GOT THE \\cIICE KEY\\cW", "obj_board_swordroute_icekey_slash_Step_0_gml_59_0" );
|
|
44
|
d = bw_make();
|
|
45
|
d.skippable = false;
|
|
46
|
d.reachedend_draw_triangle = false;
|
|
47
|
d.rate = 6;
|
|
48
|
d.textsound = snd_silent;
|
|
49
|
d.reachedend_sound_play = false;
|
|
50
|
d.boardopensound = false;
|
|
51
|
}
|
|
52
|
if (i_ex(d))
|
|
53
|
{
|
|
54
|
if (i_ex(d.writer))
|
|
55
|
{
|
|
56
|
if (d.writer.reachedend == 1)
|
|
57
|
{
|
|
58
|
timer = 0;
|
|
59
|
con++;
|
|
60
|
}
|
|
61
|
}
|
|
62
|
}
|
|
63
|
}
|
|
64
|
if (con == 3)
|
|
65
|
{
|
|
66
|
timer++;
|
|
67
|
var soundlength = 330;
|
|
68
|
if (timer == 30)
|
|
69
|
{
|
|
70
|
global.flag[1055 sword_route_progress] = 1;
|
|
71
|
snd_play(snd_link_get_key);
|
|
72
|
}
|
|
73
|
if (timer == (soundlength + 90))
|
|
74
|
{
|
|
75
|
global.flag[7 disable_menu?] = 0;
|
|
76
|
with (obj_gameshow_swordroute)
|
|
77
|
{
|
|
78
|
depth = 999980;
|
|
79
|
bg.depth = 999994;
|
|
80
|
gameconsole.depth = 999985;
|
|
81
|
}
|
|
82
|
with (obj_mainchara_board)
|
|
83
|
ignoredepth = 1;
|
|
84
|
with (obj_board_controller)
|
|
85
|
depth = 999980;
|
|
86
|
with (obj_treasure_room)
|
|
87
|
depth = 999990;
|
|
88
|
with (obj_marker)
|
|
89
|
{
|
|
90
|
if (x == 0 && y == 380)
|
|
91
|
depth = 999979;
|
|
92
|
}
|
|
93
|
with (obj_mainchara)
|
|
94
|
{
|
|
95
|
ignoredepth = 1;
|
|
96
|
depth = 999979;
|
|
97
|
}
|
|
98
|
with (obj_board_parent)
|
|
99
|
depth += 500;
|
|
100
|
with (obj_mainchara_board)
|
|
101
|
visible = false;
|
|
102
|
with (instance_create_depth(x, y, 999995, obj_tvturnoff_manager))
|
|
103
|
yoff = -64;
|
|
104
|
audio_stop_all();
|
|
105
|
safe_delete(obj_writer);
|
|
106
|
safe_delete(obj_board_writer);
|
|
107
|
depth = 1000000;
|
|
108
|
obj_gameshow_swordroute.drawui = false;
|
|
109
|
obj_board_controller.drawcrt = false;
|
|
110
|
drawblack = true;
|
|
111
|
with (obj_mainchara_board)
|
|
112
|
controlled = 0;
|
|
113
|
}
|
|
114
|
if (timer == (soundlength + 90 + 30))
|
|
115
|
{
|
|
116
|
global.hp[1] = global.maxhp[1];
|
|
117
|
global.hp[2] = global.maxhp[2];
|
|
118
|
global.hp[3] = global.maxhp[3];
|
|
119
|
scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} (0, 0, spr_pxwhite, 640, 480, undefined, undefined, c_black, 999995);
|
|
120
|
global.interact = 0;
|
|
121
|
obj_mainchara.freeze = false;
|
|
122
|
obj_mainchara.fun = false;
|
|
123
|
global.facing = 0;
|
|
124
|
}
|
|
125
|
}
|