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_icecap_Alarm_6.gmlblcon = instance_create((x + sprite_width) - 8, ystart, obj_blconsm);
mycommand = round(random(100));
gg = floor(random(3));
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)
{
if (ignore > 0)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = Better a hatter than a HATER. ;
ignore = 2;
mercymod = 300;
}
if (ignore == 0)
{
if (gg == 0 || gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
ignore = 1;
}
}
if (whatiheard == 3)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = My hat's too loud for me to hear you. ;
}
if (whatiheard == 4)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1 || gg == 2)
global.msg[0] = ;
}
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_icecap_Alarm_6.gmlblcon = instance_create((x + sprite_width) - 8, ystart, obj_blconsm);
mycommand = round(random(100));
gg = floor(random(3));
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)
{
if (ignore > 0)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = Better a hatter than a HATER. ;
ignore = 2;
mercymod = 300;
}
if (ignore == 0)
{
if (gg == 0 || gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
ignore = 1;
}
}
if (whatiheard == 3)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = My hat's too loud for me to hear you. ;
}
if (whatiheard == 4)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1 || gg == 2)
global.msg[0] = ;
}
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_icecap_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 |
pop = scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; (); |
61 |
if (instance_exists(obj_jerry)) |
62 |
{ |
63 |
if (obj_jerry.ditch == 0) |
64 |
pop -= 1; |
65 |
} |
66 |
global.turntimer = 150; |
67 |
if (mycommand < 50) |
68 |
{ |
69 |
if (pop == 1) |
70 |
global.turntimer = 100; |
71 |
gen = instance_create(0, global.idealborder[2] + ((global.idealborder[3] - global.idealborder[2] - 40) / 2), obj_iceteeth); |
72 |
} |
73 |
if (mycommand >= 50) |
74 |
{ |
75 |
pop = scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; (); |
76 |
if (instance_exists(obj_jerry)) |
77 |
{ |
78 |
if (obj_jerry.ditch == 0) |
79 |
pop -= 1; |
80 |
} |
81 |
global.firingrate = 33; |
82 |
if (pop == 2) |
83 |
global.firingrate = 45; |
84 |
if (pop == 3) |
85 |
global.firingrate = 60; |
86 |
gen = instance_create(0, 0, obj_1sidegen); |
87 |
gen.bullettype = 11; |
88 |
} |
89 |
gen.myself = myself; |
90 |
gen.dmg = global.monsteratk[myself]; |
91 |
if (mycommand >= 0) |
92 |
global.msg[0] = * It's snowing dandruff.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_icecap_374") ; |
93 |
if (mycommand >= 25) |
94 |
global.msg[0] = * Ice Cap also wants a hat for 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_icecap_375") ; |
95 |
if (mycommand >= 50) |
96 |
global.msg[0] = * Ice Cap makes sure its hat is still there.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_icecap_376") ; |
97 |
if (mycommand >= 75) |
98 |
global.msg[0] = * Ice Cap is thinking about a certain article of clothing.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_icecap_377") ; |
99 |
if (mycommand >= 90) |
100 |
global.msg[0] = * Here comes that new clothes smell.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_icecap_378") ; |
101 |
if (ignore == 1) |
102 |
global.msg[0] = * Ice Cap is secretly checking if you're looking at its hat.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_icecap_379") ; |
103 |
if (ignore > 1) |
104 |
global.msg[0] = * Ice Cap is desperate for attention.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_icecap_380") ; |
105 |
if (global.monsterhp[myself] < (global.monstermaxhp[myself] / 3)) |
106 |
global.msg[0] = * Ice Cap's hat is loose.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_icecap_381") ; |
107 |
attacked = 1; |
108 |
} |
109 |
} |
110 |
if (global.myfight == 2) |
111 |
{ |
112 |
if (whatiheard != -1) |
113 |
{ |
114 |
if (global.heard == 0) |
115 |
{ |
116 |
if (whatiheard == 0) |
117 |
{ |
118 |
global.msc = 0; |
119 |
global.msg[0] = * ICE CAP - ATK 11 DEF 4 * This teen wonders why it isn't named 'Ice Hat.'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_icecap_396") ; |
120 |
OBJ_WRITER.halt = 3; |
121 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
122 |
with (iii) |
123 |
halt = 0; |
124 |
} |
125 |
if (whatiheard == 1) |
126 |
{ |
127 |
global.msc = 0; |
128 |
if (ignore > 0) |
129 |
{ |
130 |
global.msg[0] = * You continue not looking at Ice Cap's hat.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_icecap_406") ; |
131 |
global.msg[1] = * It seems defeated...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_icecap_407") ; |
132 |
} |
133 |
if (ignore == 0) |
134 |
{ |
135 |
global.msg[0] = * You manage to tear your eyes away from Ice Cap's hat.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_icecap_412") ; |
136 |
global.msg[1] = * It looks annoyed...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_icecap_413") ; |
137 |
} |
138 |
OBJ_WRITER.halt = 3; |
139 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
140 |
with (iii) |
141 |
halt = 0; |
142 |
} |
143 |
if (whatiheard == 3) |
144 |
{ |
145 |
global.msc = 0; |
146 |
global.msg[0] = * You inform Ice Cap that it has a great hat!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_icecap_422") ; |
147 |
OBJ_WRITER.halt = 3; |
148 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
149 |
with (iii) |
150 |
halt = 0; |
151 |
} |
152 |
if (whatiheard == 4) |
153 |
{ |
154 |
global.msc = 0; |
155 |
script_execute(scr_mercystandard); |
156 |
global.msg[0] = * You tried to steal Ice Cap's hat...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_icecap_431") ; |
157 |
global.msg[1] = * ... but it's not weakened enough!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_icecap_432") ; |
158 |
if (mercy < 0) |
159 |
{ |
160 |
global.msg[1] = * And succeeded! * (It melts in your hands...)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_icecap_435") ; |
161 |
m = 0; |
162 |
global.monster[myself] = 0; |
163 |
if (global.monster[1] == 1 && global.monster[0] == 0) |
164 |
m = 1; |
165 |
global.monster[1] = 0; |
166 |
global.monstertype[myself] = 20Ice; |
167 |
cube = 1; |
168 |
global.monsterinstance[myself] = instance_create(x, y, obj_icecube); |
169 |
if (m == 1) |
170 |
global.monster[1] = 1; |
171 |
instance_destroy(); |
172 |
} |
173 |
OBJ_WRITER.halt = 3; |
174 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
175 |
with (iii) |
176 |
halt = 0; |
177 |
} |
178 |
global.heard = 1; |
179 |
} |
180 |
} |
181 |
} |
182 |
if (global.myfight == 4) |
183 |
{ |
184 |
if (global.mercyuse == 0) |
185 |
{ |
186 |
script_execute(scr_mercystandard); |
187 |
if (mercy < 0) |
188 |
instance_destroy(); |
189 |
} |
190 |
} |