1 |
if (global.mnfight == 3) |
2 |
attacked = 0; |
3 |
if (alarm[5] > 0) |
4 |
{ |
5 |
if (global.monster[0] == 1) |
6 |
{ |
7 |
if (global.monsterinstance[0].alarm[5] > alarm[5]) |
8 |
alarm[5] = global.monsterinstance[0].alarm[5]; |
9 |
} |
10 |
if (global.monster[1] == 1) |
11 |
{ |
12 |
if (global.monsterinstance[1].alarm[5] > alarm[5]) |
13 |
alarm[5] = global.monsterinstance[1].alarm[5]; |
14 |
} |
15 |
if (global.monster[2] == 1) |
16 |
{ |
17 |
if (global.monsterinstance[2].alarm[5] > alarm[5]) |
18 |
alarm[5] = global.monsterinstance[2].alarm[5]; |
19 |
} |
20 |
} |
21 |
if (global.mnfight == 1) |
22 |
{ |
23 |
if (talked == 0) |
24 |
{ |
25 |
alarm[5] = 110; |
26 |
alarm[6] = 1;gml_Object_obj_ripoff_alphys_Alarm_6.gmlblcon = instance_create(x + 110, y, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
global.msg[0] = ;
if (talkt == 0)
global.msg[0] = You hate me,Delay 11 don't you...? ;
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;
if (turns == 0)
turns = 1;
else
turns = 0;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 74;
blconwd = instance_create(blcon.x + 22, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 24;
if (turns == 0)
global.border = 26;
if (turns == 1)
global.border = 24;
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_ripoff_alphys_Alarm_6.gmlblcon = instance_create(x + 110, y, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
global.msg[0] = ;
if (talkt == 0)
global.msg[0] = You hate me,Delay 11 don't you...? ;
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;
if (turns == 0)
turns = 1;
else
turns = 0;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 74;
blconwd = instance_create(blcon.x + 22, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 24;
if (turns == 0)
global.border = 26;
if (turns == 1)
global.border = 24;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8; |
34 |
alarm[5] = 2; |
35 |
} |
36 |
if (global.hurtanim[myself] == 1) |
37 |
{ |
38 |
shudder = 8; |
39 |
alarm[3] = global.damagetimer;gml_Object_obj_ripoff_alphys_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;
mypart1.pause = 1;
snd_play(snd_damage);
alarm[8] = 11;
}
if (sha == 0)
sha = x;
x = sha + shudder;
if (shudder < 0)
shudder = -(shudder + 1);
else
shudder = -shudder;
if (shudder == 0)
{
sha = 0;
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2; |
40 |
global.hurtanim[myself] = 3; |
41 |
} |
42 |
if (global.hurtanim[myself] == 2) |
43 |
{ |
44 |
with (dmgwriter) |
45 |
alarm[2] |
46 |
if (global.monsterhp[myself] >= 1) |
47 |
{ |
48 |
global.hurtanim[myself] = 0; |
49 |
mypart1.pause = 0; |
50 |
global.myfight = 0; |
51 |
global.mnfight = 1; |
52 |
} |
53 |
else |
54 |
{ |
55 |
global.myfight = 0; |
56 |
global.mnfight = 1; |
57 |
killed = 1; |
58 |
instance_destroy(); |
59 |
} |
60 |
} |
61 |
if (global.hurtanim[myself] == 5) |
62 |
{ |
63 |
global.damage = 0; |
64 |
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter); |
65 |
with (obj_dmgwriter) |
66 |
alarm[2] |
67 |
global.myfight = 0; |
68 |
global.mnfight = 1; |
69 |
global.hurtanim[myself] = 0; |
70 |
} |
71 |
if (global.mnfight == 2) |
72 |
{ |
73 |
if (attacked == 0) |
74 |
{ |
75 |
pop = scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; (); |
76 |
global.turntimer = 150; |
77 |
global.firingrate = 10; |
78 |
if (pop == 3) |
79 |
global.firingrate = global.firingrate * 2.5; |
80 |
if (pop == 2) |
81 |
global.firingrate = global.firingrate * 1.8; |
82 |
global.turntimer = 10; |
83 |
if (turns == 1) |
84 |
{ |
85 |
global.attacktype = 36; |
86 |
instance_create(0, 0, obj_mettattackgen); |
87 |
} |
88 |
if (turns == 0) |
89 |
{ |
90 |
global.specialdam[1] = 0; |
91 |
global.attacktype = 40; |
92 |
instance_create(0, 0, obj_mettattackgen); |
93 |
} |
94 |
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_alphys_473") ; |
95 |
attacked = 1; |
96 |
} |
97 |
if (mercymod == 999999) |
98 |
{ |
99 |
global.turntimer = -1; |
100 |
global.mnfight = 3; |
101 |
} |
102 |
whatiheard = -1; |
103 |
} |
104 |
if (global.myfight == 2) |
105 |
{ |
106 |
if (whatiheard != -1) |
107 |
{ |
108 |
if (global.heard == 0) |
109 |
{ |
110 |
if (whatiheard == 0) |
111 |
{ |
112 |
global.msc = 0; |
113 |
mercyno += 1; |
114 |
global.msg[0] = * You tell the Lost Soul that you'll continue to support her.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_alphys_508") ; |
115 |
global.msg[1] = * Something about the way you said that 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_alphys_509") ; |
116 |
if (mercyno >= 3) |
117 |
{ |
118 |
global.msg[1] = * Suddenly,Delay 11 she remembers...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_alphys_512") ; |
119 |
saved = 1; |
120 |
global.mnfight = 5; |
121 |
} |
122 |
OBJ_WRITER.halt = 3; |
123 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
124 |
with (iii) |
125 |
halt = 0; |
126 |
whatiheard = 9; |
127 |
} |
128 |
if (whatiheard == 3) |
129 |
{ |
130 |
global.msc = 0; |
131 |
mercyno += 1; |
132 |
global.msg[0] = * You call the Lost Soul on the phone...Delay 11 * She starts to sweat.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_alphys_525") ; |
133 |
global.msg[1] = * She doesn't know why,Delay 11 but this all seems very familiar...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_alphys_526") ; |
134 |
if (mercyno >= 3) |
135 |
{ |
136 |
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_alphys_529") ; |
137 |
saved = 1; |
138 |
global.mnfight = 5; |
139 |
} |
140 |
OBJ_WRITER.halt = 3; |
141 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
142 |
with (iii) |
143 |
halt = 0; |
144 |
} |
145 |
if (whatiheard == 1) |
146 |
{ |
147 |
global.msc = 0; |
148 |
mercyno += 1; |
149 |
global.msg[0] = * You ask the Lost Soul what her favorite cartoon is.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_alphys_543") ; |
150 |
global.msg[1] = * She can barely hold back from giving you an enormous answer...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_alphys_544") ; |
151 |
if (mercyno >= 3) |
152 |
{ |
153 |
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_alphys_547") ; |
154 |
saved = 1; |
155 |
global.mnfight = 5; |
156 |
} |
157 |
OBJ_WRITER.halt = 3; |
158 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
159 |
with (iii) |
160 |
halt = 0; |
161 |
} |
162 |
if (whatiheard == 4) |
163 |
{ |
164 |
global.msc = 0; |
165 |
mercyno += 1; |
166 |
global.msg[0] = * You ask the Lost Soul for help on a quiz question.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_alphys_560") ; |
167 |
global.msg[1] = * She barely holds back from giving you the answer...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_alphys_561") ; |
168 |
if (mercyno >= 3) |
169 |
{ |
170 |
global.msg[1] = * 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_alphys_564") ; |
171 |
saved = 1; |
172 |
global.mnfight = 5; |
173 |
} |
174 |
OBJ_WRITER.halt = 3; |
175 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
176 |
with (iii) |
177 |
halt = 0; |
178 |
} |
179 |
global.heard = 1; |
180 |
} |
181 |
} |
182 |
} |
183 |
if (global.myfight == 4) |
184 |
{ |
185 |
if (global.mercyuse == 0) |
186 |
{ |
187 |
script_execute(scr_mercystandard); |
188 |
if (mercy < 0) |
189 |
instance_destroy(); |
190 |
} |
191 |
} |
192 |
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0) |
193 |
{ |
194 |
script_execute(scr_mercystandard); |
195 |
if (mercy < 0) |
196 |
instance_destroy(); |
197 |
} |
198 |
if (global.mnfight == 5 && instance_exists(OBJ_WRITER) == 0) |
199 |
{ |
200 |
if (saved == 1) |
201 |
{ |
202 |
if (global.hp < global.maxhp) |
203 |
{ |
204 |
global.hp = global.maxhp; |
205 |
snd_play(snd_heal_c); |
206 |
} |
207 |
with (obj_strangetangle) |
208 |
instance_destroy(); |
209 |
instance_create(0, 0, obj_flasher); |
210 |
snd_play(snd_break2); |
211 |
saved = 2; |
212 |
alarm[11] = 3; |
213 |
} |
214 |
if (saved == 3) |
215 |
{ |
216 |
global.faceemotion = 5; |
217 |
global.msc = 0; |
218 |
global.typer = 74; |
219 |
part1.noanim = 1; |
220 |
part1.spearalpha = 0; |
221 |
global.msg[0] = No,Delay 11 that's not true!Delay 11 My friends like me!Delay 11 And I like you,Delay 11 too!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_alphys_628") ; |
222 |
scr_blcon_x(x + 110, y); |
223 |
saved = 4; |
224 |
} |
225 |
if (saved == 4 && instance_exists(OBJ_WRITER) == 0) |
226 |
{ |
227 |
instance_create(-10, -10, obj_screenwhiter); |
228 |
saved = 5; |
229 |
instance_create(0, 0, obj_screenwhiter); |
230 |
alarm[11] = 34; |
231 |
} |
232 |
if (saved == 6) |
233 |
{ |
234 |
global.battlegroup = 256; |
235 |
global.flag[506 saved_alphys] = 1; |
236 |
room_restart(); |
237 |
} |
238 |
} |