1 |
global.myfight = -999; |
2 |
if (con == -10) |
3 |
{ |
4 |
obj_heart.x = -999; |
5 |
global.mnfight = 999; |
6 |
global.myfight = 999; |
7 |
with (OBJ_WRITER) |
8 |
instance_destroy(); |
9 |
with (OBJ_INSTAWRITER) |
10 |
instance_destroy(); |
11 |
global.msc = 0; |
12 |
global.typer = 61; |
13 |
if (global.language == "ja") |
14 |
global.typer = 121; |
15 |
if (murder == 0) |
16 |
{ |
17 |
global.msg[0] = * (A strange light fills the room.)Delay 55 Close Messagescr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asgore_finalintro_178") ; |
18 |
global.msg[1] = * (Twilight is shining through the barrier.)Delay 33 Close Messagescr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asgore_finalintro_179") ; |
19 |
global.msg[2] = * (It seems your journey is finally over.)Delay 44Close Messagescr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asgore_finalintro_180") ; |
20 |
global.msg[3] = * (You're filled with DETERMINATION.)Delay 55 Close MessageClose Messagescr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asgore_finalintro_181") ; |
21 |
instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
22 |
con = -9; |
23 |
} |
24 |
else |
25 |
{ |
26 |
con = -8; |
27 |
alarm[4] = 10; |
28 |
} |
29 |
} |
30 |
if (con == -9 && instance_exists(OBJ_WRITER) == 0) |
31 |
{ |
32 |
obj_heart.x = -999; |
33 |
global.mnfight = 999; |
34 |
global.myfight = 999; |
35 |
con = -8; |
36 |
alarm[4] = 30; |
37 |
} |
38 |
if (con == -8) |
39 |
{ |
40 |
obj_heart.x = -999; |
41 |
global.mnfight = 999; |
42 |
global.myfight = 999; |
43 |
} |
44 |
if (con == -7) |
45 |
{ |
46 |
with (OBJ_WRITER) |
47 |
instance_destroy(); |
48 |
with (OBJ_INSTAWRITER) |
49 |
instance_destroy(); |
50 |
global.typer = 62; |
51 |
global.msg[0] = Human...Wait for inputscr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asgore_finalintro_213") ; |
52 |
global.msg[1] = \E1It was nice to meet you.Wait for inputscr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asgore_finalintro_214") ; |
53 |
global.msg[2] = \E0Goodbye.Wait for inputClose MessageClose Messagescr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asgore_finalintro_215") ; |
54 |
con = -6; |
55 |
if (murder == 1) |
56 |
{ |
57 |
global.msg[0] = \E1Now, now.Wait for inputscr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asgore_finalintro_220") ; |
58 |
global.msg[1] = There's no need to fight.Wait for inputscr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asgore_finalintro_221") ; |
59 |
global.msg[2] = Why not settle this...Wait for inputscr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asgore_finalintro_222") ; |
60 |
global.msg[3] = Over a nice cup of tea?Wait for inputClose MessageClose Messagescr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asgore_finalintro_223") ; |
61 |
con = -120; |
62 |
} |
63 |
blcon2 = instance_create(500, 120, obj_blconsm); |
64 |
blconwd2 = instance_create(525, 130, OBJ_WRITER); |
65 |
} |
66 |
if (con == -6 && instance_exists(OBJ_WRITER) == 0) |
67 |
{ |
68 |
with (obj_blconsm) |
69 |
instance_destroy(); |
70 |
con = 3; |
71 |
if (special_end == 1) |
72 |
{ |
73 |
global.screen_border_activate_on_game_over = 0; |
74 |
con = -100; |
75 |
instance_create(0, 0, obj_friendscene); |
76 |
instance_destroy(); |
77 |
} |
78 |
} |
79 |
if (con == 2) |
80 |
{ |
81 |
obj_heart.x = -999; |
82 |
global.mnfight = 999; |
83 |
global.myfight = 999; |
84 |
} |
85 |
if (con == 3) |
86 |
{ |
87 |
snd_play(snd_spearappear); |
88 |
image_index = 0; |
89 |
sprite_index = spr_asgore_brandish; |
90 |
image_speed = 0; |
91 |
con = 6.1; |
92 |
alarm[4] = 5; |
93 |
hspeed = -20; |
94 |
} |
95 |
if (con == 6.1) |
96 |
{ |
97 |
sc = scr_afterimagescr_afterimagegenafterimage = instance_create(x, y, obj_genafterimage);
genafterimage.sprite_index = sprite_index;
genafterimage.image_index = image_index;
genafterimage.size = image_xscale;
genafterimage.size = image_yscale;
genafterimage.image_angle = image_angle;
genafterimage.image_blend = image_blend;
genafterimage.image_speed = 0;
genafterimage.depth = depth + 1;
if (argument0 > 0)
genafterimage.alphadown = 1 / argument0;
if (argument1 > 0)
genafterimage.growth = argument1;
return genafterimage; (0, 0); |
98 |
sc.size = 2; |
99 |
sc.image_xscale = 2; |
100 |
sc.image_yscale = 2; |
101 |
sc.image_alpha = 0.9; |
102 |
} |
103 |
if (con == 7.1) |
104 |
{ |
105 |
hspeed = 0; |
106 |
con = 7; |
107 |
alarm[4] = 20; |
108 |
} |
109 |
draw_sprite_ext(sprite_index, image_index, x, y, 2, 2, 0, image_blend, 1); |
110 |
if (con < 3) |
111 |
draw_sprite_ext(spr_asgore_bface, global.faceemotion, x + 138, y - 12, 2, 2, 0, c_white, 1); |
112 |
if (con == 8) |
113 |
{ |
114 |
image_speed = 0.5; |
115 |
if (image_index == 2) |
116 |
caster_play(cutsound, 1, 1); |
117 |
if (image_index >= 2 && image_index < 4) |
118 |
{ |
119 |
draw_set_alpha(0.5); |
120 |
if (image_index == 3) |
121 |
draw_set_alpha(1); |
122 |
draw_set_color(c_white); |
123 |
ossafe_fill_rectangle(-1, -1, 999, 999); |
124 |
draw_set_alpha(1); |
125 |
} |
126 |
if (image_index == 4) |
127 |
scr_shakescr_shakeinstance_create(0, 0, obj_shaker);
obj_shaker.hshake = argument0;
obj_shaker.vshake = argument1;
obj_shaker.shakespeed = argument2; (6, 3, 2); |
128 |
if (image_index >= 13) |
129 |
{ |
130 |
image_speed = 0; |
131 |
con = 9; |
132 |
alarm[4] = 20; |
133 |
} |
134 |
} |
135 |
if (con == 9) |
136 |
{ |
137 |
image_speed = 0; |
138 |
image_index = 13; |
139 |
} |
140 |
if (con == 10) |
141 |
{ |
142 |
obj_battlecontroller.drawrect = 0; |
143 |
background_color = c_white; |
144 |
image_blend = c_black; |
145 |
obj_fightbt.image_blend = c_black; |
146 |
obj_itembt.image_blend = c_black; |
147 |
obj_talkbt.image_blend = c_black; |
148 |
image_index = 0; |
149 |
image_speed = 0; |
150 |
g = instance_create(268, 140, obj_asgorefakespear); |
151 |
g.image_blend = c_red; |
152 |
g.image_xscale = 2; |
153 |
g.image_yscale = 2; |
154 |
obj_mercybutton_shatter.image_blend = c_black; |
155 |
con = 12; |
156 |
alarm[4] = 20; |
157 |
vvv = 2.5; |
158 |
snd_play(snd_spearappear); |
159 |
} |
160 |
if (con == 12) |
161 |
{ |
162 |
g.hspeed = 14.3; |
163 |
g.vspeed = -13; |
164 |
g.image_angle -= 4.5; |
165 |
hspeed = (500 - x) / 20; |
166 |
g.depth = -1000000; |
167 |
sc = scr_afterimagescr_afterimagegenafterimage = instance_create(x, y, obj_genafterimage);
genafterimage.sprite_index = sprite_index;
genafterimage.image_index = image_index;
genafterimage.size = image_xscale;
genafterimage.size = image_yscale;
genafterimage.image_angle = image_angle;
genafterimage.image_blend = image_blend;
genafterimage.image_speed = 0;
genafterimage.depth = depth + 1;
if (argument0 > 0)
genafterimage.alphadown = 1 / argument0;
if (argument1 > 0)
genafterimage.growth = argument1;
return genafterimage; (0, 0); |
168 |
sc.size = 2; |
169 |
sc.image_xscale = 2; |
170 |
sc.image_yscale = 2; |
171 |
sc.image_alpha = 0.9; |
172 |
sc.depth = 100; |
173 |
with (g) |
174 |
{ |
175 |
sc = scr_afterimagescr_afterimagegenafterimage = instance_create(x, y, obj_genafterimage);
genafterimage.sprite_index = sprite_index;
genafterimage.image_index = image_index;
genafterimage.size = image_xscale;
genafterimage.size = image_yscale;
genafterimage.image_angle = image_angle;
genafterimage.image_blend = image_blend;
genafterimage.image_speed = 0;
genafterimage.depth = depth + 1;
if (argument0 > 0)
genafterimage.alphadown = 1 / argument0;
if (argument1 > 0)
genafterimage.growth = argument1;
return genafterimage; (0, 0); |
176 |
sc.depth = -99999; |
177 |
sc.size = 2; |
178 |
sc.image_xscale = 2; |
179 |
sc.image_yscale = 2; |
180 |
sc.image_alpha = 0.9; |
181 |
} |
182 |
} |
183 |
if (con == 13) |
184 |
{ |
185 |
if (vvv > 0) |
186 |
vvv -= 0.1; |
187 |
g.hspeed = 0; |
188 |
g.vspeed = vvv; |
189 |
hspeed = 0; |
190 |
con = 18; |
191 |
alarm[4] = 30; |
192 |
} |
193 |
if (con == 18) |
194 |
{ |
195 |
if (vvv > 0) |
196 |
vvv -= 0.1; |
197 |
g.hspeed = 0; |
198 |
g.vspeed = -vvv; |
199 |
} |
200 |
if (con == 19) |
201 |
{ |
202 |
caster_free(all); |
203 |
caster_play(swipesound, 1, 1); |
204 |
global.batmusic = caster_load("music/vsasgore.ogg"); |
205 |
w_on = 0; |
206 |
whiteout = 0; |
207 |
blackout = 0; |
208 |
g.vspeed = 100; |
209 |
con = 20; |
210 |
} |
211 |
if (con == 20) |
212 |
{ |
213 |
with (g) |
214 |
{ |
215 |
sc = scr_afterimagescr_afterimagegenafterimage = instance_create(x, y, obj_genafterimage);
genafterimage.sprite_index = sprite_index;
genafterimage.image_index = image_index;
genafterimage.size = image_xscale;
genafterimage.size = image_yscale;
genafterimage.image_angle = image_angle;
genafterimage.image_blend = image_blend;
genafterimage.image_speed = 0;
genafterimage.depth = depth + 1;
if (argument0 > 0)
genafterimage.alphadown = 1 / argument0;
if (argument1 > 0)
genafterimage.growth = argument1;
return genafterimage; (0, 0); |
216 |
sc.depth = depth + 1; |
217 |
sc.depth = -99999; |
218 |
sc.size = 2; |
219 |
sc.image_xscale = 2; |
220 |
sc.image_yscale = 2; |
221 |
sc.image_alpha = 0.9; |
222 |
} |
223 |
} |
224 |
if (con == 40) |
225 |
{ |
226 |
depth = -100000; |
227 |
if (w_on == 0) |
228 |
whiteout += 0.08; |
229 |
draw_set_color(c_white); |
230 |
draw_set_alpha(whiteout); |
231 |
ossafe_fill_rectangle(-1, -1, 999, 999); |
232 |
if (whiteout >= 1.8) |
233 |
w_on = 1; |
234 |
if (w_on == 1) |
235 |
{ |
236 |
blackout += 0.05; |
237 |
if (skip == 1 && blackout < 5.5) |
238 |
blackout += 0.05; |
239 |
draw_set_alpha(blackout); |
240 |
draw_set_color(c_black); |
241 |
ossafe_fill_rectangle(-1, -1, 999, 999); |
242 |
if (blackout == 5.5) |
243 |
caster_loop(global.batmusic, 1, 1); |
244 |
fdhjfd = 9999; |
245 |
if (blackout == 7) |
246 |
{ |
247 |
con = 50; |
248 |
global.mnfight = 0; |
249 |
global.myfight = 0; |
250 |
background_color = c_black; |
251 |
obj_battlecontroller.drawrect = 1; |
252 |
obj_fightbt.image_blend = c_white; |
253 |
obj_itembt.image_blend = c_white; |
254 |
obj_talkbt.image_blend = c_white; |
255 |
obj_fightbt.sprite_index = scr_getspritescr_getspritevar sprite_id = argument[0];
if (global.language == "ja")
{
if (sprite_id == spr_actbt_center)
return spr_actbt_center_ja;
if (sprite_id == spr_actbt_center_hole)
return spr_actbt_center_hole_ja;
if (sprite_id == spr_barkbullet)
return spr_barkbullet_ja;
if (sprite_id == spr_barktry)
return spr_barktry_ja;
if (sprite_id == spr_bulletNapstaSad)
return spr_bulletNapstaSad_ja;
if (sprite_id == spr_cbone)
return spr_cbone_ja;
if (sprite_id == spr_dbone)
return spr_dbone_ja;
if (sprite_id == spr_defusebox)
return spr_defusebox_ja;
if (sprite_id == spr_fightbt)
return spr_fightbt_ja;
if (sprite_id == spr_fightbt_center)
return spr_fightbt_center_ja;
if (sprite_id == spr_fightbt_hollow)
return spr_fightbt_hollow_ja;
if (sprite_id == spr_itembt)
return spr_itembt_ja;
if (sprite_id == spr_itembt_hollow)
return spr_itembt_hollow_ja;
if (sprite_id == spr_killervisage)
return spr_killervisage_ja;
if (sprite_id == spr_librarysign)
return spr_librarysign_ja;
if (sprite_id == spr_mercybutton_normal)
return spr_mercybutton_normal_ja;
if (sprite_id == spr_mercybutton_shatter)
return spr_mercybutton_shatter_ja;
if (sprite_id == spr_mettatonb_behind)
return spr_mettatonb_behind_ja;
if (sprite_id == spr_mettatonb_behind_on)
return spr_mettatonb_behind_on_ja;
if (sprite_id == spr_oolbone)
return spr_oolbone_ja;
if (sprite_id == spr_out_to_lunch_sign)
return spr_out_to_lunch_sign_ja;
if (sprite_id == spr_punchcard)
return spr_punchcard_ja;
if (sprite_id == spr_pxquit)
return spr_pxquit_ja;
if (sprite_id == spr_savebt)
return spr_savebt_ja;
if (sprite_id == spr_snowsans)
return spr_snowsans_ja;
if (sprite_id == spr_sparebt)
return spr_sparebt_ja;
if (sprite_id == spr_sparebt_bandage)
return spr_sparebt_bandage_ja;
if (sprite_id == spr_starcheckeredit)
return spr_starcheckeredit_ja;
if (sprite_id == spr_talkbt)
return spr_talkbt_ja;
if (sprite_id == spr_talkbt_hollow)
return spr_talkbt_hollow_ja;
if (sprite_id == spr_udebone)
return spr_udebone_ja;
if (sprite_id == spr_wordsearch)
return spr_wordsearch_ja;
}
return sprite_id; (spr_fightbt); |
256 |
obj_itembt.sprite_index = scr_getspritescr_getspritevar sprite_id = argument[0];
if (global.language == "ja")
{
if (sprite_id == spr_actbt_center)
return spr_actbt_center_ja;
if (sprite_id == spr_actbt_center_hole)
return spr_actbt_center_hole_ja;
if (sprite_id == spr_barkbullet)
return spr_barkbullet_ja;
if (sprite_id == spr_barktry)
return spr_barktry_ja;
if (sprite_id == spr_bulletNapstaSad)
return spr_bulletNapstaSad_ja;
if (sprite_id == spr_cbone)
return spr_cbone_ja;
if (sprite_id == spr_dbone)
return spr_dbone_ja;
if (sprite_id == spr_defusebox)
return spr_defusebox_ja;
if (sprite_id == spr_fightbt)
return spr_fightbt_ja;
if (sprite_id == spr_fightbt_center)
return spr_fightbt_center_ja;
if (sprite_id == spr_fightbt_hollow)
return spr_fightbt_hollow_ja;
if (sprite_id == spr_itembt)
return spr_itembt_ja;
if (sprite_id == spr_itembt_hollow)
return spr_itembt_hollow_ja;
if (sprite_id == spr_killervisage)
return spr_killervisage_ja;
if (sprite_id == spr_librarysign)
return spr_librarysign_ja;
if (sprite_id == spr_mercybutton_normal)
return spr_mercybutton_normal_ja;
if (sprite_id == spr_mercybutton_shatter)
return spr_mercybutton_shatter_ja;
if (sprite_id == spr_mettatonb_behind)
return spr_mettatonb_behind_ja;
if (sprite_id == spr_mettatonb_behind_on)
return spr_mettatonb_behind_on_ja;
if (sprite_id == spr_oolbone)
return spr_oolbone_ja;
if (sprite_id == spr_out_to_lunch_sign)
return spr_out_to_lunch_sign_ja;
if (sprite_id == spr_punchcard)
return spr_punchcard_ja;
if (sprite_id == spr_pxquit)
return spr_pxquit_ja;
if (sprite_id == spr_savebt)
return spr_savebt_ja;
if (sprite_id == spr_snowsans)
return spr_snowsans_ja;
if (sprite_id == spr_sparebt)
return spr_sparebt_ja;
if (sprite_id == spr_sparebt_bandage)
return spr_sparebt_bandage_ja;
if (sprite_id == spr_starcheckeredit)
return spr_starcheckeredit_ja;
if (sprite_id == spr_talkbt)
return spr_talkbt_ja;
if (sprite_id == spr_talkbt_hollow)
return spr_talkbt_hollow_ja;
if (sprite_id == spr_udebone)
return spr_udebone_ja;
if (sprite_id == spr_wordsearch)
return spr_wordsearch_ja;
}
return sprite_id; (spr_itembt); |
257 |
obj_talkbt.sprite_index = scr_getspritescr_getspritevar sprite_id = argument[0];
if (global.language == "ja")
{
if (sprite_id == spr_actbt_center)
return spr_actbt_center_ja;
if (sprite_id == spr_actbt_center_hole)
return spr_actbt_center_hole_ja;
if (sprite_id == spr_barkbullet)
return spr_barkbullet_ja;
if (sprite_id == spr_barktry)
return spr_barktry_ja;
if (sprite_id == spr_bulletNapstaSad)
return spr_bulletNapstaSad_ja;
if (sprite_id == spr_cbone)
return spr_cbone_ja;
if (sprite_id == spr_dbone)
return spr_dbone_ja;
if (sprite_id == spr_defusebox)
return spr_defusebox_ja;
if (sprite_id == spr_fightbt)
return spr_fightbt_ja;
if (sprite_id == spr_fightbt_center)
return spr_fightbt_center_ja;
if (sprite_id == spr_fightbt_hollow)
return spr_fightbt_hollow_ja;
if (sprite_id == spr_itembt)
return spr_itembt_ja;
if (sprite_id == spr_itembt_hollow)
return spr_itembt_hollow_ja;
if (sprite_id == spr_killervisage)
return spr_killervisage_ja;
if (sprite_id == spr_librarysign)
return spr_librarysign_ja;
if (sprite_id == spr_mercybutton_normal)
return spr_mercybutton_normal_ja;
if (sprite_id == spr_mercybutton_shatter)
return spr_mercybutton_shatter_ja;
if (sprite_id == spr_mettatonb_behind)
return spr_mettatonb_behind_ja;
if (sprite_id == spr_mettatonb_behind_on)
return spr_mettatonb_behind_on_ja;
if (sprite_id == spr_oolbone)
return spr_oolbone_ja;
if (sprite_id == spr_out_to_lunch_sign)
return spr_out_to_lunch_sign_ja;
if (sprite_id == spr_punchcard)
return spr_punchcard_ja;
if (sprite_id == spr_pxquit)
return spr_pxquit_ja;
if (sprite_id == spr_savebt)
return spr_savebt_ja;
if (sprite_id == spr_snowsans)
return spr_snowsans_ja;
if (sprite_id == spr_sparebt)
return spr_sparebt_ja;
if (sprite_id == spr_sparebt_bandage)
return spr_sparebt_bandage_ja;
if (sprite_id == spr_starcheckeredit)
return spr_starcheckeredit_ja;
if (sprite_id == spr_talkbt)
return spr_talkbt_ja;
if (sprite_id == spr_talkbt_hollow)
return spr_talkbt_hollow_ja;
if (sprite_id == spr_udebone)
return spr_udebone_ja;
if (sprite_id == spr_wordsearch)
return spr_wordsearch_ja;
}
return sprite_id; (spr_talkbt); |
258 |
obj_borderparent.visible = true; |
259 |
instance_create(0, 0, obj_orangeparticlegen); |
260 |
instance_create(0, 0, obj_purplegradienter); |
261 |
obj_heart.visible = true; |
262 |
global.mnfight = 3; |
263 |
global.myfight = -1; |
264 |
global.bmenuno = 0; |
265 |
global.monster[0] = 0; |
266 |
global.monster[1] = 0; |
267 |
global.monster[2] = 0; |
268 |
global.monstertype[0] = 52Asgore; |
269 |
global.monsterinstance[0] = instance_create(208, 8, obj_asgoreb); |
270 |
global.msc = 0; |
271 |
global.msg[0] = * ASGORE attacks!scr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asgore_finalintro_496") ; |
272 |
draw_set_alpha(1); |
273 |
instance_destroy(); |
274 |
} |
275 |
} |
276 |
draw_set_alpha(1); |
277 |
} |
278 |
if (con == -120 && instance_exists(OBJ_WRITER) == 0) |
279 |
{ |
280 |
with (obj_blconsm) |
281 |
instance_destroy(); |
282 |
global.stretch = 1; |
283 |
sl = instance_create(320, 120, obj_slice); |
284 |
sl.depth = -90000; |
285 |
con = -119; |
286 |
alarm[4] = 25; |
287 |
} |
288 |
if (con == -118) |
289 |
{ |
290 |
snd_play(snd_damage); |
291 |
asg = instance_create(128, 46, obj_asgore_lastcutscene); |
292 |
global.faceemotion = 3; |
293 |
asg.murder = 1; |
294 |
instance_destroy(); |
295 |
} |