1 |
if (instance_exists(blt_sizebone) == 0 && global.invc < 1) |
2 |
{ |
3 |
global.msg[0] = YOU'RE BLUE 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_blueattackgen_90") ; |
4 |
global.msg[1] = THAT'S MY ATTACK!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_blueattackgen_91") ; |
5 |
global.msg[2] = NYEH HEH HEH HEH HEH HEH HEH HEH HEH!!!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_blueattackgen_92") ; |
6 |
global.typer = 22; |
7 |
blcon = instance_create(x + 145, y + 52, obj_blconwdflowey); |
8 |
var blcon_textofs = 15; |
9 |
if (global.language == "ja") |
10 |
blcon_textofs += 11; |
11 |
blconwd = instance_create(blcon.x + blcon_textofs, blcon.y + 10, OBJ_NOMSCWRITER); |
12 |
global.batmusic = global.batmusic2; |
13 |
alarm[6] = 2;gml_Object_obj_blueattackgen_Alarm_6.gmlif (instance_exists(OBJ_WRITER) == 0)
{
obj_papyrusboss.truefight = 1;
with (blcon)
instance_destroy();
caster_loop(global.batmusic, 0.8, 1);
global.turntimer = 2;
instance_destroy();
global.msg[0] = ;
obj_papyrusboss.dontcancel = 0;
exit;
}
alarm[6] = 2; |
14 |
obj_papyrusboss.dontcancel = 1; |
15 |
} |
16 |
else |
17 |
{ |
18 |
alarm[5] = 2;gml_Object_obj_blueattackgen_Alarm_5.gmlif (instance_exists(blt_sizebone) == 0 && global.invc < 1)
{
global.msg[0] = YOU'RE BLUE NOW.Wait for input ;
global.msg[1] = THAT'S MY ATTACK!Wait for input ;
global.msg[2] = NYEH HEH HEH HEH HEH HEH HEH HEH HEH!!!Wait for inputClose MessageClose Message ;
global.typer = 22;
blcon = instance_create(x + 145, y + 52, obj_blconwdflowey);
var blcon_textofs = 15;
if (global.language == "ja")
blcon_textofs += 11;
blconwd = instance_create(blcon.x + blcon_textofs, blcon.y + 10, OBJ_NOMSCWRITER);
global.batmusic = global.batmusic2;
alarm[6] = 2;
obj_papyrusboss.dontcancel = 1;
}
else
{
alarm[5] = 2;
} |
19 |
} |