1 |
if (global.mnfight == 3) |
2 |
{ |
3 |
attacked = 0; |
4 |
if (mypart1.melting == 3) |
5 |
mypart1.melting = 4; |
6 |
} |
7 |
if (alarm[5] > 0) |
8 |
{ |
9 |
if (global.monster[0] == 1) |
10 |
{ |
11 |
if (global.monsterinstance[0].alarm[5] > alarm[5])gml_Object_obj_lemonbread_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (OBJ_WRITER)
instance_destroy();
with (blcon)
instance_destroy();
with (obj_blconsm)
instance_destroy();
with (mypart1)
event_user(0);
alarm[7] = 16; |
12 |
alarm[5] = global.monsterinstance[0].alarm[5];gml_Object_obj_lemonbread_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (OBJ_WRITER)
instance_destroy();
with (blcon)
instance_destroy();
with (obj_blconsm)
instance_destroy();
with (mypart1)
event_user(0);
alarm[7] = 16; |
13 |
} |
14 |
if (global.monster[1] == 1) |
15 |
{ |
16 |
if (global.monsterinstance[1].alarm[5] > alarm[5])gml_Object_obj_lemonbread_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (OBJ_WRITER)
instance_destroy();
with (blcon)
instance_destroy();
with (obj_blconsm)
instance_destroy();
with (mypart1)
event_user(0);
alarm[7] = 16; |
17 |
alarm[5] = global.monsterinstance[1].alarm[5];gml_Object_obj_lemonbread_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (OBJ_WRITER)
instance_destroy();
with (blcon)
instance_destroy();
with (obj_blconsm)
instance_destroy();
with (mypart1)
event_user(0);
alarm[7] = 16; |
18 |
} |
19 |
if (global.monster[2] == 1) |
20 |
{ |
21 |
if (global.monsterinstance[2].alarm[5] > alarm[5])gml_Object_obj_lemonbread_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (OBJ_WRITER)
instance_destroy();
with (blcon)
instance_destroy();
with (obj_blconsm)
instance_destroy();
with (mypart1)
event_user(0);
alarm[7] = 16; |
22 |
alarm[5] = global.monsterinstance[2].alarm[5];gml_Object_obj_lemonbread_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (OBJ_WRITER)
instance_destroy();
with (blcon)
instance_destroy();
with (obj_blconsm)
instance_destroy();
with (mypart1)
event_user(0);
alarm[7] = 16; |
23 |
} |
24 |
} |
25 |
if (global.mnfight == 1) |
26 |
{ |
27 |
if (talked == 0) |
28 |
{ |
29 |
alarm[5] = 110;gml_Object_obj_lemonbread_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (OBJ_WRITER)
instance_destroy();
with (blcon)
instance_destroy();
with (obj_blconsm)
instance_destroy();
with (mypart1)
event_user(0);
alarm[7] = 16; |
30 |
alarm[6] = 1;gml_Object_obj_lemonbread_Alarm_6.gmlgg = floor(random(3));
mycommand = round(random(100));
global.msg[0] = ;
if (mycommand < 75)
global.msg[0] = ;
if (mycommand < 50)
global.msg[0] = ;
if (mycommand < 25)
global.msg[0] = ;
if (turns == 0)
{
global.msg[0] = ;
turns = 1;
mycommand = 20;
}
if (turns == 2)
global.msg[0] = ;
if (mercymod > 50000 && turns == 1)
{
global.msg[0] = Life's flashing before my teeth ;
global.msg[0] = ;
turns = 2;
}
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
var bxcount = 6;
var bycount = 2;
var bxstart = 0;
var bystart = 0;
var bxspace = 101;
var byspace = 119;
var by = bystart;
repeat (bycount)
{
var bx = bxstart;
repeat (bxcount)
{
blcon = instance_create(10 + bx, 10 + by, obj_blconsm);
blcon.depth = 20;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
blconwd.depth = 10;
bx += bxspace;
}
by += byspace;
}
global.border = 5;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8; |
31 |
talked = 1; |
32 |
global.heard = 0; |
33 |
} |
34 |
} |
35 |
if (control_check_pressed(0)) |
36 |
{ |
37 |
if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0)gml_Object_obj_lemonbread_Alarm_6.gmlgg = floor(random(3));
mycommand = round(random(100));
global.msg[0] = ;
if (mycommand < 75)
global.msg[0] = ;
if (mycommand < 50)
global.msg[0] = ;
if (mycommand < 25)
global.msg[0] = ;
if (turns == 0)
{
global.msg[0] = ;
turns = 1;
mycommand = 20;
}
if (turns == 2)
global.msg[0] = ;
if (mercymod > 50000 && turns == 1)
{
global.msg[0] = Life's flashing before my teeth ;
global.msg[0] = ;
turns = 2;
}
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
var bxcount = 6;
var bycount = 2;
var bxstart = 0;
var bystart = 0;
var bxspace = 101;
var byspace = 119;
var by = bystart;
repeat (bycount)
{
var bx = bxstart;
repeat (bxcount)
{
blcon = instance_create(10 + bx, 10 + by, obj_blconsm);
blcon.depth = 20;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
blconwd.depth = 10;
bx += bxspace;
}
by += byspace;
}
global.border = 5;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8; |
38 |
alarm[5] = 2;gml_Object_obj_lemonbread_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (OBJ_WRITER)
instance_destroy();
with (blcon)
instance_destroy();
with (obj_blconsm)
instance_destroy();
with (mypart1)
event_user(0);
alarm[7] = 16; |
39 |
} |
40 |
if (global.hurtanim[myself] == 1) |
41 |
{ |
42 |
shudder = 8; |
43 |
alarm[3] = global.damagetimer;gml_Object_obj_lemonbread_Alarm_3.gmlif (mypart1.pause != 1)
{
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y + 90, obj_dmgwriter);
dmgwriter.depth = -30;
global.damage = takedamage;
with (dmgwriter)
{
dmg = -100;
special = 1;
}
mypart1.pause = 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; |
44 |
global.hurtanim[myself] = 3; |
45 |
} |
46 |
if (global.hurtanim[myself] == 2) |
47 |
{ |
48 |
global.monsterhp[myself] -= takedamage; |
49 |
with (dmgwriter) |
50 |
alarm[2] |
51 |
if (global.monsterhp[myself] >= 1) |
52 |
{ |
53 |
global.hurtanim[myself] = 0; |
54 |
mypart1.pause = 0; |
55 |
global.myfight = 0; |
56 |
global.mnfight = 1; |
57 |
} |
58 |
else |
59 |
{ |
60 |
global.myfight = 0; |
61 |
global.mnfight = 1; |
62 |
killed = 1; |
63 |
instance_destroy(); |
64 |
} |
65 |
} |
66 |
if (global.hurtanim[myself] == 5) |
67 |
{ |
68 |
global.damage = 0; |
69 |
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter); |
70 |
with (obj_dmgwriter) |
71 |
alarm[2] |
72 |
global.myfight = 0; |
73 |
global.mnfight = 1; |
74 |
global.hurtanim[myself] = 0; |
75 |
} |
76 |
if (global.mnfight == 2) |
77 |
{ |
78 |
if (attacked == 0) |
79 |
{ |
80 |
pop = scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; (); |
81 |
global.turntimer = 150; |
82 |
global.firingrate = 10; |
83 |
if (pop == 3) |
84 |
global.firingrate = global.firingrate * 2.5; |
85 |
if (pop == 2) |
86 |
global.firingrate = global.firingrate * 1.8; |
87 |
if (mycommand >= 60) |
88 |
{ |
89 |
gen = instance_create(x, y, obj_melonbulgen); |
90 |
gen.dmg = global.monsteratk[myself]; |
91 |
} |
92 |
else |
93 |
{ |
94 |
gen = instance_create(0, 0, obj_amalgam_biter); |
95 |
global.turntimer = 190; |
96 |
} |
97 |
if (mycommand >= 0) |
98 |
global.msg[0] = * Smells like sweet lemons.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_lemonbread_429") ; |
99 |
if (mycommand >= 90) |
100 |
global.msg[0] = * You hear the melody of pulsating flesh.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_lemonbread_433") ; |
101 |
if (mercymod > 100) |
102 |
global.msg[0] = * Could this be goodbye!?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_lemonbread_434") ; |
103 |
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 4)) |
104 |
global.msg[0] = * Monster has low HP.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_lemonbread_435") ; |
105 |
attacked = 1; |
106 |
} |
107 |
if (mercymod == 999999) |
108 |
{ |
109 |
global.turntimer = -1; |
110 |
global.mnfight = 3; |
111 |
} |
112 |
whatiheard = -1; |
113 |
} |
114 |
if (global.myfight == 2) |
115 |
{ |
116 |
if (whatiheard != -1) |
117 |
{ |
118 |
if (global.heard == 0) |
119 |
{ |
120 |
if (whatiheard == 0) |
121 |
{ |
122 |
global.msc = 0; |
123 |
global.msg[0] = * You called for help.Delay 11 * But nobody came.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_lemonbread_468") ; |
124 |
OBJ_WRITER.halt = 3; |
125 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
126 |
with (iii) |
127 |
halt = 0; |
128 |
whatiheard = 9; |
129 |
} |
130 |
if (whatiheard == 3) |
131 |
{ |
132 |
global.msc = 0; |
133 |
if (hum == 0) |
134 |
{ |
135 |
global.msg[0] = * You hum a familiar tune.Delay 11 * Lemon Bread's body shakes...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_lemonbread_479") ; |
136 |
hum = 1; |
137 |
} |
138 |
else |
139 |
{ |
140 |
global.msg[0] = * You hum a familiar tune.Delay 11 * Nothing else happened.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_lemonbread_483") ; |
141 |
} |
142 |
if (hum == 1 && hug == 1 && flex == 1) |
143 |
{ |
144 |
global.msg[0] = * You hum a familiar tune.Delay 11 * Lemon Bread seems to remember something.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_lemonbread_488") ; |
145 |
mercymod = 99999; |
146 |
} |
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 == 1) |
153 |
{ |
154 |
global.msc = 0; |
155 |
global.msg[0] = * You screamed out.Delay 11 * But nobody came.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_lemonbread_501") ; |
156 |
OBJ_WRITER.halt = 3; |
157 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
158 |
with (iii) |
159 |
halt = 0; |
160 |
} |
161 |
if (whatiheard == 4) |
162 |
{ |
163 |
global.msc = 0; |
164 |
if (flex == 0) |
165 |
{ |
166 |
global.msg[0] = * You flexed your arm.Delay 11 * Lemon Bread's muscle shakes...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_lemonbread_512") ; |
167 |
flex = 1; |
168 |
} |
169 |
else |
170 |
{ |
171 |
global.msg[0] = * You flexed your arm.Delay 11 * Nothing else happened.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_lemonbread_516") ; |
172 |
} |
173 |
if (hum == 1 && hug == 1 && flex == 1) |
174 |
{ |
175 |
global.msg[0] = * You flexed your arm.Delay 11 * Lemon Bread seems to remember something.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_lemonbread_521") ; |
176 |
mercymod = 99999; |
177 |
} |
178 |
OBJ_WRITER.halt = 3; |
179 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
180 |
with (iii) |
181 |
halt = 0; |
182 |
} |
183 |
if (whatiheard == 2) |
184 |
{ |
185 |
global.msc = 0; |
186 |
if (hug == 0) |
187 |
{ |
188 |
global.msg[0] = * You let Lemon Bread be.Delay 11 * Lemon Bread's teeth shake...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_lemonbread_536") ; |
189 |
hug = 1; |
190 |
} |
191 |
else |
192 |
{ |
193 |
global.msg[0] = * You let Lemon Bread be.Delay 11 * Nothing else happened.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_lemonbread_540") ; |
194 |
} |
195 |
if (hum == 1 && hug == 1 && flex == 1) |
196 |
{ |
197 |
global.msg[0] = * You let Lemon Bread be.Delay 11 * Lemon Bread seems to remember something.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_lemonbread_545") ; |
198 |
mercymod = 99999; |
199 |
} |
200 |
OBJ_WRITER.halt = 3; |
201 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
202 |
with (iii) |
203 |
halt = 0; |
204 |
} |
205 |
if (whatiheard == 5) |
206 |
{ |
207 |
global.msc = 0; |
208 |
global.msg[0] = * You cried as loud as you could.Delay 11 * But nobody came.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_lemonbread_556") ; |
209 |
OBJ_WRITER.halt = 3; |
210 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
211 |
with (iii) |
212 |
halt = 0; |
213 |
} |
214 |
global.heard = 1; |
215 |
} |
216 |
} |
217 |
} |
218 |
if (global.myfight == 4) |
219 |
{ |
220 |
if (global.mercyuse == 0) |
221 |
{ |
222 |
script_execute(scr_mercystandard); |
223 |
if (mercy < 0) |
224 |
instance_destroy(); |
225 |
} |
226 |
} |
227 |
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0) |
228 |
{ |
229 |
script_execute(scr_mercystandard); |
230 |
if (mercy < 0) |
231 |
instance_destroy(); |
232 |
} |