1 |
if (global.mnfight == 4 && attacked == 1) |
2 |
{ |
3 |
if (hitno > 0) |
4 |
{ |
5 |
if (hitno == 1) |
6 |
rating += 1; |
7 |
if (hitno > 1) |
8 |
rating += 2; |
9 |
if (berserk == 1) |
10 |
rating -= 1; |
11 |
} |
12 |
else |
13 |
{ |
14 |
if (rating >= 10 && lesson > 5) |
15 |
rating -= 2; |
16 |
else if (rating > 8) |
17 |
rating -= 1; |
18 |
if (berserk == 1) |
19 |
{ |
20 |
if (rating > 6) |
21 |
rating -= 1; |
22 |
} |
23 |
} |
24 |
attacked = 0; |
25 |
global.mnfight = 5; |
26 |
if (global.border == 12) |
27 |
global.border = 13; |
28 |
SCR_BORDERSETUPSCR_BORDERSETUPif (global.border == 0)
{
global.idealborder[0] = 32;
global.idealborder[1] = 602;
global.idealborder[2] = 250;
global.idealborder[3] = 385;
}
if (global.border == 1)
{
global.idealborder[0] = 217;
global.idealborder[1] = 417;
global.idealborder[2] = 180;
global.idealborder[3] = 385;
}
if (global.border == 2)
{
global.idealborder[0] = 217;
global.idealborder[1] = 417;
global.idealborder[2] = 125;
global.idealborder[3] = 385;
}
if (global.border == 3)
{
global.idealborder[0] = 237;
global.idealborder[1] = 397;
global.idealborder[2] = 250;
global.idealborder[3] = 385;
}
if (global.border == 4)
{
global.idealborder[0] = 267;
global.idealborder[1] = 367;
global.idealborder[2] = 295;
global.idealborder[3] = 385;
}
if (global.border == 5)
{
global.idealborder[0] = 192;
global.idealborder[1] = 442;
global.idealborder[2] = 250;
global.idealborder[3] = 385;
}
if (global.border == 6)
{
global.idealborder[0] = 227;
global.idealborder[1] = 407;
global.idealborder[2] = 250;
global.idealborder[3] = 385;
}
if (global.border == 7)
{
global.idealborder[0] = 227;
global.idealborder[1] = 407;
global.idealborder[2] = 200;
global.idealborder[3] = 385;
}
if (global.border == 8)
{
global.idealborder[0] = 202;
global.idealborder[1] = 432;
global.idealborder[2] = 290;
global.idealborder[3] = 385;
}
if (global.border == 9)
{
global.idealborder[0] = 132;
global.idealborder[1] = 492;
global.idealborder[2] = 250;
global.idealborder[3] = 385;
}
if (global.border == 10)
{
global.idealborder[0] = 147;
global.idealborder[1] = 487;
global.idealborder[2] = 200;
global.idealborder[3] = 385;
}
if (global.border == 11)
{
global.idealborder[0] = 32;
global.idealborder[1] = 602;
global.idealborder[2] = 330;
global.idealborder[3] = 465;
}
if (global.border == 12)
{
global.idealborder[0] = (room_width / 2) - 40;
global.idealborder[1] = (room_width / 2) + 40;
global.idealborder[2] = (room_height / 2) - 40;
global.idealborder[3] = (room_height / 2) + 40;
}
if (global.border == 13)
{
global.idealborder[0] = (room_width / 2) - 40;
global.idealborder[1] = (room_width / 2) + 40;
global.idealborder[2] = 250;
global.idealborder[3] = 385;
}
if (global.border == 14)
{
global.idealborder[0] = (room_width / 2) - 35;
... (); |
29 |
alarm[7] = 10; |
30 |
if (instance_exists(obj_undynesiner2)) |
31 |
{ |
32 |
with (obj_undynesiner2) |
33 |
event_user(1); |
34 |
} |
35 |
} |
36 |
if (global.mnfight == 3) |
37 |
attacked = 0; |
38 |
if (alarm[5] > 0) |
39 |
{ |
40 |
if (global.monster[0] == 1) |
41 |
{ |
42 |
if (global.monsterinstance[0].alarm[5] > alarm[5])gml_Object_obj_ripoff_undyne_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 18;
if (obj_heart.sprite_index == spr_heartgreen)
{
global.border = 12;
event_user(2);
} |
43 |
alarm[5] = global.monsterinstance[0].alarm[5];gml_Object_obj_ripoff_undyne_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 18;
if (obj_heart.sprite_index == spr_heartgreen)
{
global.border = 12;
event_user(2);
} |
44 |
} |
45 |
if (global.monster[1] == 1) |
46 |
{ |
47 |
if (global.monsterinstance[1].alarm[5] > alarm[5])gml_Object_obj_ripoff_undyne_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 18;
if (obj_heart.sprite_index == spr_heartgreen)
{
global.border = 12;
event_user(2);
} |
48 |
alarm[5] = global.monsterinstance[1].alarm[5];gml_Object_obj_ripoff_undyne_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 18;
if (obj_heart.sprite_index == spr_heartgreen)
{
global.border = 12;
event_user(2);
} |
49 |
} |
50 |
if (global.monster[2] == 1) |
51 |
{ |
52 |
if (global.monsterinstance[2].alarm[5] > alarm[5])gml_Object_obj_ripoff_undyne_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 18;
if (obj_heart.sprite_index == spr_heartgreen)
{
global.border = 12;
event_user(2);
} |
53 |
alarm[5] = global.monsterinstance[2].alarm[5];gml_Object_obj_ripoff_undyne_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 18;
if (obj_heart.sprite_index == spr_heartgreen)
{
global.border = 12;
event_user(2);
} |
54 |
} |
55 |
} |
56 |
if (global.mnfight == 1) |
57 |
{ |
58 |
if (talked == 0) |
59 |
{ |
60 |
alarm[5] = 110;gml_Object_obj_ripoff_undyne_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 18;
if (obj_heart.sprite_index == spr_heartgreen)
{
global.border = 12;
event_user(2);
} |
61 |
alarm[6] = 1;gml_Object_obj_ripoff_undyne_Alarm_6.gmlblcon = instance_create(x + 100, y, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
global.msg[0] = ;
if (talkt == 0)
global.msg[0] = ;
if (talkt == 1)
global.msg[0] = ;
if (talkt == 2)
global.msg[0] = ;
if (talkt == 2)
talkt = 0;
if (talkt == 1)
talkt = 2;
if (talkt == 0)
talkt = 1;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 39;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 17;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
if (obj_heart.sprite_index == spr_heartgreen)
{
global.border = 13;
obj_heart.x = (room_width / 2) - 8;
obj_heart.y = obj_uborder.y + 34;
greenlock = 1;
} |
62 |
talked = 1; |
63 |
global.heard = 0; |
64 |
} |
65 |
} |
66 |
if (control_check_pressed(0)) |
67 |
{ |
68 |
if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0)gml_Object_obj_ripoff_undyne_Alarm_6.gmlblcon = instance_create(x + 100, y, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
global.msg[0] = ;
if (talkt == 0)
global.msg[0] = ;
if (talkt == 1)
global.msg[0] = ;
if (talkt == 2)
global.msg[0] = ;
if (talkt == 2)
talkt = 0;
if (talkt == 1)
talkt = 2;
if (talkt == 0)
talkt = 1;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 39;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 17;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
if (obj_heart.sprite_index == spr_heartgreen)
{
global.border = 13;
obj_heart.x = (room_width / 2) - 8;
obj_heart.y = obj_uborder.y + 34;
greenlock = 1;
} |
69 |
alarm[5] = 2;gml_Object_obj_ripoff_undyne_Alarm_5.gmlwith (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 18;
if (obj_heart.sprite_index == spr_heartgreen)
{
global.border = 12;
event_user(2);
} |
70 |
} |
71 |
if (global.hurtanim[myself] == 1) |
72 |
{ |
73 |
shudder = 8; |
74 |
alarm[3] = global.damagetimer;gml_Object_obj_ripoff_undyne_Alarm_3.gmlif (mypart1.pause != 1)
{
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
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; |
75 |
global.hurtanim[myself] = 3; |
76 |
} |
77 |
if (global.hurtanim[myself] == 2) |
78 |
{ |
79 |
with (dmgwriter) |
80 |
alarm[2] |
81 |
if (global.monsterhp[myself] >= 1) |
82 |
{ |
83 |
global.hurtanim[myself] = 0; |
84 |
global.myfight = 0; |
85 |
global.mnfight = 1; |
86 |
} |
87 |
else |
88 |
{ |
89 |
global.myfight = 0; |
90 |
global.mnfight = 1; |
91 |
killed = 1; |
92 |
instance_destroy(); |
93 |
} |
94 |
} |
95 |
if (global.hurtanim[myself] == 5) |
96 |
{ |
97 |
global.damage = 0; |
98 |
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter); |
99 |
with (obj_dmgwriter) |
100 |
alarm[2] |
101 |
global.myfight = 0; |
102 |
global.mnfight = 1; |
103 |
global.hurtanim[myself] = 0; |
104 |
} |
105 |
if (global.mnfight == 2) |
106 |
{ |
107 |
if (attacked == 0) |
108 |
{ |
109 |
pop = scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; (); |
110 |
global.turntimer = 180; |
111 |
global.firingrate = 10; |
112 |
if (pop == 3) |
113 |
global.firingrate = global.firingrate * 2.5; |
114 |
if (pop == 2) |
115 |
global.firingrate = global.firingrate * 1.8; |
116 |
hitno = 0; |
117 |
xx = room_width / 2; |
118 |
yy = room_height / 2; |
119 |
if (obj_heart.sprite_index == spr_heartgreen) |
120 |
{ |
121 |
gen = instance_create(xx, yy, obj_spearblocker); |
122 |
if (turns == 0) |
123 |
lesson = -50; |
124 |
if (turns == 1) |
125 |
lesson = -51; |
126 |
gen.lesson = lesson; |
127 |
gen.rating = rating; |
128 |
gen.dmg = global.monsteratk[myself]; |
129 |
with (gen) |
130 |
event_user(1); |
131 |
} |
132 |
if (turns == 0) |
133 |
turns = 1; |
134 |
global.msg[0] = * The Lost Soul stands there.scr_gettextscr_gettextvar text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_ripoff_undyne_563") ; |
135 |
attacked = 1; |
136 |
} |
137 |
if (mercymod == 999999) |
138 |
{ |
139 |
global.turntimer = -1; |
140 |
global.mnfight = 3; |
141 |
} |
142 |
whatiheard = -1; |
143 |
} |
144 |
if (global.myfight == 2) |
145 |
{ |
146 |
if (whatiheard != -1) |
147 |
{ |
148 |
if (global.heard == 0) |
149 |
{ |
150 |
if (whatiheard == 0) |
151 |
{ |
152 |
global.msc = 0; |
153 |
mercyno += 1; |
154 |
global.msg[0] = * You tapped the Lost Soul lightly.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_ripoff_undyne_597") ; |
155 |
global.msg[1] = * Something about the way you fight is familiar to her...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_ripoff_undyne_598") ; |
156 |
if (mercyno >= 3) |
157 |
{ |
158 |
global.msg[1] = * Something about the way you fight...Delay 11 * It's all flooding back!Wait for inputClose MessageClose Messagescr_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_ripoff_undyne_601") ; |
159 |
saved = 1; |
160 |
global.mnfight = 5; |
161 |
} |
162 |
OBJ_WRITER.halt = 3; |
163 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
164 |
with (iii) |
165 |
halt = 0; |
166 |
whatiheard = 9; |
167 |
} |
168 |
if (whatiheard == 3) |
169 |
{ |
170 |
global.msc = 0; |
171 |
mercyno += 1; |
172 |
global.msg[0] = * You asked the Lost Soul to teach you how to cook.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_ripoff_undyne_614") ; |
173 |
global.msg[1] = * She doesn't know why,Delay 11 but she kind of wants to teach you how...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_ripoff_undyne_615") ; |
174 |
if (mercyno >= 3) |
175 |
{ |
176 |
global.msg[1] = * Suddenly,Delay 11 the memories are flooding back!Wait for inputClose MessageClose Messagescr_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_ripoff_undyne_618") ; |
177 |
saved = 1; |
178 |
global.mnfight = 5; |
179 |
} |
180 |
OBJ_WRITER.halt = 3; |
181 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
182 |
with (iii) |
183 |
halt = 0; |
184 |
} |
185 |
if (whatiheard == 1) |
186 |
{ |
187 |
global.msc = 0; |
188 |
mercyno += 1; |
189 |
global.msg[0] = * You gave the Lost Soul a big smile,Delay 11 like you remember she likes to do.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_ripoff_undyne_632") ; |
190 |
global.msg[1] = * For some reason,Delay 11 she sort of wants to smile back...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_ripoff_undyne_633") ; |
191 |
if (mercyno >= 3) |
192 |
{ |
193 |
global.msg[1] = * Suddenly,Delay 11 the memories are flooding back!Wait for inputClose MessageClose Messagescr_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_ripoff_undyne_636") ; |
194 |
saved = 1; |
195 |
global.mnfight = 5; |
196 |
} |
197 |
OBJ_WRITER.halt = 3; |
198 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
199 |
with (iii) |
200 |
halt = 0; |
201 |
} |
202 |
if (whatiheard == 4) |
203 |
{ |
204 |
global.msc = 0; |
205 |
mercyno += 1; |
206 |
global.msg[0] = * You clashed against the Lost Soul with all of your might.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_ripoff_undyne_649") ; |
207 |
global.msg[1] = * She feels your fighting spirit...Delay 11 * It's familiar somehow.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_ripoff_undyne_650") ; |
208 |
if (mercyno >= 3) |
209 |
{ |
210 |
global.msg[1] = * She recognizes your fighting spirit...Delay 11 suddenly,Delay 11 memories are flooding back!Wait for inputClose MessageClose Messagescr_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_ripoff_undyne_653") ; |
211 |
saved = 1; |
212 |
global.mnfight = 5; |
213 |
} |
214 |
OBJ_WRITER.halt = 3; |
215 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
216 |
with (iii) |
217 |
halt = 0; |
218 |
} |
219 |
global.heard = 1; |
220 |
} |
221 |
} |
222 |
} |
223 |
if (greenlock == 1 && global.mnfight > 0) |
224 |
{ |
225 |
if (obj_heart.sprite_index == spr_heartgreen) |
226 |
obj_heart.y = obj_uborder.y + 34; |
227 |
else |
228 |
greenlock = 0; |
229 |
} |
230 |
else |
231 |
{ |
232 |
greenlock = 0; |
233 |
} |
234 |
if (darkify == 1) |
235 |
{ |
236 |
if (pseudodarker.image_alpha < 0.5) |
237 |
pseudodarker.image_alpha += 0.04; |
238 |
else |
239 |
darkify = 2; |
240 |
obj_borderparent.image_alpha = 1 - pseudodarker.image_alpha; |
241 |
} |
242 |
if (darkify == 3) |
243 |
{ |
244 |
if (pseudodarker.image_alpha > 0) |
245 |
pseudodarker.image_alpha -= 0.04; |
246 |
obj_borderparent.image_alpha = 1 - pseudodarker.image_alpha; |
247 |
if (pseudodarker.image_alpha <= 0) |
248 |
{ |
249 |
darkify = 0; |
250 |
with (pseudodarker) |
251 |
instance_destroy(); |
252 |
} |
253 |
} |
254 |
if (global.mnfight == 3 && darkify > 0 && darkify != 3) |
255 |
darkify = 3; |
256 |
if (obj_heart.sprite_index == spr_heartgreen && global.mnfight == 2) |
257 |
obj_heart.movement = 3; |
258 |
if (global.myfight == 4) |
259 |
{ |
260 |
if (global.mercyuse == 0) |
261 |
{ |
262 |
script_execute(scr_mercystandard); |
263 |
if (mercy < 0) |
264 |
instance_destroy(); |
265 |
} |
266 |
} |
267 |
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0) |
268 |
{ |
269 |
script_execute(scr_mercystandard); |
270 |
if (mercy < 0) |
271 |
instance_destroy(); |
272 |
} |
273 |
if (global.mnfight == 5 && instance_exists(OBJ_WRITER) == 0) |
274 |
{ |
275 |
if (saved == 1) |
276 |
{ |
277 |
if (global.hp < global.maxhp) |
278 |
{ |
279 |
global.hp = global.maxhp; |
280 |
snd_play(snd_heal_c); |
281 |
} |
282 |
with (obj_strangetangle) |
283 |
instance_destroy(); |
284 |
instance_create(0, 0, obj_flasher); |
285 |
snd_play(snd_break2); |
286 |
saved = 2; |
287 |
alarm[11] = 3; |
288 |
} |
289 |
if (saved == 3) |
290 |
{ |
291 |
global.faceemotion = 9; |
292 |
global.msc = 0; |
293 |
global.typer = 39; |
294 |
part1.noanim = 1; |
295 |
part1.spearalpha = 0; |
296 |
global.msg[0] = Well,Delay 11 some humans are OK,Delay 11 I guess!Wait for inputClose MessageClose Messagescr_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_ripoff_undyne_748") ; |
297 |
scr_blcon_x(x + 80, y); |
298 |
saved = 4; |
299 |
} |
300 |
if (saved == 4 && instance_exists(OBJ_WRITER) == 0) |
301 |
{ |
302 |
instance_create(-10, -10, obj_screenwhiter); |
303 |
saved = 5; |
304 |
instance_create(0, 0, obj_screenwhiter); |
305 |
alarm[11] = 34; |
306 |
} |
307 |
if (saved == 6) |
308 |
{ |
309 |
global.battlegroup = 256; |
310 |
global.flag[505 saved_undyne] = 1; |
311 |
room_restart(); |
312 |
} |
313 |
} |