1 |
if (active == 1) |
2 |
timer += 1; |
3 |
if (timer >= 5 && timer <= 35) |
4 |
{ |
5 |
if (bodyy < 13) |
6 |
bodyy += 0.5; |
7 |
} |
8 |
if (timer >= 80) |
9 |
{ |
10 |
leg = 1; |
11 |
if (bodyy > -15) |
12 |
bodyy -= 0.5; |
13 |
} |
14 |
if (timer >= 120 && timer <= 126) |
15 |
legrot_l -= 8; |
16 |
if (timer >= 132 && timer <= 138) |
17 |
legrot_l += 8; |
18 |
if (timer >= 146 && timer <= 152) |
19 |
legrot_r += 8; |
20 |
if (timer >= 158 && timer <= 164) |
21 |
legrot_r -= 8; |
22 |
if (timer == 170) |
23 |
timer = 119; |
24 |
main_timer += 1; |
25 |
if (main_timer >= 40 && main_timer <= 160) |
26 |
{ |
27 |
tile_layer_shift(900, -1, 0); |
28 |
tile_layer_shift(890, 1, 0); |
29 |
} |
30 |
if (main_timer == 180) |
31 |
active = 1; |
32 |
shyren.y += sin(siner / 4); |
33 |
if (main_timer < 0) |
34 |
{ |
35 |
if (view_yview[0] > 0) |
36 |
view_yview[0] -= 4; |
37 |
else |
38 |
view_yview[0] = 0; |
39 |
} |
40 |
if (main_timer == 90) |
41 |
{ |
42 |
t1 = instance_create(20, 160, obj_creditsword); |
43 |
t1.text = METTATONscr_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; ("castroll_name_mettaton") ; |
44 |
if (global.language == "ja") |
45 |
t1.text_xofs = -3; |
46 |
t1.text2 = by Tobyscr_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; ("castroll_by_toby") ; |
47 |
} |
48 |
if (main_timer == 250) |
49 |
t1.fader = 1; |
50 |
if (main_timer == 260) |
51 |
{ |
52 |
var xx = 20; |
53 |
if (global.language == "ja") |
54 |
xx = 5; |
55 |
t2 = instance_create(xx, 160, obj_creditsword); |
56 |
t2.text = SPECIAL INSPIRATIONscr_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; ("castroll_special_inspiration") ; |
57 |
t2.text2 = Bob Sparker, Sarah, and JN Wiedlescr_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; ("castroll_credit_mettaton") ; |
58 |
} |
59 |
if (main_timer == 430) |
60 |
t2.fader = 1; |
61 |
if (main_timer > 450) |
62 |
{ |
63 |
view_yview[0] += 4; |
64 |
if (view_yview[0] > 240) |
65 |
{ |
66 |
global.cast_type = 3; |
67 |
room_goto(room_end_castroll Pacifist credits [Dogchecked]); |
68 |
} |
69 |
} |