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] = 75; |
9 |
alarm[6] = 1;gml_Object_obj_icecube_Alarm_6.gmlblcon = instance_create((x + sprite_width) - 8, ystart + 50, obj_blconsm);
mycommand = round(random(100));
gg = floor(random(3));
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = ;
if (mycommand >= 25 && mycommand < 50)
global.msg[0] = ;
if (mycommand >= 50 && mycommand < 75)
global.msg[0] = ;
if (mycommand >= 75 && mycommand <= 101)
global.msg[0] = ;
if (happy == 1)
{
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = ;
if (mycommand >= 25 && mycommand < 50)
global.msg[0] = ;
if (mycommand >= 50 && mycommand < 75)
global.msg[0] = ;
if (mycommand >= 75 && mycommand <= 101)
global.msg[0] = I wanted you to see me as cool. ;
}
if (whatiheard == 20)
{
if (gg == 0)
global.msg[0] = Haha! That was ACTUALLY funny! ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = That's the best one in a while! ;
mercymod = 200;
}
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_icecube_Alarm_6.gmlblcon = instance_create((x + sprite_width) - 8, ystart + 50, obj_blconsm);
mycommand = round(random(100));
gg = floor(random(3));
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = ;
if (mycommand >= 25 && mycommand < 50)
global.msg[0] = ;
if (mycommand >= 50 && mycommand < 75)
global.msg[0] = ;
if (mycommand >= 75 && mycommand <= 101)
global.msg[0] = ;
if (happy == 1)
{
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = ;
if (mycommand >= 25 && mycommand < 50)
global.msg[0] = ;
if (mycommand >= 50 && mycommand < 75)
global.msg[0] = ;
if (mycommand >= 75 && mycommand <= 101)
global.msg[0] = I wanted you to see me as cool. ;
}
if (whatiheard == 20)
{
if (gg == 0)
global.msg[0] = Haha! That was ACTUALLY funny! ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = That's the best one in a while! ;
mercymod = 200;
}
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_icecube_Alarm_3.gmlif (sprite_index != hurtgfx)
{
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y + 80, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
sprite_index = hurtgfx;
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 = normalgfx; |
34 |
image_index = 0; |
35 |
global.myfight = 0; |
36 |
global.mnfight = 1; |
37 |
} |
38 |
else |
39 |
{ |
40 |
global.myfight = 0; |
41 |
global.mnfight = 1; |
42 |
killed = 1; |
43 |
instance_destroy(); |
44 |
} |
45 |
} |
46 |
if (global.hurtanim[myself] == 5) |
47 |
{ |
48 |
global.damage = 0; |
49 |
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter); |
50 |
with (obj_dmgwriter) |
51 |
alarm[2] |
52 |
global.myfight = 0; |
53 |
global.mnfight = 1; |
54 |
global.hurtanim[myself] = 0; |
55 |
} |
56 |
if (global.mnfight == 2) |
57 |
{ |
58 |
if (attacked == 0) |
59 |
{ |
60 |
if (scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; () == 1) |
61 |
global.turntimer = 5; |
62 |
if (mycommand < 96) |
63 |
{ |
64 |
gen = instance_create(0, global.idealborder[2] + ((global.idealborder[3] - global.idealborder[2] - 40) / 2), obj_iceteeth); |
65 |
gen.toothdist = 500; |
66 |
} |
67 |
if (mycommand >= 96) |
68 |
{ |
69 |
global.firingrate = 15; |
70 |
if ((global.monster[0] + global.monster[1] + global.monster[2]) == 2) |
71 |
global.firingrate = 25; |
72 |
if ((global.monster[0] + global.monster[1] + global.monster[2]) == 3) |
73 |
global.firingrate = 35; |
74 |
gen = instance_create(0, 0, obj_1sidegen); |
75 |
gen.bullettype = 11; |
76 |
} |
77 |
gen.myself = myself; |
78 |
gen.dmg = global.monsteratk[myself]; |
79 |
if (mycommand >= 0) |
80 |
global.msg[0] = * 'Ice Cap' is no more.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_icecube_377") ; |
81 |
if (mycommand >= 90) |
82 |
global.msg[0] = * It smells like frozen despair.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_icecube_378") ; |
83 |
if (happy == 1) |
84 |
global.msg[0] = * Ice doesn't mind its identity.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_icecube_379") ; |
85 |
if (global.monsterhp[myself] < (global.monstermaxhp[myself] / 3)) |
86 |
global.msg[0] = * It's melting.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_icecube_380") ; |
87 |
attacked = 1; |
88 |
} |
89 |
} |
90 |
if (whatiheard == 1 && instance_exists(OBJ_WRITER) == 0) |
91 |
{ |
92 |
script_execute(scr_mercystandard); |
93 |
if (mercy < 0) |
94 |
{ |
95 |
killed = 1; |
96 |
instance_destroy(); |
97 |
} |
98 |
} |
99 |
if (global.myfight == 2) |
100 |
{ |
101 |
if (whatiheard != -1) |
102 |
{ |
103 |
if (global.heard == 0) |
104 |
{ |
105 |
if (whatiheard == 0) |
106 |
{ |
107 |
global.msc = 0; |
108 |
global.msg[0] = * ICE - ATK 1 DEF 0 * Without its cap...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_icecube_406") ; |
109 |
OBJ_WRITER.halt = 3; |
110 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
111 |
with (iii) |
112 |
halt = 0; |
113 |
} |
114 |
if (whatiheard == 3) |
115 |
{ |
116 |
global.msc = 0; |
117 |
global.msg[0] = * You inform Ice Cap that it still looks fine...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_icecube_414") ; |
118 |
global.flag[137 spared_icecap] = 1; |
119 |
OBJ_WRITER.halt = 3; |
120 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
121 |
with (iii) |
122 |
halt = 0; |
123 |
happy = 1; |
124 |
} |
125 |
global.heard = 1; |
126 |
} |
127 |
} |
128 |
} |
129 |
if (global.myfight == 4) |
130 |
{ |
131 |
if (global.mercyuse == 0) |
132 |
{ |
133 |
script_execute(scr_mercystandard); |
134 |
if (mercy < 0) |
135 |
instance_destroy(); |
136 |
} |
137 |
} |