|
1
|
tor = instance_create(188, 170, obj_npc_marker);
|
|
2
|
tor.sprite_index = spr_toriel_school;
|
|
3
|
tor.image_speed = 0;
|
|
4
|
tor.visible = true;
|
|
5
|
asg = instance_create(240, 365, obj_npc_marker);
|
|
6
|
asg.sprite_index = spr_asgore_shears;
|
|
7
|
asg.image_speed = 0.1;
|
|
8
|
asg.visible = true;
|
|
9
|
alarm[5] = 10; gml_Object_obj_endschoolanim_Alarm_5.gml
alarm[5] = 20;
instance_create(((asg.x + 57) - random(3)) + random(3), ((asg.y + 11) - random(3)) + random(3), obj_tinyleaf);
instance_create(((asg.x + 57) - random(3)) + random(3), ((asg.y + 11) - random(3)) + random(3), obj_tinyleaf);
|
|
10
|
image_speed = 0.2;
|
|
11
|
hspeed = 6;
|
|
12
|
con = 0;
|
|
13
|
timer = 0;
|
|
14
|
x = -700;
|
|
15
|
view_xview[0] = -180;
|
|
16
|
td = 0;
|
|
17
|
var text_x = 15;
|
|
18
|
if (global.language == "ja")
|
|
19
|
text_x = -2;
|
|
20
|
t3 = instance_create(text_x, 140, obj_creditsword);
|
|
21
|
t3.text = TORIELscr_gettextscr_gettext
var 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; ("castroll_name_toriel") ;
|
|
22
|
if (global.language == "ja")
|
|
23
|
t3.text_xofs = -3;
|
|
24
|
t3.text2 = by Tobyscr_gettextscr_gettext
var 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; ("castroll_by_toby") ;
|
|
25
|
scr_loadendsongscr_loadendsong
if (!global.endsong_loaded)
{
global.endsong_loaded = 1;
global.endsong[0] = caster_load("music/end/cast_1.ogg");
global.endsong[1] = caster_load("music/end/cast_2.ogg");
global.endsong[2] = caster_load("music/end/cast_3.ogg");
global.endsong[3] = caster_load("music/end/cast_4.ogg");
global.endsong[5] = caster_load("music/end/cast_5.ogg");
global.endsong[6] = caster_load("music/end/cast_5.ogg");
global.endsong[7] = caster_load("music/end/cast_6.ogg");
global.endsong[8] = caster_load("music/end/cast_7.ogg");
} ();
|
|
26
|
caster_stop(global.endsong[5]);
|
|
27
|
caster_stop(global.endsong[6]);
|
|
28
|
caster_play(global.endsong[7], 1, 1);
|
|
29
|
vol = 0.9;
|
|
30
|
global.inbattle = 0;
|