|
1
|
if (global.mnfight == 3)
|
|
2
|
{
|
|
3
|
attacked = 0;
|
|
4
|
talked = 0;
|
|
5
|
}
|
|
6
|
if (alarm[5] > 0)
|
|
7
|
{
|
|
8
|
if (global.monster[0] == 1)
|
|
9
|
{
|
|
10
|
if (global.monsterinstance[0].alarm[5] > alarm[5]) gml_Object_obj_mettatonb_third_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
11
|
alarm[5] = global.monsterinstance[0].alarm[5]; gml_Object_obj_mettatonb_third_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
12
|
}
|
|
13
|
if (global.monster[1] == 1)
|
|
14
|
{
|
|
15
|
if (global.monsterinstance[1].alarm[5] > alarm[5]) gml_Object_obj_mettatonb_third_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
16
|
alarm[5] = global.monsterinstance[1].alarm[5]; gml_Object_obj_mettatonb_third_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
17
|
}
|
|
18
|
if (global.monster[2] == 1)
|
|
19
|
{
|
|
20
|
if (global.monsterinstance[2].alarm[5] > alarm[5]) gml_Object_obj_mettatonb_third_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
21
|
alarm[5] = global.monsterinstance[2].alarm[5]; gml_Object_obj_mettatonb_third_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
22
|
}
|
|
23
|
}
|
|
24
|
if (global.mnfight == 1)
|
|
25
|
{
|
|
26
|
if (talked == 1 && instance_exists(OBJ_WRITER) == 0)
|
|
27
|
{
|
|
28
|
alarm[5] = 1; gml_Object_obj_mettatonb_third_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
29
|
talked = 2;
|
|
30
|
}
|
|
31
|
if (talked == 0)
|
|
32
|
{
|
|
33
|
attacked = 0;
|
|
34
|
alarm[6] = 1; gml_Object_obj_mettatonb_third_Alarm_6.gml
gg = floor(random(3));
mycommand = round(random(100));
global.msc = 0;
global.msg[0] = THIS IS IT, DARLING! SAY GOODBYE!Wait for inputClose MessageClose Message ;
turns += 1;
if (turns > 0)
{
if (turns == 1)
{
global.msg[0] = YES, I WAS THE ONE THAT RE-ARRANGED THE CORE!Wait for input ;
global.msg[1] = I WAS THE ONE THAT HIRED EVERYONE TO KILL YOU!Wait for input ;
global.msg[2] = THAT, HOWEVER, WAS A SHORT-SIGHTED PLAN.Wait for input ;
global.msg[3] = YOU KNOW WHAT WOULD BE A HUNDRED TIMES BETTER?Wait for input ;
global.msg[4] = KILLING YOU MYSELF!!Wait for inputClose MessageClose Message ;
}
if (turns == 2)
{
global.msg[0] = LISTEN, DARLING. I'VE SEEN YOU FIGHT.Wait for input ;
global.msg[1] = YOU'RE WEAK.Wait for input ;
global.msg[2] = IF YOU CONTINUE FORWARD, ASGORE WILL TAKE YOUR SOUL.Wait for input ;
global.msg[3] = AND WITH YOUR SOUL, ASGORE WILL DESTROY HUMANITY.Wait for inputClose MessageClose Message ;
}
if (turns == 3)
{
global.msg[0] = BUT IF I GET YOUR SOUL, I CAN STOP ASGORE'S PLAN!Wait for input ;
global.msg[1] = I CAN SAVE HUMANITY FROM DESTRUCTION!Wait for inputClose MessageClose Message ;
}
if (turns == 4)
{
global.msg[0] = THEN, USING YOUR SOUL, I'LL CROSS THROUGH THE BARRIER...Wait for input ;
global.msg[1] = AND BECOME THE STAR I'VE ALWAYS DREAMED OF BEING!Wait for input ;
global.msg[2] = HUNDREDS, THOUSANDS...Wait for input ;
global.msg[3] = NO! MILLIONS OF HUMANS WILL WATCH ME!Wait for inputClose MessageClose Message ;
}
if (turns == 5)
{
global.msg[0] = GLITZ! GLAMOUR! I'LL FINALLY HAVE IT ALL!Wait for input ;
global.msg[1] = SO WHAT IF A FEW PEOPLE HAVE TO DIE?Wait for input ;
global.msg[2] = THAT'S SHOW BUSINESS, BABY!Wait for inputClose MessageClose Message ;
}
}
global.typer = 51;
scr_blcon(mypart1.x - 320, mypart1.y - 120, 1);
global.border = 24;
if (turns == 0)
global.border = 0;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
|
|
35
|
talked = 1;
|
|
36
|
global.heard = 0;
|
|
37
|
}
|
|
38
|
if (control_check_pressed(1))
|
|
39
|
{
|
|
40
|
if (instance_exists(OBJ_WRITER))
|
|
41
|
OBJ_WRITER.stringpos = string_length(OBJ_WRITER.originalstring);
|
|
42
|
}
|
|
43
|
}
|
|
44
|
if (global.hurtanim[myself] == 1)
|
|
45
|
{
|
|
46
|
shudder = 8;
|
|
47
|
alarm[3] = global.damagetimer; gml_Object_obj_mettatonb_third_Alarm_3.gml
if (hurta == 0)
{
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
hurta = 1;
snd_play(snd_damage);
alarm[8]
}
if (shudder < 0)
shudder = -(shudder + 1);
else
shudder = -shudder;
if (shudder == 0)
{
sha = 0;
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2;
|
|
48
|
global.hurtanim[myself] = 3;
|
|
49
|
}
|
|
50
|
if (global.hurtanim[myself] == 2)
|
|
51
|
{
|
|
52
|
with (dmgwriter)
|
|
53
|
alarm[2]
|
|
54
|
if (global.monsterhp[myself] >= 1)
|
|
55
|
{
|
|
56
|
global.hurtanim[myself] = 0;
|
|
57
|
hurta = 0;
|
|
58
|
global.myfight = 0;
|
|
59
|
global.mnfight = 1;
|
|
60
|
}
|
|
61
|
else
|
|
62
|
{
|
|
63
|
global.myfight = 0;
|
|
64
|
global.mnfight = 1;
|
|
65
|
killed = 1;
|
|
66
|
instance_destroy();
|
|
67
|
}
|
|
68
|
}
|
|
69
|
if (global.hurtanim[myself] == 5)
|
|
70
|
{
|
|
71
|
global.damage = 0;
|
|
72
|
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
|
|
73
|
with (obj_dmgwriter)
|
|
74
|
alarm[2]
|
|
75
|
global.myfight = 0;
|
|
76
|
global.mnfight = 1;
|
|
77
|
global.hurtanim[myself] = 0;
|
|
78
|
}
|
|
79
|
if (global.mnfight == 2)
|
|
80
|
{
|
|
81
|
if (attacked == 0)
|
|
82
|
{
|
|
83
|
if (turns >= 5)
|
|
84
|
{
|
|
85
|
if (con == 0)
|
|
86
|
con = 1;
|
|
87
|
}
|
|
88
|
if (con != 1)
|
|
89
|
{
|
|
90
|
if (turns == 1)
|
|
91
|
global.attacktype = 100;
|
|
92
|
else
|
|
93
|
mypart1.tang = 0;
|
|
94
|
if (turns == 2)
|
|
95
|
global.attacktype = 26;
|
|
96
|
if (turns == 3)
|
|
97
|
global.attacktype = 27;
|
|
98
|
if (turns == 4)
|
|
99
|
global.attacktype = 28;
|
|
100
|
if (turns > 4)
|
|
101
|
global.attacktype = 29;
|
|
102
|
gen = instance_create(0, 0, obj_mettattackgen);
|
|
103
|
if (turns == 1)
|
|
104
|
gen.dark = 0;
|
|
105
|
}
|
|
106
|
with (mypart1)
|
|
107
|
event_user(0);
|
|
108
|
global.msg[0] = * Mettaton.scr_gettextscr_gettext
var 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_mettatonb_third_523") ;
|
|
109
|
attacked = 1;
|
|
110
|
alarm[7] = 20; gml_Object_obj_mettatonb_third_Alarm_7.gml
attacked = 2;
|
|
111
|
}
|
|
112
|
}
|
|
113
|
if (global.myfight == 2)
|
|
114
|
{
|
|
115
|
if (whatiheard != -1)
|
|
116
|
{
|
|
117
|
if (global.heard == 0)
|
|
118
|
{
|
|
119
|
if (whatiheard == 0)
|
|
120
|
{
|
|
121
|
global.msc = 0;
|
|
122
|
global.msg[0] = * METTATON - ATK 30 DEF 255 * Seriously,Delay 11 his metal body is invulnerable!Wait for input^scr_gettextscr_gettext
var 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_mettatonb_third_545") ;
|
|
123
|
OBJ_WRITER.halt = 3;
|
|
124
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
125
|
with (iii)
|
|
126
|
halt = 0;
|
|
127
|
whatiheard = 9;
|
|
128
|
}
|
|
129
|
if (whatiheard == 3)
|
|
130
|
{
|
|
131
|
global.msc = 0;
|
|
132
|
global.msg[0] = * This is probably what you'll do if things continue in this manner.Wait for input^scr_gettextscr_gettext
var 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_mettatonb_third_555") ;
|
|
133
|
if (global.flag[424 turn_mettaton] == 1)
|
|
134
|
{
|
|
135
|
global.flag[424 turn_mettaton] = 2;
|
|
136
|
global.msg[0] = * You tell Mettaton that there's a mirror behind him.Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var 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_mettatonb_third_560") ;
|
|
137
|
con = 40;
|
|
138
|
}
|
|
139
|
OBJ_WRITER.halt = 3;
|
|
140
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
141
|
with (iii)
|
|
142
|
halt = 0;
|
|
143
|
}
|
|
144
|
global.heard = 1;
|
|
145
|
}
|
|
146
|
}
|
|
147
|
}
|
|
148
|
if (whatiheard == 3 && flex == 3 && instance_exists(OBJ_WRITER))
|
|
149
|
{
|
|
150
|
if (OBJ_WRITER.stringno == 1)
|
|
151
|
{
|
|
152
|
vspeed = -4;
|
|
153
|
mypart1.vspeed = -4;
|
|
154
|
}
|
|
155
|
}
|
|
156
|
if (global.myfight == 4)
|
|
157
|
{
|
|
158
|
if (global.mercyuse == 0)
|
|
159
|
{
|
|
160
|
script_execute(scr_mercystandard);
|
|
161
|
if (mercy < 0)
|
|
162
|
instance_destroy();
|
|
163
|
}
|
|
164
|
}
|
|
165
|
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0)
|
|
166
|
{
|
|
167
|
script_execute(scr_mercystandard);
|
|
168
|
if (mercy < 0)
|
|
169
|
instance_destroy();
|
|
170
|
}
|
|
171
|
if (con == 1)
|
|
172
|
{
|
|
173
|
obj_heart.shot = 0;
|
|
174
|
global.border = 0;
|
|
175
|
snd_play(snd_phone);
|
|
176
|
SCR_BORDERSETUPSCR_BORDERSETUP
if (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;
... ();
|
|
177
|
con = 1.1;
|
|
178
|
alarm[4] = 20; gml_Object_obj_mettatonb_third_Alarm_4.gml
con += 1;
|
|
179
|
}
|
|
180
|
if (con == 2.1)
|
|
181
|
{
|
|
182
|
phone = instance_create(520, 260, obj_npc_marker);
|
|
183
|
phone.sprite_index = spr_fakephone;
|
|
184
|
phone.image_speed = 0;
|
|
185
|
phone.visible = true;
|
|
186
|
phone.depth = 20;
|
|
187
|
snd_play(snd_phone);
|
|
188
|
phone.vspeed = -2;
|
|
189
|
con = 2;
|
|
190
|
alarm[4] = 30; gml_Object_obj_mettatonb_third_Alarm_4.gml
con += 1;
|
|
191
|
}
|
|
192
|
if (con == 3)
|
|
193
|
{
|
|
194
|
phone.vspeed = 0;
|
|
195
|
snd_play(snd_phone);
|
|
196
|
con = 5;
|
|
197
|
alarm[4] = 30; gml_Object_obj_mettatonb_third_Alarm_4.gml
con += 1;
|
|
198
|
}
|
|
199
|
if (con == 6 && instance_exists(OBJ_WRITER) == 0)
|
|
200
|
{
|
|
201
|
shblcon = instance_create(phone.x + 10, phone.y, obj_blconsm);
|
|
202
|
shblcon.sprite_index = spr_shockblcon2;
|
|
203
|
shake = 1;
|
|
204
|
global.typer = 49;
|
|
205
|
global.msg[0] = U..uh... I can't see what's going on in there, but...Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_644") ;
|
|
206
|
global.msg[1] = D-d-don't give up, okay!?Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_645") ;
|
|
207
|
global.msg[2] = Th... there's o-one l-l-last way to beat Mettaton...Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_646") ;
|
|
208
|
global.msg[3] = It's... um... it's...Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_647") ;
|
|
209
|
global.msg[4] = This is a work in- progress, so don't judge it too hard...Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_648") ;
|
|
210
|
global.msg[5] = But, you know how Mettaton always faces f-f-forward?Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_649") ;
|
|
211
|
global.msg[6] = That's because there's a switch on his backside.Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_650") ;
|
|
212
|
global.msg[7] = S-s-so if y-y-you c-c-can turn him around... um...Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_651") ;
|
|
213
|
global.msg[8] = And, umm... press th-th-th-the switch...Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_652") ;
|
|
214
|
global.msg[9] = He'll be... um... He'll be...Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_653") ;
|
|
215
|
global.msg[10] = Vulnerable.Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_654") ;
|
|
216
|
global.msg[11] = Well, g-g-gotta go!Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var 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_mettatonb_third_655") ;
|
|
217
|
instance_create(phone.x - 100, phone.y - 140, OBJ_WRITER);
|
|
218
|
con = 6.1;
|
|
219
|
}
|
|
220
|
if (con == 6.1 && instance_exists(OBJ_WRITER))
|
|
221
|
{
|
|
222
|
if (control_check_pressed(1))
|
|
223
|
{
|
|
224
|
if (instance_exists(OBJ_WRITER))
|
|
225
|
OBJ_WRITER.stringpos = string_length(OBJ_WRITER.originalstring);
|
|
226
|
}
|
|
227
|
}
|
|
228
|
if (con == 6.1 && instance_exists(OBJ_WRITER) == 0)
|
|
229
|
{
|
|
230
|
con = 5.2;
|
|
231
|
alarm[4] = 20; gml_Object_obj_mettatonb_third_Alarm_4.gml
con += 1;
|
|
232
|
phone.vspeed = 5;
|
|
233
|
}
|
|
234
|
if (con == 6.2)
|
|
235
|
{
|
|
236
|
con = 7;
|
|
237
|
with (phone)
|
|
238
|
instance_destroy();
|
|
239
|
obj_heart.shot = 1;
|
|
240
|
}
|
|
241
|
if (con == 7 && instance_exists(OBJ_WRITER) == 0)
|
|
242
|
{
|
|
243
|
global.msg[0] = * Seems like a good time to turn Mettaton around.scr_gettextscr_gettext
var 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_mettatonb_third_688") ;
|
|
244
|
global.flag[424 turn_mettaton] = 1;
|
|
245
|
with (shblcon)
|
|
246
|
instance_destroy();
|
|
247
|
con = 8;
|
|
248
|
shake = 0;
|
|
249
|
global.turntimer = -1;
|
|
250
|
global.mnfight = 3;
|
|
251
|
global.myfight = -1;
|
|
252
|
}
|
|
253
|
if (con > 6)
|
|
254
|
{
|
|
255
|
if (shake == 1 && instance_exists(shblcon))
|
|
256
|
{
|
|
257
|
shblcon.x = shblcon.xstart + random(2);
|
|
258
|
shblcon.y = shblcon.ystart + random(2);
|
|
259
|
}
|
|
260
|
}
|
|
261
|
if (con == 11)
|
|
262
|
{
|
|
263
|
obj_heart.movement = -1;
|
|
264
|
con = 12;
|
|
265
|
alarm[4] = 40; gml_Object_obj_mettatonb_third_Alarm_4.gml
con += 1;
|
|
266
|
}
|
|
267
|
if (con == 13)
|
|
268
|
{
|
|
269
|
caster_stop(global.batmusic);
|
|
270
|
ctheart = instance_create(obj_heart.x + 8, obj_heart.y + 8, obj_cutsceneheart);
|
|
271
|
obj_heart.x = -999;
|
|
272
|
obj_heart.movement = -1;
|
|
273
|
con = 14;
|
|
274
|
}
|
|
275
|
if (con == 40 && instance_exists(OBJ_WRITER) == 0)
|
|
276
|
{
|
|
277
|
global.mnfight = -1;
|
|
278
|
global.myfight = -1;
|
|
279
|
global.msc = 0;
|
|
280
|
global.msg[0] = OH??? A MIRROR???Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_820") ;
|
|
281
|
global.msg[1] = RIGHT, I HAVE TO LOOK PERFECT FOR OUR GRAND FINALE!Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var 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_mettatonb_third_821") ;
|
|
282
|
global.typer = 51;
|
|
283
|
scr_blconscr_blcon
writer = instance_create(argument0 + 30, argument1 + 10, OBJ_WRITER);
blcon = instance_create(writer.x - 30, writer.y - 10, obj_blconwideslave);
blcon.parent = writer;
if (argument2 == 1)
blcon.sprite_index = spr_blconwdshrt_l;
if (argument2 == 2)
{
blcon.sprite_index = spr_blconabove;
writer.writingy -= 20;
writer.writingx -= 20;
}
if (argument2 == 3)
{
blcon.sprite_index = spr_blconwdshrt;
writer.writingy -= 20;
}
if (argument2 == 4)
{
blcon.sprite_index = spr_blconbelow;
writer.writingx -= 10;
} (mypart1.x - 320, mypart1.y - 120, 1);
|
|
284
|
con = 41;
|
|
285
|
}
|
|
286
|
if (con == 41 && instance_exists(OBJ_WRITER) == 0)
|
|
287
|
{
|
|
288
|
mypart1.behind = 1;
|
|
289
|
global.msg[0] = HMMM... I DON'T SEE IT... WHERE IS IT...?Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var 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_mettatonb_third_831") ;
|
|
290
|
global.typer = 51;
|
|
291
|
scr_blconscr_blcon
writer = instance_create(argument0 + 30, argument1 + 10, OBJ_WRITER);
blcon = instance_create(writer.x - 30, writer.y - 10, obj_blconwideslave);
blcon.parent = writer;
if (argument2 == 1)
blcon.sprite_index = spr_blconwdshrt_l;
if (argument2 == 2)
{
blcon.sprite_index = spr_blconabove;
writer.writingy -= 20;
writer.writingx -= 20;
}
if (argument2 == 3)
{
blcon.sprite_index = spr_blconwdshrt;
writer.writingy -= 20;
}
if (argument2 == 4)
{
blcon.sprite_index = spr_blconbelow;
writer.writingx -= 10;
} (mypart1.x - 320, mypart1.y - 120, 1);
|
|
292
|
con = 42;
|
|
293
|
}
|
|
294
|
if (con == 42 && instance_exists(OBJ_WRITER) == 0)
|
|
295
|
{
|
|
296
|
caster_free(all);
|
|
297
|
mypart1.behind = 2;
|
|
298
|
snd_play(snd_item);
|
|
299
|
con = 43;
|
|
300
|
alarm[4] = 60; gml_Object_obj_mettatonb_third_Alarm_4.gml
con += 1;
|
|
301
|
}
|
|
302
|
if (con == 44)
|
|
303
|
{
|
|
304
|
global.msg[0] = DID YOU.Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_848") ;
|
|
305
|
global.msg[1] = JUST FLIP.Wait for inputscr_gettextscr_gettext
var 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_mettatonb_third_849") ;
|
|
306
|
global.msg[2] = MY SWITCH?Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var 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_mettatonb_third_850") ;
|
|
307
|
global.typer = 51;
|
|
308
|
scr_blconscr_blcon
writer = instance_create(argument0 + 30, argument1 + 10, OBJ_WRITER);
blcon = instance_create(writer.x - 30, writer.y - 10, obj_blconwideslave);
blcon.parent = writer;
if (argument2 == 1)
blcon.sprite_index = spr_blconwdshrt_l;
if (argument2 == 2)
{
blcon.sprite_index = spr_blconabove;
writer.writingy -= 20;
writer.writingx -= 20;
}
if (argument2 == 3)
{
blcon.sprite_index = spr_blconwdshrt;
writer.writingy -= 20;
}
if (argument2 == 4)
{
blcon.sprite_index = spr_blconbelow;
writer.writingx -= 10;
} (mypart1.x - 320, mypart1.y - 120, 1);
|
|
309
|
con = 46;
|
|
310
|
cc = caster_load("music/computer.ogg");
|
|
311
|
pit = 0.8;
|
|
312
|
}
|
|
313
|
if (con == 46 && instance_exists(OBJ_WRITER) == 0)
|
|
314
|
{
|
|
315
|
mypart1.behind = 3;
|
|
316
|
mypart1.trueanim = 0.1;
|
|
317
|
cc = caster_loop(cc, 0.6, pit);
|
|
318
|
con = 47;
|
|
319
|
}
|
|
320
|
if (con == 47)
|
|
321
|
{
|
|
322
|
pit += 0.013;
|
|
323
|
mypart1.trueanim += 0.04;
|
|
324
|
caster_set_pitch(cc, pit);
|
|
325
|
if (pit > 2.8)
|
|
326
|
con = 48;
|
|
327
|
}
|
|
328
|
if (con == 48)
|
|
329
|
{
|
|
330
|
caster_free(all);
|
|
331
|
snd_play(snd_laz);
|
|
332
|
wht = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (0, 0, spr_pixwht);
|
|
333
|
wht.image_xscale = 700;
|
|
334
|
wht.image_yscale = 700;
|
|
335
|
wht.image_alpha = 0.2;
|
|
336
|
wht.depth = -9000;
|
|
337
|
con = 49;
|
|
338
|
}
|
|
339
|
if (con == 49)
|
|
340
|
{
|
|
341
|
wht.image_alpha += 0.05;
|
|
342
|
if (wht.image_alpha > 0.98)
|
|
343
|
{
|
|
344
|
wht.image_alpha = 1;
|
|
345
|
con = 49.1;
|
|
346
|
alarm[4] = 30; gml_Object_obj_mettatonb_third_Alarm_4.gml
con += 1;
|
|
347
|
}
|
|
348
|
}
|
|
349
|
if (con == 50.1)
|
|
350
|
{
|
|
351
|
oyea = caster_load("music/ohyes.ogg");
|
|
352
|
caster_play(oyea, 1, 1);
|
|
353
|
con = 50;
|
|
354
|
alarm[4] = 60; gml_Object_obj_mettatonb_third_Alarm_4.gml
con += 1;
|
|
355
|
}
|
|
356
|
if (con == 51)
|
|
357
|
{
|
|
358
|
with (mypart1)
|
|
359
|
visible = false;
|
|
360
|
instance_create(0, 0, obj_mett_bossintro);
|
|
361
|
con = 52;
|
|
362
|
}
|
|
363
|
if (con == 52)
|
|
364
|
{
|
|
365
|
wht.image_alpha -= 0.05;
|
|
366
|
if (wht.image_alpha < 0.06)
|
|
367
|
{
|
|
368
|
with (wht)
|
|
369
|
instance_destroy();
|
|
370
|
con = 53;
|
|
371
|
}
|
|
372
|
}
|
|
373
|
if (con_2 > 0)
|
|
374
|
global.turntimer = 11;
|
|
375
|
if (con_2 == 1)
|
|
376
|
{
|
|
377
|
with (OBJ_WRITER)
|
|
378
|
instance_destroy();
|
|
379
|
global.msc = 0;
|
|
380
|
global.msg[0] = THAT WORTHLESS PEA- SHOOTER WON'T WORK ON ME, DARLING. Delay 33Close Messagescr_gettextscr_gettext
var 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_mettatonb_third_943") ;
|
|
381
|
global.msg[1] = DON'T YOU UNDERSTAND WHAT ACTING IS!? Delay 33Close MessageClose Messagescr_gettextscr_gettext
var 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_mettatonb_third_944") ;
|
|
382
|
global.typer = 51;
|
|
383
|
scr_blconscr_blcon
writer = instance_create(argument0 + 30, argument1 + 10, OBJ_WRITER);
blcon = instance_create(writer.x - 30, writer.y - 10, obj_blconwideslave);
blcon.parent = writer;
if (argument2 == 1)
blcon.sprite_index = spr_blconwdshrt_l;
if (argument2 == 2)
{
blcon.sprite_index = spr_blconabove;
writer.writingy -= 20;
writer.writingx -= 20;
}
if (argument2 == 3)
{
blcon.sprite_index = spr_blconwdshrt;
writer.writingy -= 20;
}
if (argument2 == 4)
{
blcon.sprite_index = spr_blconbelow;
writer.writingx -= 10;
} (mypart1.x - 320, mypart1.y - 120, 1);
|
|
384
|
con_2 = 2;
|
|
385
|
}
|
|
386
|
if (con_2 == 2 && instance_exists(OBJ_WRITER) == 0)
|
|
387
|
{
|
|
388
|
global.msg[0] = * Mettaton.scr_gettextscr_gettext
var 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_mettatonb_third_952") ;
|
|
389
|
con_2 = -1;
|
|
390
|
global.turntimer = 3;
|
|
391
|
}
|