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])gml_Object_obj_woshua_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
with (blconwd2)
instance_destroy();
with (blcontweet)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 7; |
8 |
alarm[5] = global.monsterinstance[0].alarm[5];gml_Object_obj_woshua_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
with (blconwd2)
instance_destroy();
with (blcontweet)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 7; |
9 |
} |
10 |
if (global.monster[1] == 1) |
11 |
{ |
12 |
if (global.monsterinstance[1].alarm[5] > alarm[5])gml_Object_obj_woshua_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
with (blconwd2)
instance_destroy();
with (blcontweet)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 7; |
13 |
alarm[5] = global.monsterinstance[1].alarm[5];gml_Object_obj_woshua_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
with (blconwd2)
instance_destroy();
with (blcontweet)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 7; |
14 |
} |
15 |
if (global.monster[2] == 1) |
16 |
{ |
17 |
if (global.monsterinstance[2].alarm[5] > alarm[5])gml_Object_obj_woshua_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
with (blconwd2)
instance_destroy();
with (blcontweet)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 7; |
18 |
alarm[5] = global.monsterinstance[2].alarm[5];gml_Object_obj_woshua_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
with (blconwd2)
instance_destroy();
with (blcontweet)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 7; |
19 |
} |
20 |
} |
21 |
if (global.mnfight == 1) |
22 |
{ |
23 |
if (talked == 0) |
24 |
{ |
25 |
alarm[5] = 110;gml_Object_obj_woshua_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
with (blconwd2)
instance_destroy();
with (blcontweet)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 7; |
26 |
alarm[6] = 1;gml_Object_obj_woshua_Alarm_6.gmlblcon = instance_create(x + 95, y - 25, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
if (mycommand < 5)
bodypart = ;
if (mycommand >= 5)
bodypart = ;
if (mycommand >= 10)
bodypart = ;
if (mycommand >= 15)
bodypart = ;
if (mycommand >= 20)
bodypart = ;
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = scr_gettext("obj_woshua_252", bodypart);
if (mycommand >= 25)
{
global.msg[0] = ;
if (global.kills > 0)
global.msg[0] = ;
}
if (mycommand >= 50)
global.msg[0] = ;
if (mycommand >= 75 && dub == 1)
global.msg[0] = Oops, I meant... scrub a sub-SUBS ;
if (mycommand >= 75 && dub == 0)
{
global.msg[0] = ;
dub = 1;
}
if (whatiheard == 3)
global.msg[0] = ;
if (whatiheard == 1)
{
global.msg[0] = ;
if (clean == 2)
global.msg[0] = ;
}
if (whatiheard == 4)
global.msg[0] = NO. THAT JOKE'S TOO... DIRTY ;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
blcontweet = instance_create(x, y - 40, obj_blconsm);
blcontweet.sprite_index = spr_blcontinyabove;
global.msc = 0;
global.msg[0] = ;
global.typer = 25;
blconwd2 = instance_create(blcontweet.x + 15, blcontweet.y - 10, OBJ_INSTAWRITER);
blconwd2.shake = 1;
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_woshua_Alarm_6.gmlblcon = instance_create(x + 95, y - 25, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
if (mycommand < 5)
bodypart = ;
if (mycommand >= 5)
bodypart = ;
if (mycommand >= 10)
bodypart = ;
if (mycommand >= 15)
bodypart = ;
if (mycommand >= 20)
bodypart = ;
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = scr_gettext("obj_woshua_252", bodypart);
if (mycommand >= 25)
{
global.msg[0] = ;
if (global.kills > 0)
global.msg[0] = ;
}
if (mycommand >= 50)
global.msg[0] = ;
if (mycommand >= 75 && dub == 1)
global.msg[0] = Oops, I meant... scrub a sub-SUBS ;
if (mycommand >= 75 && dub == 0)
{
global.msg[0] = ;
dub = 1;
}
if (whatiheard == 3)
global.msg[0] = ;
if (whatiheard == 1)
{
global.msg[0] = ;
if (clean == 2)
global.msg[0] = ;
}
if (whatiheard == 4)
global.msg[0] = NO. THAT JOKE'S TOO... DIRTY ;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
blcontweet = instance_create(x, y - 40, obj_blconsm);
blcontweet.sprite_index = spr_blcontinyabove;
global.msc = 0;
global.msg[0] = ;
global.typer = 25;
blconwd2 = instance_create(blcontweet.x + 15, blcontweet.y - 10, OBJ_INSTAWRITER);
blconwd2.shake = 1;
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;gml_Object_obj_woshua_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
with (blconwd2)
instance_destroy();
with (blcontweet)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
global.border = 7; |
35 |
} |
36 |
if (global.hurtanim[myself] == 1) |
37 |
{ |
38 |
shudder = 8; |
39 |
alarm[3] = global.damagetimer;gml_Object_obj_woshua_Alarm_3.gmlif (image_index != 1)
{
with (mypart1)
instance_destroy();
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y - 24, 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 |
global.hurtanim[myself] = 0; |
51 |
image_index = 0; |
52 |
global.myfight = 0; |
53 |
global.mnfight = 1; |
54 |
} |
55 |
else |
56 |
{ |
57 |
global.myfight = 0; |
58 |
global.mnfight = 1; |
59 |
killed = 1; |
60 |
instance_destroy(); |
61 |
} |
62 |
} |
63 |
if (global.hurtanim[myself] == 5) |
64 |
{ |
65 |
global.damage = 0; |
66 |
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter); |
67 |
with (obj_dmgwriter) |
68 |
alarm[2] |
69 |
global.myfight = 0; |
70 |
global.mnfight = 1; |
71 |
global.hurtanim[myself] = 0; |
72 |
} |
73 |
if (global.mnfight == 2) |
74 |
{ |
75 |
if (attacked == 0) |
76 |
{ |
77 |
pop = scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; (); |
78 |
global.turntimer = 160; |
79 |
global.firingrate = 3; |
80 |
if (pop == 3) |
81 |
global.firingrate = global.firingrate * 3; |
82 |
if (pop == 2) |
83 |
global.firingrate = global.firingrate * 2; |
84 |
type = 2; |
85 |
if (mycommand >= 0 && mycommand < 50) |
86 |
type = 1; |
87 |
if (clean == 1 || clean == 3) |
88 |
type = 1; |
89 |
if (type == 1) |
90 |
{ |
91 |
global.turntimer = 180; |
92 |
if (pop == 1) |
93 |
global.turntimer = 150; |
94 |
if (pop == 1) |
95 |
global.firingrate = 3; |
96 |
global.firingrate += dirtyjoke; |
97 |
if (dirtyjoke > 3) |
98 |
dirtyjoke = 2; |
99 |
if (pop > 1) |
100 |
gen = instance_create(global.idealborder[0] + (c_borderwidthc_borderwidthif (argument0 == 0)
return obj_rborder.x - obj_lborder.x;
if (argument0 == 1)
return global.idealborder[1] - global.idealborder[0]; (0) / 2), global.idealborder[2] + 90 + (c_borderheightc_borderheightif (argument0 == 0)
return obj_dborder.y - obj_uborder.y;
if (argument0 == 1)
return global.idealborder[3] - global.idealborder[2]; (0) / 2), obj_woshspiralgen); |
101 |
if (pop == 1) |
102 |
gen = instance_create(global.idealborder[0] + (c_borderwidthc_borderwidthif (argument0 == 0)
return obj_rborder.x - obj_lborder.x;
if (argument0 == 1)
return global.idealborder[1] - global.idealborder[0]; (0) / 2), (global.idealborder[2] - 5) + (c_borderheightc_borderheightif (argument0 == 0)
return obj_dborder.y - obj_uborder.y;
if (argument0 == 1)
return global.idealborder[3] - global.idealborder[2]; (0) / 2), obj_woshspiralgen); |
103 |
if (pop == 1) |
104 |
{ |
105 |
gen.blue = 0; |
106 |
if (mycommand) |
107 |
gen.turn = 6; |
108 |
qq = choose(0, 1); |
109 |
if (qq == 0) |
110 |
{ |
111 |
gen.turn = -6; |
112 |
gen.backwards = 1; |
113 |
} |
114 |
gen.direction = 60 + random(40); |
115 |
} |
116 |
if (clean == 1) |
117 |
{ |
118 |
gen.cleaner = 1; |
119 |
clean = 0; |
120 |
} |
121 |
if (clean == 3) |
122 |
{ |
123 |
gen.cleaner = 1; |
124 |
clean = 2; |
125 |
} |
126 |
gen.dmg = global.monsteratk[myself]; |
127 |
} |
128 |
else |
129 |
{ |
130 |
global.firingrate = 4; |
131 |
gen = instance_create(global.idealborder[0] + (c_borderwidthc_borderwidthif (argument0 == 0)
return obj_rborder.x - obj_lborder.x;
if (argument0 == 1)
return global.idealborder[1] - global.idealborder[0]; (0) / 2), (global.idealborder[2] - 60) + (c_borderheightc_borderheightif (argument0 == 0)
return obj_dborder.y - obj_uborder.y;
if (argument0 == 1)
return global.idealborder[3] - global.idealborder[2]; (0) / 2), blt_soapbul); |
132 |
gen.dmg = global.monsteratk[myself]; |
133 |
if (pop > 1) |
134 |
gen.offset = 1; |
135 |
qd = 0; |
136 |
if (dirtyjoke > 0) |
137 |
qd = dirtyjoke * 0.5; |
138 |
if (qd > 1) |
139 |
qd = 1; |
140 |
gen.speed = 4 - qd; |
141 |
gen.bullettype = 0; |
142 |
} |
143 |
gen.myself = myself; |
144 |
if (mycommand >= 0) |
145 |
global.msg[0] = * Woshua wonders if tears are sanitary.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_woshua_504") ; |
146 |
if (mycommand >= 25) |
147 |
global.msg[0] = * Woshua is friends with a little bird.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_woshua_505") ; |
148 |
if (mycommand >= 50) |
149 |
global.msg[0] = * Woshua is rinsing off a pizza.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_woshua_506") ; |
150 |
if (mycommand >= 75) |
151 |
global.msg[0] = * Woshua is looking for some good clean fun.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_woshua_507") ; |
152 |
if (mycommand >= 90) |
153 |
global.msg[0] = * Smells like detergent.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_woshua_508") ; |
154 |
if (global.monsterhp[myself] < 30) |
155 |
global.msg[0] = * Woshua is revolted at its own wounds.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_woshua_510") ; |
156 |
attacked = 1; |
157 |
} |
158 |
} |
159 |
if (global.myfight == 2) |
160 |
{ |
161 |
if (whatiheard != -1) |
162 |
{ |
163 |
if (global.heard == 0) |
164 |
{ |
165 |
if (whatiheard == 0) |
166 |
{ |
167 |
global.msc = 0; |
168 |
global.msg[0] = * WOSHUA - ATK 18 DEF 5 * This humble germophobe seeks to cleanse the whole world.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_woshua_526") ; |
169 |
OBJ_WRITER.halt = 3; |
170 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
171 |
with (iii) |
172 |
halt = 0; |
173 |
whatiheard = 9; |
174 |
} |
175 |
if (whatiheard == 1) |
176 |
{ |
177 |
global.msc = 0; |
178 |
global.msg[0] = * You reach out.Delay 11 * Woshua recoils from your touch.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_woshua_535") ; |
179 |
if (slime == 1) |
180 |
{ |
181 |
global.msg[0] = * Woshua is terrified of your slimy body! * It runs 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_woshua_536") ; |
182 |
mercymod = 333; |
183 |
} |
184 |
if (clean == 2) |
185 |
global.msg[0] = * You give Woshua a friendly pat.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_woshua_537") ; |
186 |
OBJ_WRITER.halt = 3; |
187 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
188 |
with (iii) |
189 |
halt = 0; |
190 |
} |
191 |
if (whatiheard == 3) |
192 |
{ |
193 |
global.msc = 0; |
194 |
global.msg[0] = * You ask Woshua to clean you.Delay 11 * It hops around excitedly.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_woshua_546") ; |
195 |
if (clean == 2) |
196 |
global.msg[0] = * Woshua continues cleaning.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_woshua_547") ; |
197 |
if (clean == 0) |
198 |
clean = 1; |
199 |
if (clean == 2) |
200 |
clean = 3; |
201 |
OBJ_WRITER.halt = 3; |
202 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
203 |
with (iii) |
204 |
halt = 0; |
205 |
} |
206 |
if (whatiheard == 4) |
207 |
{ |
208 |
global.msc = 0; |
209 |
jj = floor(random(3)); |
210 |
if (jj == 0) |
211 |
global.msg[0] = * You tell a joke about two kids who played in a muddy flower garden.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_woshua_558") ; |
212 |
if (jj == 1) |
213 |
global.msg[0] = * You tell a joke about a kid who ate a pie with their bare hands.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_woshua_559") ; |
214 |
if (jj == 2) |
215 |
global.msg[0] = * You tell a joke about a kid who slept in the soil.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_woshua_560") ; |
216 |
global.msg[1] = * Woshua's powers neutralized!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_woshua_561") ; |
217 |
dirtyjoke += 1; |
218 |
OBJ_WRITER.halt = 3; |
219 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
220 |
with (iii) |
221 |
halt = 0; |
222 |
if (instance_exists(obj_aaron)) |
223 |
{ |
224 |
obj_aaron.whatiheard = 12; |
225 |
obj_aaron.mercymod = 450; |
226 |
} |
227 |
if (global.monsteratk[myself] > 3) |
228 |
global.monsteratk[myself] -= 2; |
229 |
} |
230 |
global.heard = 1; |
231 |
} |
232 |
} |
233 |
} |
234 |
if (whatiheard == 3 && flex == 3 && instance_exists(OBJ_WRITER)) |
235 |
{ |
236 |
if (OBJ_WRITER.stringno == 1) |
237 |
{ |
238 |
vspeed = -4; |
239 |
mypart1.vspeed = -4; |
240 |
} |
241 |
} |
242 |
if (whatiheard == 3 && flex == 3 && instance_exists(OBJ_WRITER) == 0) |
243 |
{ |
244 |
script_execute(scr_mercystandard); |
245 |
if (mercy < 0) |
246 |
instance_destroy(); |
247 |
} |
248 |
if (alphaup == 1 && image_alpha < 1) |
249 |
image_alpha += 0.05; |
250 |
if (global.myfight == 4) |
251 |
{ |
252 |
if (global.mercyuse == 0) |
253 |
{ |
254 |
script_execute(scr_mercystandard); |
255 |
if (mercy < 0) |
256 |
instance_destroy(); |
257 |
} |
258 |
} |
259 |
if (mercymod == 333 && instance_exists(OBJ_WRITER) == 0) |
260 |
{ |
261 |
script_execute(scr_mercystandard); |
262 |
if (mercy < 0) |
263 |
instance_destroy(); |
264 |
} |