1 |
if (global.mnfight == 3) |
2 |
attacked = 0; |
3 |
scr_blconmatchscr_blconmatchif (alarm[5] > 0)
{
if (global.monster[0] == 1)
{
if (global.monsterinstance[0].alarm[5] >alarm[5]
alarm[5]
}
if (global.monster[1] == 1)
{
if (global.monsterinstance[1].alarm[5] >alarm[5]
alarm[5]
}
if (global.monster[2] == 1)
{
if (global.monsterinstance[2].alarm[5] >alarm[5]
alarm[5]
}
} (); |
4 |
if (global.mnfight == 1) |
5 |
{ |
6 |
if (talked == 0) |
7 |
{ |
8 |
alarm[5] = 60; |
9 |
alarm[6] = 1;gml_Object_obj_migosp_Alarm_6.gmlif (((global.monster[0] + global.monster[1] + global.monster[2]) - global.monster[myself]) == 0)
mercymod = 100;
if (mercymod > 0)
{
sprite_index = spr_migosphappy;
image_speed = 0.1;
}
blcon = instance_create((x + sprite_width) - 8, ystart, obj_blconsm);
mycommand = round(random(100));
if (mercymod < 0)
{
if (mycommand >= 0 && mycommand < 20)
global.msg[0] = ;
if (mycommand >= 20 && mycommand < 40)
global.msg[0] = ;
if (mycommand >= 40 && mycommand < 60)
global.msg[0] = ;
if (mycommand >= 60 && mycommand <= 80)
global.msg[0] = ;
if (mycommand >= 80 && mycommand <= 100)
global.msg[0] = ;
if (whatiheard == 1 || whatiheard == 3)
global.msg[0] = ;
}
if (mercymod > 0)
{
if (mycommand >= 0 && mycommand < 20)
global.msg[0] = ;
if (mycommand >= 20 && mycommand < 40)
global.msg[0] = ;
if (mycommand >= 40 && mycommand < 60)
global.msg[0] = ;
if (mycommand >= 60 && mycommand <= 80)
global.msg[0] = ;
if (mycommand >= 80 && mycommand <= 100)
global.msg[0] = ;
if (whatiheard == 1 || whatiheard == 3)
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 = 3;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8; |
10 |
talked = 1; |
11 |
global.heard = 0; |
12 |
} |
13 |
} |
14 |
if (control_check_pressed(0)) |
15 |
{ |
16 |
if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0)gml_Object_obj_migosp_Alarm_6.gmlif (((global.monster[0] + global.monster[1] + global.monster[2]) - global.monster[myself]) == 0)
mercymod = 100;
if (mercymod > 0)
{
sprite_index = spr_migosphappy;
image_speed = 0.1;
}
blcon = instance_create((x + sprite_width) - 8, ystart, obj_blconsm);
mycommand = round(random(100));
if (mercymod < 0)
{
if (mycommand >= 0 && mycommand < 20)
global.msg[0] = ;
if (mycommand >= 20 && mycommand < 40)
global.msg[0] = ;
if (mycommand >= 40 && mycommand < 60)
global.msg[0] = ;
if (mycommand >= 60 && mycommand <= 80)
global.msg[0] = ;
if (mycommand >= 80 && mycommand <= 100)
global.msg[0] = ;
if (whatiheard == 1 || whatiheard == 3)
global.msg[0] = ;
}
if (mercymod > 0)
{
if (mycommand >= 0 && mycommand < 20)
global.msg[0] = ;
if (mycommand >= 20 && mycommand < 40)
global.msg[0] = ;
if (mycommand >= 40 && mycommand < 60)
global.msg[0] = ;
if (mycommand >= 60 && mycommand <= 80)
global.msg[0] = ;
if (mycommand >= 80 && mycommand <= 100)
global.msg[0] = ;
if (whatiheard == 1 || whatiheard == 3)
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 = 3;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8; |
17 |
alarm[5] = 2; |
18 |
} |
19 |
if (global.hurtanim[myself] == 1) |
20 |
{ |
21 |
shudder = 16; |
22 |
alarm[3] = global.damagetimer;gml_Object_obj_migosp_Alarm_3.gmlif (sprite_index != spr_migosphurt)
{
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y + 80, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
sprite_index = spr_migosphurt;
snd_play(hurtsound);
}
x += shudder;
if (shudder < 0)
shudder = -(shudder + 2);
else
shudder = -shudder;
if (shudder == 0)
{
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2; |
23 |
global.hurtanim[myself] = 3; |
24 |
} |
25 |
if (global.hurtanim[myself] == 2) |
26 |
{ |
27 |
global.monsterhp[myself] -= takedamage; |
28 |
with (dmgwriter) |
29 |
alarm[2] |
30 |
if (global.monsterhp[myself] >= 1) |
31 |
{ |
32 |
global.hurtanim[myself] = 0; |
33 |
sprite_index = spr_migosp; |
34 |
if (mercymod > 0) |
35 |
sprite_index = spr_migosphappy; |
36 |
image_index = 0; |
37 |
global.myfight = 0; |
38 |
global.mnfight = 1; |
39 |
} |
40 |
else |
41 |
{ |
42 |
global.myfight = 0; |
43 |
global.mnfight = 1; |
44 |
killed = 1; |
45 |
instance_destroy(); |
46 |
} |
47 |
} |
48 |
if (global.hurtanim[myself] == 5) |
49 |
{ |
50 |
global.damage = 0; |
51 |
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter); |
52 |
with (obj_dmgwriter) |
53 |
alarm[2] |
54 |
global.myfight = 0; |
55 |
global.mnfight = 1; |
56 |
global.hurtanim[myself] = 0; |
57 |
} |
58 |
if (global.mnfight == 2) |
59 |
{ |
60 |
if (attacked == 0) |
61 |
{ |
62 |
global.turntimer = 110; |
63 |
global.firingrate = 6; |
64 |
if ((global.monster[0] + global.monster[1] + global.monster[2]) == 3) |
65 |
mycommand = 99; |
66 |
if (mercymod < 0) |
67 |
{ |
68 |
if (mycommand < 5) |
69 |
{ |
70 |
global.firingrate = 15; |
71 |
gen = instance_create(0, 0, obj_1sidegen); |
72 |
gen.bullettype = 1; |
73 |
} |
74 |
if (mycommand >= 5) |
75 |
{ |
76 |
global.firingrate = 7; |
77 |
gen = instance_create(0, 0, obj_1sidegen); |
78 |
gen.bullettype = 4; |
79 |
} |
80 |
} |
81 |
else |
82 |
{ |
83 |
gen = instance_create(0, 0, blt_roachdance); |
84 |
} |
85 |
gen.myself = myself; |
86 |
gen.dmg = global.monsteratk[myself]; |
87 |
if (mycommand >= 0) |
88 |
global.msg[0] = * Migosp skitters around.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_migosp_441") ; |
89 |
if (mycommand >= 30) |
90 |
global.msg[0] = * Migosp is knitting its brow.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_migosp_442") ; |
91 |
if (mycommand >= 70) |
92 |
global.msg[0] = * Migosp is whispering to the others.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_migosp_443") ; |
93 |
if (mycommand >= 90) |
94 |
global.msg[0] = * It's starting to smell like a roach motel.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_migosp_444") ; |
95 |
if (mercymod > 0) |
96 |
global.msg[0] = * Migosp doesn't have a care in the world.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_migosp_445") ; |
97 |
if (global.monsterhp[myself] < (global.monstermaxhp[myself] / 3)) |
98 |
global.msg[0] = * Migosp refuses to give up.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_migosp_446") ; |
99 |
attacked = 1; |
100 |
} |
101 |
} |
102 |
if (global.myfight == 2) |
103 |
{ |
104 |
if (whatiheard != -1) |
105 |
{ |
106 |
if (global.heard == 0) |
107 |
{ |
108 |
if (whatiheard == 0) |
109 |
{ |
110 |
global.msc = 0; |
111 |
global.msg[0] = * MIGOSP - ATK 7 DEF 5 * It seems evil,Delay 11 but it's just with the wrong crowd...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_migosp_468") ; |
112 |
OBJ_WRITER.halt = 3; |
113 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
114 |
with (iii) |
115 |
halt = 0; |
116 |
} |
117 |
if (whatiheard == 3) |
118 |
{ |
119 |
global.flag[135 spared_migosp] = 1; |
120 |
global.myfight = 0; |
121 |
global.mnfight = 1; |
122 |
} |
123 |
global.heard = 1; |
124 |
} |
125 |
} |
126 |
} |
127 |
if (global.myfight == 4) |
128 |
{ |
129 |
if (global.mercyuse == 0) |
130 |
{ |
131 |
script_execute(scr_mercystandard); |
132 |
if (mercy < 0) |
133 |
instance_destroy(); |
134 |
} |
135 |
} |