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_snowdrake_Alarm_6.gmlblcon = instance_create(x + 145, y + 52, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
if (mercymod == -25 && scr_monstersum() == 1)
mercymod = 0;
if (mycommand >= 0 && mycommand < 14)
global.msg[0] = ;
if (mycommand >= 14 && mycommand < 28)
global.msg[0] = ;
if (mycommand >= 28 && mycommand < 42)
global.msg[0] = ;
if (mycommand >= 42 && mycommand <= 66)
global.msg[0] = Better not snow "flake" out! ;
if (mycommand >= 66 && mycommand <= 80)
global.msg[0] = My fave ice cereals: "frosted" ;
if (mycommand >= 80 && mycommand <= 90)
global.msg[0] = ;
if (mycommand >= 90 && mycommand <= 100)
global.msg[0] = M.. m.. macaroni and "freeze" ;
if (mercymod == -25)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
}
if (whatiheard == 3)
{
if (joketold == 1)
{
if (gg == 0)
global.msg[0] = You have good taste!! (In jokes) ;
if (gg == 1)
global.msg[0] = See!? Laughs! Dad was wrong! ;
if (gg == 2)
global.msg[0] = ;
if ( global.flag[57 status_snowdrake] == 0)
global.msg[0] = See!? Laughs! Dad was wrong! ;
global.flag[57 status_snowdrake] = 1;
}
if (joketold == 0)
global.msg[0] = ;
alarm[5] = 108;
}
if (whatiheard != 1 && whatiheard != 3 && whatiheard != 4 && whatiheard != 19 && whatiheard != 20 && mercymod != -25)
joketold = 1;
if (whatiheard == 4)
{
if (gg == 0)
global.msg[0] = Is that s'posed to be funny? ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
}
if (whatiheard == 1)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = Is your flesh rotten as you? ;
if (gg == 2)
global.msg[0] = ;
joketold = 0;
}
if (whatiheard == 20)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
mercymod = 200;
}
if (whatiheard == 19)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
mercymod = -25;
}
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 6;
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_snowdrake_Alarm_6.gmlblcon = instance_create(x + 145, y + 52, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
if (mercymod == -25 && scr_monstersum() == 1)
mercymod = 0;
if (mycommand >= 0 && mycommand < 14)
global.msg[0] = ;
if (mycommand >= 14 && mycommand < 28)
global.msg[0] = ;
if (mycommand >= 28 && mycommand < 42)
global.msg[0] = ;
if (mycommand >= 42 && mycommand <= 66)
global.msg[0] = Better not snow "flake" out! ;
if (mycommand >= 66 && mycommand <= 80)
global.msg[0] = My fave ice cereals: "frosted" ;
if (mycommand >= 80 && mycommand <= 90)
global.msg[0] = ;
if (mycommand >= 90 && mycommand <= 100)
global.msg[0] = M.. m.. macaroni and "freeze" ;
if (mercymod == -25)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
}
if (whatiheard == 3)
{
if (joketold == 1)
{
if (gg == 0)
global.msg[0] = You have good taste!! (In jokes) ;
if (gg == 1)
global.msg[0] = See!? Laughs! Dad was wrong! ;
if (gg == 2)
global.msg[0] = ;
if ( global.flag[57 status_snowdrake] == 0)
global.msg[0] = See!? Laughs! Dad was wrong! ;
global.flag[57 status_snowdrake] = 1;
}
if (joketold == 0)
global.msg[0] = ;
alarm[5] = 108;
}
if (whatiheard != 1 && whatiheard != 3 && whatiheard != 4 && whatiheard != 19 && whatiheard != 20 && mercymod != -25)
joketold = 1;
if (whatiheard == 4)
{
if (gg == 0)
global.msg[0] = Is that s'posed to be funny? ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
}
if (whatiheard == 1)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = Is your flesh rotten as you? ;
if (gg == 2)
global.msg[0] = ;
joketold = 0;
}
if (whatiheard == 20)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
mercymod = 200;
}
if (whatiheard == 19)
{
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
mercymod = -25;
}
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 6;
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_snowdrake_Alarm_3.gmlif (image_index != 1)
{
with (mypart1)
instance_destroy();
with (mypart2)
instance_destroy();
dmgwriter = instance_create(x + 20, y - 10, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
image_index = 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 |
mypart1 = instance_create(x, y, part1); |
50 |
mypart2 = instance_create(x, y, part2); |
51 |
global.hurtanim[myself] = 0; |
52 |
image_index = 0; |
53 |
global.myfight = 0; |
54 |
global.mnfight = 1; |
55 |
} |
56 |
else |
57 |
{ |
58 |
global.myfight = 0; |
59 |
global.mnfight = 1; |
60 |
killed = 1; |
61 |
instance_destroy(); |
62 |
} |
63 |
} |
64 |
if (global.hurtanim[myself] == 5) |
65 |
{ |
66 |
global.damage = 0; |
67 |
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter); |
68 |
with (obj_dmgwriter) |
69 |
alarm[2] |
70 |
global.myfight = 0; |
71 |
global.mnfight = 1; |
72 |
global.hurtanim[myself] = 0; |
73 |
} |
74 |
if (global.mnfight == 2) |
75 |
{ |
76 |
if (attacked == 0) |
77 |
{ |
78 |
pop = scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; (); |
79 |
if (instance_exists(obj_jerry)) |
80 |
{ |
81 |
if (obj_jerry.ditch == 0) |
82 |
pop -= 1; |
83 |
} |
84 |
global.turntimer = 120; |
85 |
if (pop == 2) |
86 |
global.turntimer = 130; |
87 |
global.firingrate = 16; |
88 |
if (pop == 3) |
89 |
global.firingrate = global.firingrate * 2.4; |
90 |
if (pop == 2) |
91 |
global.firingrate = global.firingrate * 2; |
92 |
if (mycommand >= 0 && mycommand <= 50) |
93 |
{ |
94 |
gen = instance_create(x, y, obj_4sidegen); |
95 |
gen.bullettype = 1; |
96 |
} |
97 |
else |
98 |
{ |
99 |
global.firingrate += 8; |
100 |
gen = instance_create(x, y, obj_4sidegen); |
101 |
gen.bullettype = 0; |
102 |
} |
103 |
gen.myself = myself; |
104 |
if (mycommand >= 0) |
105 |
global.msg[0] = * Snowdrake is assessing the crowd.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_snowdrake_507") ; |
106 |
if (mycommand >= 25) |
107 |
global.msg[0] = * Snowdrake is practicing its next pun.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_snowdrake_508") ; |
108 |
if (mycommand >= 40) |
109 |
global.msg[0] = * Snowdrake is smiling at its own bad joke.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_snowdrake_509") ; |
110 |
if (mycommand >= 60) |
111 |
global.msg[0] = * It smells like a wet pillow.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_snowdrake_510") ; |
112 |
if (mycommand >= 80) |
113 |
global.msg[0] = * Snowdrake realized its own name is a pun and is freaking out.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_snowdrake_511") ; |
114 |
if (mercymod == 80) |
115 |
global.msg[0] = * Snowdrake is pleased with its "cool" joke.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_snowdrake_512") ; |
116 |
if (mercymod == 200) |
117 |
global.msg[0] = * Snowdrake is laughing at your imitation of its cohort.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_snowdrake_513") ; |
118 |
if (mercymod == -35) |
119 |
global.msg[0] = * Snowdrake pretends not to care.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_snowdrake_514") ; |
120 |
if (mercymod < -10) |
121 |
global.msg[0] = * Snowdrake is puffed 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_snowdrake_515") ; |
122 |
if (global.monsterhp[myself] < 20) |
123 |
global.msg[0] = * Snowdrake is flaking apart.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_snowdrake_516") ; |
124 |
attacked = 1; |
125 |
} |
126 |
} |
127 |
if (global.myfight == 2) |
128 |
{ |
129 |
if (whatiheard != -1) |
130 |
{ |
131 |
if (global.heard == 0) |
132 |
{ |
133 |
if (whatiheard == 0) |
134 |
{ |
135 |
global.msc = 0; |
136 |
global.msg[0] = * SNOWDRAKE - ATK 12 DEF 7 * This teen comedian fights to keep a captive audience.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_snowdrake_533") ; |
137 |
OBJ_WRITER.halt = 3; |
138 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
139 |
with (iii) |
140 |
halt = 0; |
141 |
} |
142 |
if (whatiheard == 1) |
143 |
{ |
144 |
global.msc = 0; |
145 |
gg = floor(random(6)); |
146 |
if (gg <= 2) |
147 |
global.msg[0] = * You boo the Snowdrake.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_snowdrake_542") ; |
148 |
if (gg == 3 || gg == 4) |
149 |
global.msg[0] = * You tell the Snowdrake that they aren't funny.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_snowdrake_543") ; |
150 |
if (gg == 5) |
151 |
{ |
152 |
global.msg[0] = * You tell the Snowdrake that no one will ever love them the way they are...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_snowdrake_545") ; |
153 |
global.msg[1] = * They struggle to make a retort,Delay 11 and slink away utterly crushed...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_snowdrake_546") ; |
154 |
} |
155 |
OBJ_WRITER.halt = 3; |
156 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
157 |
with (iii) |
158 |
halt = 0; |
159 |
mercymod = -10; |
160 |
if (gg == 5) |
161 |
mercymod = 222; |
162 |
} |
163 |
if (whatiheard == 3) |
164 |
{ |
165 |
if (joketold == 0) |
166 |
{ |
167 |
mercymod = -4; |
168 |
} |
169 |
else |
170 |
{ |
171 |
mercymod = 80; |
172 |
global.flag[136 spared_snowdrake] = 1; |
173 |
} |
174 |
global.msc = 0; |
175 |
if (joketold == 0) |
176 |
global.msg[0] = * You laugh at Snowdrake before it says anything funny.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_snowdrake_559") ; |
177 |
if (joketold == 1) |
178 |
global.msg[0] = * You laugh at Snowdrake's pun.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_snowdrake_560") ; |
179 |
OBJ_WRITER.halt = 3; |
180 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
181 |
with (iii) |
182 |
halt = 0; |
183 |
} |
184 |
if (whatiheard == 4) |
185 |
{ |
186 |
global.msc = 0; |
187 |
if (scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; () == 1) |
188 |
global.msg[0] = * You make a bad ice pun.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_snowdrake_568") ; |
189 |
if (scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; () > 1) |
190 |
{ |
191 |
global.msg[0] = * You make a bad ice pun.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_snowdrake_570") ; |
192 |
global.msg[1] = * The other monsters think it's hilarious...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_snowdrake_571") ; |
193 |
scr_withallmonsterscr_withallmonsterif (argument0 == 0)
{
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1)
{
with (global.monsterinstance[i])
whatiheard = argument1;
}
}
} (0, 20); |
194 |
whatiheard = 19; |
195 |
} |
196 |
OBJ_WRITER.halt = 3; |
197 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
198 |
with (iii) |
199 |
halt = 0; |
200 |
} |
201 |
global.heard = 1; |
202 |
} |
203 |
} |
204 |
} |
205 |
if (global.myfight == 4) |
206 |
{ |
207 |
if (global.mercyuse == 0) |
208 |
{ |
209 |
script_execute(scr_mercystandard); |
210 |
if (mercy < 0) |
211 |
instance_destroy(); |
212 |
} |
213 |
} |
214 |
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0) |
215 |
{ |
216 |
script_execute(scr_mercystandard); |
217 |
if (mercy < 0) |
218 |
instance_destroy(); |
219 |
} |