| 1 |
if (global.mnfight == 3) |
| 2 |
attacked = 0; |
| 3 |
if (alarm[5] > 0) |
| 4 |
{ |
| 5 |
if (global.monster[0] == 1) |
| 6 |
{ |
| 7 |
if (global.monsterinstance[0].alarm[5] > alarm[5]) |
| 8 |
alarm[5] = global.monsterinstance[0].alarm[5]; |
| 9 |
} |
| 10 |
if (global.monster[1] == 1) |
| 11 |
{ |
| 12 |
if (global.monsterinstance[1].alarm[5] > alarm[5]) |
| 13 |
alarm[5] = global.monsterinstance[1].alarm[5]; |
| 14 |
} |
| 15 |
if (global.monster[2] == 1) |
| 16 |
{ |
| 17 |
if (global.monsterinstance[2].alarm[5] > alarm[5]) |
| 18 |
alarm[5] = global.monsterinstance[2].alarm[5]; |
| 19 |
} |
| 20 |
} |
| 21 |
if (global.mnfight == 1) |
| 22 |
{ |
| 23 |
if (talked == 0) |
| 24 |
{ |
| 25 |
alarm[5] = 110; |
| 26 |
alarm[6] = 1;gml_Object_obj_tsunderplane_Alarm_6.gmlblcon = instance_create(x + 155, y - 25, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = ;
if (mycommand >= 25)
global.msg[0] = ;
if (mycommand >= 50)
global.msg[0] = ;
if (mycommand >= 75)
global.msg[0] = ;
if (graze >= 5)
{
if (mycommand >= 0 && mycommand < 50)
global.msg[0] = ;
if (mycommand >= 50)
global.msg[0] = ;
}
if (whatiheard == 1)
{
global.msg[0] = ;
if (graze >= 5)
global.msg[0] = ;
}
if (whatiheard == 3)
{
global.msg[0] = ;
if (graze >= 5)
global.msg[0] = ;
}
if (whatiheard == 9)
{
global.msg[0] = No way! Why would I like YOU ;
if (graze >= 5)
global.msg[0] = ;
}
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 17;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8; |
| 27 |
talked = 1; |
| 28 |
global.heard = 0; |
| 29 |
} |
| 30 |
} |
| 31 |
if (control_check_pressed(0)) |
| 32 |
{ |
| 33 |
if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0)gml_Object_obj_tsunderplane_Alarm_6.gmlblcon = instance_create(x + 155, y - 25, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = ;
if (mycommand >= 25)
global.msg[0] = ;
if (mycommand >= 50)
global.msg[0] = ;
if (mycommand >= 75)
global.msg[0] = ;
if (graze >= 5)
{
if (mycommand >= 0 && mycommand < 50)
global.msg[0] = ;
if (mycommand >= 50)
global.msg[0] = ;
}
if (whatiheard == 1)
{
global.msg[0] = ;
if (graze >= 5)
global.msg[0] = ;
}
if (whatiheard == 3)
{
global.msg[0] = ;
if (graze >= 5)
global.msg[0] = ;
}
if (whatiheard == 9)
{
global.msg[0] = No way! Why would I like YOU ;
if (graze >= 5)
global.msg[0] = ;
}
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 17;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8; |
| 34 |
alarm[5] = 2; |
| 35 |
} |
| 36 |
if (global.hurtanim[myself] == 1) |
| 37 |
{ |
| 38 |
shudder = 8; |
| 39 |
alarm[3] = global.damagetimer;gml_Object_obj_tsunderplane_Alarm_3.gmlif (mypart1.hurt != 1)
{
dmgwriter = instance_create(x, y + 10, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
mypart1.hurt = 1;
snd_play(snd_damage);
alarm[8] = 11;
}
if (sha == 0)
sha = x;
x = sha + shudder;
if (shudder < 0)
shudder = -(shudder + 1);
else
shudder = -shudder;
if (shudder == 0)
{
sha = 0;
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2; |
| 40 |
global.hurtanim[myself] = 3; |
| 41 |
} |
| 42 |
if (global.hurtanim[myself] == 2) |
| 43 |
{ |
| 44 |
global.monsterhp[myself] -= takedamage; |
| 45 |
with (dmgwriter) |
| 46 |
alarm[2] |
| 47 |
if (global.monsterhp[myself] >= 1) |
| 48 |
{ |
| 49 |
global.hurtanim[myself] = 0; |
| 50 |
mypart1.hurt = 0; |
| 51 |
global.myfight = 0; |
| 52 |
global.mnfight = 1; |
| 53 |
} |
| 54 |
else |
| 55 |
{ |
| 56 |
global.myfight = 0; |
| 57 |
global.mnfight = 1; |
| 58 |
killed = 1; |
| 59 |
instance_destroy(); |
| 60 |
} |
| 61 |
} |
| 62 |
if (global.hurtanim[myself] == 5) |
| 63 |
{ |
| 64 |
global.damage = 0; |
| 65 |
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter); |
| 66 |
with (obj_dmgwriter) |
| 67 |
alarm[2] |
| 68 |
global.myfight = 0; |
| 69 |
global.mnfight = 1; |
| 70 |
global.hurtanim[myself] = 0; |
| 71 |
} |
| 72 |
if (global.mnfight == 2) |
| 73 |
{ |
| 74 |
if (attacked == 0) |
| 75 |
{ |
| 76 |
pop = scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; (); |
| 77 |
global.turntimer = 160; |
| 78 |
global.firingrate = 20; |
| 79 |
if (pop == 3) |
| 80 |
global.firingrate = global.firingrate * 2.4; |
| 81 |
if (pop == 2) |
| 82 |
global.firingrate = global.firingrate * 1.7; |
| 83 |
num = 0; |
| 84 |
if (mycommand >= 0 && mycommand <= 50) |
| 85 |
num = 1; |
| 86 |
if (whatiheard == 1) |
| 87 |
num = 1; |
| 88 |
if (num == 1) |
| 89 |
{ |
| 90 |
global.turntimer = 160; |
| 91 |
gen = instance_create(x, y, obj_vertplanegen); |
| 92 |
gen.dmg = global.monsteratk[myself]; |
| 93 |
if (whatiheard == 1) |
| 94 |
gen.green = 1; |
| 95 |
} |
| 96 |
else |
| 97 |
{ |
| 98 |
global.firingrate = 30; |
| 99 |
if (pop == 3) |
| 100 |
global.firingrate = global.firingrate * 2.2; |
| 101 |
if (pop == 2) |
| 102 |
global.firingrate = global.firingrate * 1.5; |
| 103 |
gen = instance_create(x, y, obj_incendiarygen); |
| 104 |
gen.dmg = global.monsteratk[myself]; |
| 105 |
gen.bullettype = 0; |
| 106 |
} |
| 107 |
gen.myself = myself; |
| 108 |
if (mycommand >= 0) |
| 109 |
global.msg[0] = * Tsunderplane looks over,Delay 11 then turns up its nose.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_tsunderplane_465") ; |
| 110 |
if (mycommand >= 25) |
| 111 |
global.msg[0] = * Tsunderplane shakes its nose dimissively at you.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_tsunderplane_466") ; |
| 112 |
if (mycommand >= 50) |
| 113 |
global.msg[0] = * Tsunderplane "accidentally" bumps you with its wing.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_tsunderplane_467") ; |
| 114 |
if (mycommand >= 75) |
| 115 |
global.msg[0] = * Tsunderplane gives you a condescending barrel roll.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_tsunderplane_468") ; |
| 116 |
if (mycommand >= 90) |
| 117 |
global.msg[0] = * Smells like an airport perfume counter.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_tsunderplane_469") ; |
| 118 |
if (mercymod > 60) |
| 119 |
global.msg[0] = * Tsunderplane is looking away shyly.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_tsunderplane_470") ; |
| 120 |
if (global.monsterhp[myself] < 30) |
| 121 |
global.msg[0] = * Tsunderplane's body is smoking.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_tsunderplane_471") ; |
| 122 |
attacked = 1; |
| 123 |
} |
| 124 |
whatiheard = -1; |
| 125 |
} |
| 126 |
if (global.myfight == 2) |
| 127 |
{ |
| 128 |
if (whatiheard != -1) |
| 129 |
{ |
| 130 |
if (global.heard == 0) |
| 131 |
{ |
| 132 |
if (whatiheard == 0) |
| 133 |
{ |
| 134 |
global.msc = 0; |
| 135 |
global.msg[0] = * TSUNDERPLANE - ATK 25 DEF 26 * Seems mean,Delay 11 but does it secretly like you?Wait for input^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_tsunderplane_490") ; |
| 136 |
OBJ_WRITER.halt = 3; |
| 137 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 138 |
with (iii) |
| 139 |
halt = 0; |
| 140 |
whatiheard = 9; |
| 141 |
} |
| 142 |
if (whatiheard == 3) |
| 143 |
{ |
| 144 |
global.msc = 0; |
| 145 |
global.msg[0] = * You tell Tsunderplane it has an impressive wingspan.Wait for input^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_tsunderplane_499") ; |
| 146 |
g = floor(random(5)); |
| 147 |
if (g == 0) |
| 148 |
global.msg[0] = * You tell Tsunderplane it has an impressive wingspan.Wait for input^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_tsunderplane_501") ; |
| 149 |
if (g == 1) |
| 150 |
global.msg[0] = * You tell Tsunderplane it has nice turbines.Wait for input^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_tsunderplane_502") ; |
| 151 |
if (g == 2) |
| 152 |
global.msg[0] = * You tell Tsunderplane it has a powerful rudder.Wait for input^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_tsunderplane_503") ; |
| 153 |
if (g == 3) |
| 154 |
global.msg[0] = * You tell Tsunderplane that you like its taste in movies and books.Wait for input^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_tsunderplane_504") ; |
| 155 |
if (g == 4) |
| 156 |
global.msg[0] = * You tell Tsunderplane that it has cute winglets.Wait for input^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_tsunderplane_505") ; |
| 157 |
OBJ_WRITER.halt = 3; |
| 158 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 159 |
with (iii) |
| 160 |
halt = 0; |
| 161 |
} |
| 162 |
if (whatiheard == 1) |
| 163 |
{ |
| 164 |
global.msc = 0; |
| 165 |
global.msg[0] = * You get close to Tsunderplane.Delay 11 * But not too close.Wait for input^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_tsunderplane_515") ; |
| 166 |
OBJ_WRITER.halt = 3; |
| 167 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 168 |
with (iii) |
| 169 |
halt = 0; |
| 170 |
} |
| 171 |
global.heard = 1; |
| 172 |
} |
| 173 |
} |
| 174 |
} |
| 175 |
if (global.myfight == 4) |
| 176 |
{ |
| 177 |
if (global.mercyuse == 0) |
| 178 |
{ |
| 179 |
script_execute(scr_mercystandard); |
| 180 |
if (mercy < 0) |
| 181 |
instance_destroy(); |
| 182 |
} |
| 183 |
} |
| 184 |
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0) |
| 185 |
{ |
| 186 |
script_execute(scr_mercystandard); |
| 187 |
if (mercy < 0) |
| 188 |
instance_destroy(); |
| 189 |
} |