1 |
if (ditch == 1 && global.mnfight > 0) |
2 |
{ |
3 |
talked = 0; |
4 |
if (image_alpha > 0.05) |
5 |
image_alpha -= 0.05; |
6 |
thisturn2 = global.turn - thisturn; |
7 |
if (thisturn2 >= 2 && scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; () > 0) |
8 |
ditch = 0; |
9 |
global.monster[myself] = 0; |
10 |
} |
11 |
if (ditch == 0) |
12 |
{ |
13 |
global.monster[myself] = 1; |
14 |
if (image_alpha < 1) |
15 |
image_alpha += 0.05; |
16 |
} |
17 |
if (global.mnfight == 3) |
18 |
attacked = 0; |
19 |
scr_blconmatchscr_blconmatchif (alarm[5] > 0)
{
if (global.monster[0] == 1)
{
if (global.monsterinstance[0].alarm[5] >alarm[5]
alarm[5]gml_Object_obj_jerry_Alarm_5.gmlif (ditch == 0)
{
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
}
}
if (global.monster[1] == 1)
{
if (global.monsterinstance[1].alarm[5] >alarm[5]
alarm[5]gml_Object_obj_jerry_Alarm_5.gmlif (ditch == 0)
{
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
}
}
if (global.monster[2] == 1)
{
if (global.monsterinstance[2].alarm[5] >alarm[5]
alarm[5]gml_Object_obj_jerry_Alarm_5.gmlif (ditch == 0)
{
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
}
}
} (); |
20 |
if (global.mnfight == 1) |
21 |
{ |
22 |
if (talked == 0) |
23 |
{ |
24 |
alarm[5] = 100;gml_Object_obj_jerry_Alarm_5.gmlif (ditch == 0)
{
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
} |
25 |
alarm[6] = 1;gml_Object_obj_jerry_Alarm_6.gmlif (ditch == 0)
{
blcon = instance_create(x - 8, ystart - 100, obj_blconsm);
blcon.sprite_index = spr_blconabove;
mycommand = round(random(100));
gg = floor(random(3));
if (mycommand >= 0 && mycommand < 20)
global.msg[0] = Guys, it's COLD. Does ANYONE care? ;
if (mycommand >= 20 && mycommand < 40)
global.msg[0] = Why are we doing this? What a fail. ;
if (mycommand >= 40 && mycommand < 60)
global.msg[0] = Wow, you guys SUCK at this. ;
if (mycommand >= 60 && mycommand <= 80)
global.msg[0] = SHHHH! I'm THINKING, guys!! ;
if (mycommand >= 80 && mycommand <= 100)
global.msg[0] = ;
if ( scr_monstersum() == 1)
{
if (mycommand > 0)
global.msg[0] = Well... can YOU give me a ride home? ;
if (mycommand > 20)
global.msg[0] = Huh? Did they ditch me...? SOME friends! ;
if (mycommand > 40)
global.msg[0] = ;
if (mycommand > 60)
global.msg[0] = So, like, what are you even doing? ;
if (mycommand > 80)
global.msg[0] = ;
}
if (whatiheard == 20)
{
if (gg == 0)
global.msg[0] = Hahaha! Say something else funny! ;
if (gg == 1)
global.msg[0] = Haha! Wow! Drake, you suck! ;
if (gg == 2)
global.msg[0] = Hahaha! Where do you get your ideas!?! ;
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;
} |
26 |
talked = 1; |
27 |
global.heard = 0; |
28 |
} |
29 |
} |
30 |
if (control_check_pressed(0)) |
31 |
{ |
32 |
if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0)gml_Object_obj_jerry_Alarm_6.gmlif (ditch == 0)
{
blcon = instance_create(x - 8, ystart - 100, obj_blconsm);
blcon.sprite_index = spr_blconabove;
mycommand = round(random(100));
gg = floor(random(3));
if (mycommand >= 0 && mycommand < 20)
global.msg[0] = Guys, it's COLD. Does ANYONE care? ;
if (mycommand >= 20 && mycommand < 40)
global.msg[0] = Why are we doing this? What a fail. ;
if (mycommand >= 40 && mycommand < 60)
global.msg[0] = Wow, you guys SUCK at this. ;
if (mycommand >= 60 && mycommand <= 80)
global.msg[0] = SHHHH! I'm THINKING, guys!! ;
if (mycommand >= 80 && mycommand <= 100)
global.msg[0] = ;
if ( scr_monstersum() == 1)
{
if (mycommand > 0)
global.msg[0] = Well... can YOU give me a ride home? ;
if (mycommand > 20)
global.msg[0] = Huh? Did they ditch me...? SOME friends! ;
if (mycommand > 40)
global.msg[0] = ;
if (mycommand > 60)
global.msg[0] = So, like, what are you even doing? ;
if (mycommand > 80)
global.msg[0] = ;
}
if (whatiheard == 20)
{
if (gg == 0)
global.msg[0] = Hahaha! Say something else funny! ;
if (gg == 1)
global.msg[0] = Haha! Wow! Drake, you suck! ;
if (gg == 2)
global.msg[0] = Hahaha! Where do you get your ideas!?! ;
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;
} |
33 |
alarm[5] = 2;gml_Object_obj_jerry_Alarm_5.gmlif (ditch == 0)
{
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
} |
34 |
} |
35 |
if (global.hurtanim[myself] == 1) |
36 |
{ |
37 |
shudder = 16; |
38 |
alarm[3] = global.damagetimer;gml_Object_obj_jerry_Alarm_3.gmlif (sprite_index != hurtgfx)
{
dmgwriter = instance_create(x + 10, y + 80, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = ceil(global.damage / 5);
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; |
39 |
global.hurtanim[myself] = 3; |
40 |
} |
41 |
if (global.hurtanim[myself] == 2) |
42 |
{ |
43 |
global.monsterhp[myself] -= ceil(takedamage / 5); |
44 |
with (dmgwriter) |
45 |
alarm[2] |
46 |
if (global.monsterhp[myself] >= 1) |
47 |
{ |
48 |
global.hurtanim[myself] = 0; |
49 |
sprite_index = normalgfx; |
50 |
image_index = 0; |
51 |
global.myfight = 0; |
52 |
global.mnfight = 1; |
53 |
} |
54 |
else |
55 |
{ |
56 |
global.myfight = 0; |
57 |
global.mnfight = 1; |
58 |
killed = 1; |
59 |
instance_destroy(); |
60 |
} |
61 |
} |
62 |
if (global.hurtanim[myself] == 5) |
63 |
{ |
64 |
global.damage = 0; |
65 |
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter); |
66 |
with (obj_dmgwriter) |
67 |
alarm[2] |
68 |
global.myfight = 0; |
69 |
global.mnfight = 1; |
70 |
global.hurtanim[myself] = 0; |
71 |
} |
72 |
if (global.mnfight == 2) |
73 |
{ |
74 |
if (attacked == 0) |
75 |
{ |
76 |
if (ditch == 0) |
77 |
{ |
78 |
if (scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; () > 1) |
79 |
{ |
80 |
if (global.turntimer < 1) |
81 |
global.turntimer = 1; |
82 |
alarm[10] = 10; |
83 |
} |
84 |
else |
85 |
{ |
86 |
global.mnfight = 3; |
87 |
} |
88 |
} |
89 |
if (mycommand < 50) |
90 |
{ |
91 |
} |
92 |
if (mycommand >= 50) |
93 |
{ |
94 |
} |
95 |
if (ditch == 0) |
96 |
{ |
97 |
if (mycommand >= 0) |
98 |
global.msg[0] = * Jerry eats powdery food and licks its hands loudly.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_jerry_407") ; |
99 |
if (mycommand >= 25) |
100 |
global.msg[0] = * Jerry sneezes without covering 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_jerry_408") ; |
101 |
if (mycommand >= 50) |
102 |
global.msg[0] = * Jerry tells everyone it has to go to the bathroom.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_jerry_409") ; |
103 |
if (mycommand >= 75) |
104 |
global.msg[0] = * Jerry lets out a yawn.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_jerry_410") ; |
105 |
if (mycommand >= 90) |
106 |
global.msg[0] = * Smells like....... Jerry.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_jerry_411") ; |
107 |
if (global.monsterhp[myself] < (global.monstermaxhp[myself] / 3)) |
108 |
global.msg[0] = * Jerry is wounded.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_jerry_412") ; |
109 |
} |
110 |
if (ditch == 1 && thisturn2 == 0) |
111 |
global.msg[0] = * The other monsters celebrate Jerry's disappearance.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_jerry_414") ; |
112 |
if (ditch == 0 && thisturn2 == 2) |
113 |
global.msg[0] = * Return of Jerry.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_jerry_415") ; |
114 |
attacked = 1; |
115 |
} |
116 |
} |
117 |
if (whatiheard == 1 && instance_exists(OBJ_WRITER) == 0) |
118 |
{ |
119 |
script_execute(scr_mercystandard); |
120 |
if (mercy < 0) |
121 |
{ |
122 |
killed = 0; |
123 |
instance_destroy(); |
124 |
} |
125 |
} |
126 |
if (global.myfight == 2 && ditch == 0) |
127 |
{ |
128 |
if (whatiheard != -1) |
129 |
{ |
130 |
if (global.heard == 0) |
131 |
{ |
132 |
if (whatiheard == 0) |
133 |
{ |
134 |
global.msc = 0; |
135 |
global.msg[0] = * JERRY - ATK 0 DEF 30 * Everyone knows Jerry. * Makes attacks 2 seconds longer.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_jerry_442") ; |
136 |
OBJ_WRITER.halt = 3; |
137 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
138 |
with (iii) |
139 |
halt = 0; |
140 |
} |
141 |
if (whatiheard == 3) |
142 |
{ |
143 |
global.msc = 0; |
144 |
global.msg[0] = * You and the other monsters ditch Jerry when it looks away!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_jerry_450") ; |
145 |
OBJ_WRITER.halt = 3; |
146 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
147 |
with (iii) |
148 |
halt = 0; |
149 |
ditch = 1; |
150 |
thisturn = global.turn; |
151 |
} |
152 |
global.heard = 1; |
153 |
} |
154 |
} |
155 |
} |
156 |
if (global.myfight == 4 && ditch == 0) |
157 |
{ |
158 |
if (global.mercyuse == 0) |
159 |
{ |
160 |
script_execute(scr_mercystandard); |
161 |
if (mercy < 0) |
162 |
instance_destroy(); |
163 |
} |
164 |
} |