|
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_second_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (global.hp > 1 && global.flag[385 status_yellow_button] == 1)
global.border = 6;
if (turns == 0)
global.border = 0;
if (con == 10)
{
global.border = 6;
con = 11;
}
|
|
11
|
alarm[5] = global.monsterinstance[0].alarm[5]; gml_Object_obj_mettatonb_second_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (global.hp > 1 && global.flag[385 status_yellow_button] == 1)
global.border = 6;
if (turns == 0)
global.border = 0;
if (con == 10)
{
global.border = 6;
con = 11;
}
|
|
12
|
}
|
|
13
|
if (global.monster[1] == 1)
|
|
14
|
{
|
|
15
|
if (global.monsterinstance[1].alarm[5] > alarm[5]) gml_Object_obj_mettatonb_second_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (global.hp > 1 && global.flag[385 status_yellow_button] == 1)
global.border = 6;
if (turns == 0)
global.border = 0;
if (con == 10)
{
global.border = 6;
con = 11;
}
|
|
16
|
alarm[5] = global.monsterinstance[1].alarm[5]; gml_Object_obj_mettatonb_second_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (global.hp > 1 && global.flag[385 status_yellow_button] == 1)
global.border = 6;
if (turns == 0)
global.border = 0;
if (con == 10)
{
global.border = 6;
con = 11;
}
|
|
17
|
}
|
|
18
|
if (global.monster[2] == 1)
|
|
19
|
{
|
|
20
|
if (global.monsterinstance[2].alarm[5] > alarm[5]) gml_Object_obj_mettatonb_second_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (global.hp > 1 && global.flag[385 status_yellow_button] == 1)
global.border = 6;
if (turns == 0)
global.border = 0;
if (con == 10)
{
global.border = 6;
con = 11;
}
|
|
21
|
alarm[5] = global.monsterinstance[2].alarm[5]; gml_Object_obj_mettatonb_second_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (global.hp > 1 && global.flag[385 status_yellow_button] == 1)
global.border = 6;
if (turns == 0)
global.border = 0;
if (con == 10)
{
global.border = 6;
con = 11;
}
|
|
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_second_Alarm_5.gml
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (global.hp > 1 && global.flag[385 status_yellow_button] == 1)
global.border = 6;
if (turns == 0)
global.border = 0;
if (con == 10)
{
global.border = 6;
con = 11;
}
|
|
29
|
talked = 2;
|
|
30
|
}
|
|
31
|
if (talked == 0)
|
|
32
|
{
|
|
33
|
attacked = 0;
|
|
34
|
alarm[6] = 1; gml_Object_obj_mettatonb_second_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 > 1 && global.flag[385 status_yellow_button] < 2)
{
if (turns == 2)
global.msg[0] = HA! THAT BUTTON WON'T SAVE YOU NOW, DARLING!Wait for inputClose MessageClose Message ;
if (turns == 3)
global.msg[0] = YOU WOULDN'T DARE USE THE [ACT] COMMAND AND PRESS THAT BUTTON!Wait for inputClose MessageClose Message ;
if (turns == 4)
global.msg[0] = THAT'S RIGHT! DON'T PRESS IT! I'LL DESTROY YOU!Wait for inputClose MessageClose Message ;
if (turns == 5)
global.msg[0] = WITHOUT THAT BUTTON, YOU ARE INCHING CLOSER AND CLOSER TO YOUR DEMISE!Wait for inputClose MessageClose Message ;
if (turns == 6)
global.msg[0] = ANY MINUTE NOW! Wait for inputClose MessageClose Message ;
if (turns == 7)
global.msg[0] = ANY... MINUTE... ....NOW!Wait for inputClose MessageClose Message ;
if (turns == 8)
global.msg[0] = ............. ............Wait for inputClose MessageClose Message ;
if (turns > 8)
{
global.msg[0] = .......... ...(COUGH)Wait for inputClose MessageClose Message ;
turns = 7;
}
}
if (con == 10)
{
global.msg[0] = OH!!! THAT YELLOW GLOW...!Wait for inputClose MessageClose Message ;
if (turns > 6)
global.msg[0] = TOOK YOU LONG ENOUGH!Wait for inputClose MessageClose Message ;
}
global.typer = 51;
scr_blcon(mypart1.x - 320, mypart1.y - 120, 1);
if (global.hp > 1 && global.flag[385 status_yellow_button] == 1)
global.border = 6;
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
|
}
|
|
39
|
if (global.hurtanim[myself] == 1)
|
|
40
|
{
|
|
41
|
shudder = 8;
|
|
42
|
alarm[3] = global.damagetimer; gml_Object_obj_mettatonb_second_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;
|
|
43
|
global.hurtanim[myself] = 3;
|
|
44
|
}
|
|
45
|
if (global.hurtanim[myself] == 2)
|
|
46
|
{
|
|
47
|
with (dmgwriter)
|
|
48
|
alarm[2]
|
|
49
|
if (global.monsterhp[myself] >= 1)
|
|
50
|
{
|
|
51
|
global.hurtanim[myself] = 0;
|
|
52
|
hurta = 0;
|
|
53
|
global.myfight = 0;
|
|
54
|
global.mnfight = 1;
|
|
55
|
}
|
|
56
|
else
|
|
57
|
{
|
|
58
|
global.myfight = 0;
|
|
59
|
global.mnfight = 1;
|
|
60
|
killed = 1;
|
|
61
|
instance_destroy();
|
|
62
|
}
|
|
63
|
}
|
|
64
|
if (global.hurtanim[myself] == 5)
|
|
65
|
{
|
|
66
|
global.damage = 0;
|
|
67
|
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
|
|
68
|
with (obj_dmgwriter)
|
|
69
|
alarm[2]
|
|
70
|
global.myfight = 0;
|
|
71
|
global.mnfight = 1;
|
|
72
|
global.hurtanim[myself] = 0;
|
|
73
|
}
|
|
74
|
if (global.mnfight == 2)
|
|
75
|
{
|
|
76
|
if (attacked == 0)
|
|
77
|
{
|
|
78
|
if (con == 0)
|
|
79
|
con = 1;
|
|
80
|
if (turns > 1 && global.flag[385 status_yellow_button] == 1)
|
|
81
|
{
|
|
82
|
global.firingrate = 6;
|
|
83
|
g = instance_create(100, 100, obj_blackbulletgen1);
|
|
84
|
g.hspeed = 4;
|
|
85
|
global.turntimer = 90;
|
|
86
|
}
|
|
87
|
with (mypart1)
|
|
88
|
event_user(0);
|
|
89
|
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_second_542") ;
|
|
90
|
attacked = 1;
|
|
91
|
alarm[7] = 20; gml_Object_obj_mettatonb_second_Alarm_7.gml
attacked = 2;
|
|
92
|
}
|
|
93
|
}
|
|
94
|
if (global.myfight == 2)
|
|
95
|
{
|
|
96
|
if (whatiheard != -1)
|
|
97
|
{
|
|
98
|
if (global.heard == 0)
|
|
99
|
{
|
|
100
|
if (whatiheard == 0)
|
|
101
|
{
|
|
102
|
global.msc = 0;
|
|
103
|
global.msg[0] = * METTATON - ATK 30 DEF 255 * His metal body STILL renders him invulnerable to attack.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_second_564") ;
|
|
104
|
OBJ_WRITER.halt = 3;
|
|
105
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
106
|
with (iii)
|
|
107
|
halt = 0;
|
|
108
|
whatiheard = 9;
|
|
109
|
}
|
|
110
|
if (whatiheard == 3)
|
|
111
|
{
|
|
112
|
global.msc = 0;
|
|
113
|
global.msg[0] = * You yell...Delay 11 * Nothing happened.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_second_574") ;
|
|
114
|
if (global.flag[385 status_yellow_button] == 1)
|
|
115
|
{
|
|
116
|
global.flag[385 status_yellow_button] = 2;
|
|
117
|
global.msg[0] = * You press the yellow button.Delay 11 * The phone is resonating with Mettaton's presence...!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_second_579") ;
|
|
118
|
con = 10;
|
|
119
|
}
|
|
120
|
OBJ_WRITER.halt = 3;
|
|
121
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
122
|
with (iii)
|
|
123
|
halt = 0;
|
|
124
|
}
|
|
125
|
global.heard = 1;
|
|
126
|
}
|
|
127
|
}
|
|
128
|
}
|
|
129
|
if (whatiheard == 3 && flex == 3 && instance_exists(OBJ_WRITER))
|
|
130
|
{
|
|
131
|
if (OBJ_WRITER.stringno == 1)
|
|
132
|
{
|
|
133
|
vspeed = -4;
|
|
134
|
mypart1.vspeed = -4;
|
|
135
|
}
|
|
136
|
}
|
|
137
|
if (global.myfight == 4)
|
|
138
|
{
|
|
139
|
if (global.mercyuse == 0)
|
|
140
|
{
|
|
141
|
script_execute(scr_mercystandard);
|
|
142
|
if (mercy < 0)
|
|
143
|
instance_destroy();
|
|
144
|
}
|
|
145
|
}
|
|
146
|
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0)
|
|
147
|
{
|
|
148
|
script_execute(scr_mercystandard);
|
|
149
|
if (mercy < 0)
|
|
150
|
instance_destroy();
|
|
151
|
}
|
|
152
|
if (con == 1)
|
|
153
|
{
|
|
154
|
phone = instance_create(500, 260, obj_npc_marker);
|
|
155
|
phone.sprite_index = spr_fakephone;
|
|
156
|
phone.image_speed = 0;
|
|
157
|
phone.visible = true;
|
|
158
|
phone.depth = 20;
|
|
159
|
snd_play(snd_phone);
|
|
160
|
phone.vspeed = -2;
|
|
161
|
con = 2;
|
|
162
|
alarm[4] = 30; gml_Object_obj_mettatonb_second_Alarm_4.gml
con += 1;
|
|
163
|
}
|
|
164
|
if (con == 3)
|
|
165
|
{
|
|
166
|
phone.vspeed = 0;
|
|
167
|
snd_play(snd_phone);
|
|
168
|
con = 4;
|
|
169
|
alarm[4] = 30; gml_Object_obj_mettatonb_second_Alarm_4.gml
con += 1;
|
|
170
|
}
|
|
171
|
if (con == 5)
|
|
172
|
{
|
|
173
|
global.msc = 0;
|
|
174
|
global.msg[0] = IS THAT YOUR PHONE? YOU'D BETTER ANSWER 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_second_640") ;
|
|
175
|
global.typer = 51;
|
|
176
|
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);
|
|
177
|
con = 6;
|
|
178
|
}
|
|
179
|
if (con == 6 && instance_exists(OBJ_WRITER) == 0)
|
|
180
|
{
|
|
181
|
shblcon = instance_create(phone.x + 10, phone.y, obj_blconsm);
|
|
182
|
shblcon.sprite_index = spr_shockblcon2;
|
|
183
|
shake = 1;
|
|
184
|
global.typer = 49;
|
|
185
|
global.msg[0] = H-hey!! Th-this seems bad, but don't worry!!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_second_652") ;
|
|
186
|
global.msg[1] = Th-there's one last thing I installed on your phone...!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_second_653") ;
|
|
187
|
global.msg[2] = \WYou see that\Y yellow button\W...?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_second_654") ;
|
|
188
|
global.msg[3] = Go to this phone's [[ACT]] menu and press 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_second_655") ;
|
|
189
|
instance_create(phone.x - 100, phone.y - 140, OBJ_WRITER);
|
|
190
|
con = 7;
|
|
191
|
}
|
|
192
|
if (con == 7 && instance_exists(OBJ_WRITER) == 0)
|
|
193
|
{
|
|
194
|
global.msg[0] = * Your phone's [[ACT]] menu is glowing.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_second_662") ;
|
|
195
|
global.flag[385 status_yellow_button] = 1;
|
|
196
|
with (shblcon)
|
|
197
|
instance_destroy();
|
|
198
|
con = 8;
|
|
199
|
shake = 0;
|
|
200
|
global.turntimer = -1;
|
|
201
|
global.mnfight = 3;
|
|
202
|
global.myfight = -1;
|
|
203
|
}
|
|
204
|
if (con > 6)
|
|
205
|
{
|
|
206
|
if (shake == 1 && instance_exists(shblcon))
|
|
207
|
{
|
|
208
|
shblcon.x = shblcon.xstart + random(2);
|
|
209
|
shblcon.y = shblcon.ystart + random(2);
|
|
210
|
}
|
|
211
|
}
|
|
212
|
if (con == 11)
|
|
213
|
{
|
|
214
|
obj_heart.movement = -1;
|
|
215
|
con = 12;
|
|
216
|
alarm[4] = 40; gml_Object_obj_mettatonb_second_Alarm_4.gml
con += 1;
|
|
217
|
}
|
|
218
|
if (con == 13)
|
|
219
|
{
|
|
220
|
caster_stop(global.batmusic);
|
|
221
|
ctheart = instance_create(obj_heart.x + 8, obj_heart.y + 8, obj_cutsceneheart);
|
|
222
|
obj_heart.x = -999;
|
|
223
|
obj_heart.movement = -1;
|
|
224
|
con = 14;
|
|
225
|
}
|
|
226
|
if (con == 15)
|
|
227
|
{
|
|
228
|
shblcon = instance_create(phone.x + 10, phone.y, obj_blconsm);
|
|
229
|
shblcon.sprite_index = spr_shockblcon2;
|
|
230
|
shake = 1;
|
|
231
|
global.typer = 49;
|
|
232
|
global.msg[0] = Now press \*Z!!!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_second_703") ;
|
|
233
|
instance_create(phone.x - 100, phone.y - 140, OBJ_WRITER);
|
|
234
|
con = 16;
|
|
235
|
alarm[4] = 15; gml_Object_obj_mettatonb_second_Alarm_4.gml
con += 1;
|
|
236
|
}
|
|
237
|
if (con == 17)
|
|
238
|
{
|
|
239
|
if (global.hp > 999)
|
|
240
|
{
|
|
241
|
global.turntimer = 300;
|
|
242
|
instance_create(obj_heart.x, obj_heart.y - 180, obj_blackboxtest);
|
|
243
|
instance_create(obj_heart.x - 20, obj_heart.y - 180, obj_blackboxtest);
|
|
244
|
instance_create(obj_heart.x - 40, obj_heart.y - 180, obj_blackboxtest);
|
|
245
|
instance_create(obj_heart.x - 60, obj_heart.y - 180, obj_blackboxtest);
|
|
246
|
instance_create(obj_heart.x + 20, obj_heart.y - 180, obj_blackboxtest);
|
|
247
|
instance_create(obj_heart.x + 40, obj_heart.y - 180, obj_blackboxtest);
|
|
248
|
instance_create(obj_heart.x + 60, obj_heart.y - 180, obj_blackboxtest);
|
|
249
|
instance_create(obj_heart.x, obj_heart.y - 220, obj_blackboxtest);
|
|
250
|
instance_create(obj_heart.x, obj_heart.y - 260, obj_blackboxtest);
|
|
251
|
instance_create(obj_heart.x - 20, obj_heart.y - 220, obj_blackboxtest);
|
|
252
|
instance_create(obj_heart.x + 20, obj_heart.y - 220, obj_blackboxtest);
|
|
253
|
obj_blackboxtest.vspeed = 3;
|
|
254
|
obj_blackboxtest.friction = -0.1;
|
|
255
|
obj_blackboxtest.dmg = 1;
|
|
256
|
}
|
|
257
|
con = 18;
|
|
258
|
alarm[4] = 120; gml_Object_obj_mettatonb_second_Alarm_4.gml
con += 1;
|
|
259
|
}
|
|
260
|
if (con == 25)
|
|
261
|
{
|
|
262
|
with (OBJ_WRITER)
|
|
263
|
instance_destroy();
|
|
264
|
with (shblcon)
|
|
265
|
instance_destroy();
|
|
266
|
with (obj_heartshot)
|
|
267
|
instance_destroy();
|
|
268
|
con = 24.5;
|
|
269
|
alarm[4] = 30; gml_Object_obj_mettatonb_second_Alarm_4.gml
con += 1;
|
|
270
|
}
|
|
271
|
if (con == 25.5)
|
|
272
|
{
|
|
273
|
global.msc = 0;
|
|
274
|
global.msg[0] = OOOH!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_second_746") ;
|
|
275
|
global.msg[1] = OOOOOOOH!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_second_747") ;
|
|
276
|
global.msg[2] = YOU'VE DEFEATED ME!!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_second_748") ;
|
|
277
|
global.msg[3] = HOW CAN THIS BE, YOU WERE STRONGER THAN I THOUGHT, ETC.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_second_749") ;
|
|
278
|
global.typer = 51;
|
|
279
|
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);
|
|
280
|
con = 26;
|
|
281
|
}
|
|
282
|
if (con == 26 && instance_exists(OBJ_WRITER) == 0)
|
|
283
|
{
|
|
284
|
global.msg[0] = WHATEVER.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_second_757") ;
|
|
285
|
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);
|
|
286
|
con = 27;
|
|
287
|
mypart1.hspeed = -7;
|
|
288
|
mypart1.hurta = 1;
|
|
289
|
alarm[4] = 60; gml_Object_obj_mettatonb_second_Alarm_4.gml
con += 1;
|
|
290
|
}
|
|
291
|
if (con >= 27)
|
|
292
|
{
|
|
293
|
if (instance_exists(obj_blconwideslave))
|
|
294
|
{
|
|
295
|
obj_blconwideslave.x = mypart1.x - 320;
|
|
296
|
OBJ_WRITER.writingx = mypart1.x - 280;
|
|
297
|
}
|
|
298
|
}
|
|
299
|
if (con == 28)
|
|
300
|
{
|
|
301
|
instance_create(0, 0, obj_unfader);
|
|
302
|
con = 29;
|
|
303
|
alarm[4] = 13; gml_Object_obj_mettatonb_second_Alarm_4.gml
con += 1;
|
|
304
|
}
|
|
305
|
if (con == 30)
|
|
306
|
{
|
|
307
|
caster_free(all);
|
|
308
|
room_goto(global.currentroom);
|
|
309
|
}
|