|
1
|
if (active == 1 && instance_exists(obj_mainchara))
|
|
2
|
{
|
|
3
|
if (cn == 0)
|
|
4
|
{
|
|
5
|
instance_create(0, 0, obj_uspeargen);
|
|
6
|
obj_mainchara.x += 6;
|
|
7
|
sl1 = instance_create(4, 120, obj_solidsmall);
|
|
8
|
sl2 = instance_create(4, 140, obj_solidsmall);
|
|
9
|
cn = 1;
|
|
10
|
}
|
|
11
|
if (cn == 1 && obj_mainchara.x > 460)
|
|
12
|
{
|
|
13
|
if (instance_exists(obj_uspeargen))
|
|
14
|
{
|
|
15
|
with (obj_uspeargen)
|
|
16
|
alarm[0]
|
|
17
|
}
|
|
18
|
}
|
|
19
|
if (cn == 1 && obj_mainchara.x > 510 && global.interact == 0)
|
|
20
|
{
|
|
21
|
global.interact = 1;
|
|
22
|
if (instance_exists(obj_uspeargen))
|
|
23
|
{
|
|
24
|
with (obj_uspeargen)
|
|
25
|
instance_destroy();
|
|
26
|
}
|
|
27
|
m = instance_create(0, 0, obj_musfadeout);
|
|
28
|
m.fadespeed = 0.01;
|
|
29
|
cn = 2;
|
|
30
|
alarm[4] = 90; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
31
|
}
|
|
32
|
if (cn == 3)
|
|
33
|
{
|
|
34
|
undyne.x = 290;
|
|
35
|
undyne.sprite_index = undyne.rsprite;
|
|
36
|
undyne.hspeed = 1;
|
|
37
|
undyne.image_speed = 0.1;
|
|
38
|
cn = 4;
|
|
39
|
}
|
|
40
|
if (cn == 4)
|
|
41
|
{
|
|
42
|
if (undyne.x > 480)
|
|
43
|
{
|
|
44
|
undyne.hspeed = 0;
|
|
45
|
undyne.image_speed = 0;
|
|
46
|
cn = 5;
|
|
47
|
alarm[4] = 90; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
48
|
}
|
|
49
|
}
|
|
50
|
if (cn == 6)
|
|
51
|
{
|
|
52
|
undyne.fun = 1;
|
|
53
|
undyne.sprite_index = spr_undynea_r_raise;
|
|
54
|
undyne.image_speed = 0.2;
|
|
55
|
cn = 7;
|
|
56
|
}
|
|
57
|
if (cn == 7)
|
|
58
|
{
|
|
59
|
if (undyne.image_index == 2)
|
|
60
|
{
|
|
61
|
undyne.image_speed = 0;
|
|
62
|
cn = 8;
|
|
63
|
alarm[4] = 20; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
64
|
}
|
|
65
|
}
|
|
66
|
if (cn == 9)
|
|
67
|
{
|
|
68
|
undyne.image_speed = 0.5;
|
|
69
|
cn = 10;
|
|
70
|
}
|
|
71
|
if (cn == 10)
|
|
72
|
{
|
|
73
|
if (undyne.image_index == 2)
|
|
74
|
snd_play(snd_grab);
|
|
75
|
if (undyne.image_index == 5)
|
|
76
|
{
|
|
77
|
undyne.d = 1;
|
|
78
|
cn = 11;
|
|
79
|
undyne.image_speed = 0;
|
|
80
|
alarm[4] = 60; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
81
|
}
|
|
82
|
}
|
|
83
|
if (cn == 12)
|
|
84
|
{
|
|
85
|
undyne.image_index = 2;
|
|
86
|
undyne.image_speed = 0.2;
|
|
87
|
undyne.sprite_index = spr_undynea_r_raiseup;
|
|
88
|
cn = 13;
|
|
89
|
}
|
|
90
|
if (cn == 13)
|
|
91
|
{
|
|
92
|
if (undyne.image_index >= 13)
|
|
93
|
{
|
|
94
|
undyne.image_speed = 0;
|
|
95
|
cn = 14;
|
|
96
|
alarm[4] = 120; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
97
|
}
|
|
98
|
}
|
|
99
|
if (cn == 15)
|
|
100
|
{
|
|
101
|
undyne.image_speed = -1;
|
|
102
|
cn = 16;
|
|
103
|
}
|
|
104
|
if (cn == 16)
|
|
105
|
{
|
|
106
|
if (undyne.image_index <= 1)
|
|
107
|
{
|
|
108
|
undyne.d = 0;
|
|
109
|
undyne.sprite_index = undyne.rsprite;
|
|
110
|
undyne.image_speed = 0;
|
|
111
|
undyne.image_index = 0;
|
|
112
|
cn = 17;
|
|
113
|
alarm[4] = 30; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
114
|
}
|
|
115
|
}
|
|
116
|
if (cn == 18)
|
|
117
|
{
|
|
118
|
cn = 19;
|
|
119
|
alarm[4] = 40; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
120
|
}
|
|
121
|
if (cn == 20)
|
|
122
|
{
|
|
123
|
cn = 21;
|
|
124
|
alarm[4] = 30; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
125
|
}
|
|
126
|
if (cn == 22)
|
|
127
|
{
|
|
128
|
undyne.sprite_index = undyne.lsprite;
|
|
129
|
undyne.hspeed = -2;
|
|
130
|
undyne.image_speed = 0.2;
|
|
131
|
cn = 23;
|
|
132
|
}
|
|
133
|
if (cn == 23)
|
|
134
|
{
|
|
135
|
if (undyne.x < 300)
|
|
136
|
{
|
|
137
|
with (undyne)
|
|
138
|
instance_destroy();
|
|
139
|
cn = 24;
|
|
140
|
global.interact = 0;
|
|
141
|
global.flag[17 menu_disabled] = 0;
|
|
142
|
}
|
|
143
|
}
|
|
144
|
if (cn == 24)
|
|
145
|
{
|
|
146
|
if (collision_rectangle(200, 100, 220, 900, obj_mainchara, 0, 1) || collision_rectangle(780, 100, 790, 900, obj_mainchara, 0, 1))
|
|
147
|
{
|
|
148
|
caster_free(all);
|
|
149
|
global.currentsong = caster_load("music/ambientwater.ogg");
|
|
150
|
global.interact = 1;
|
|
151
|
cn = 25;
|
|
152
|
}
|
|
153
|
}
|
|
154
|
if (cn == 25)
|
|
155
|
{
|
|
156
|
if (obj_mainchara.y > 120)
|
|
157
|
{
|
|
158
|
mkid.y = 100;
|
|
159
|
up = 0;
|
|
160
|
}
|
|
161
|
else
|
|
162
|
{
|
|
163
|
mkid.y = 130;
|
|
164
|
up = 1;
|
|
165
|
}
|
|
166
|
if (obj_mainchara.x < 400)
|
|
167
|
{
|
|
168
|
left = 1;
|
|
169
|
mkid.hspeed = -4;
|
|
170
|
mkid.sprite_index = mkid.lsprite;
|
|
171
|
}
|
|
172
|
else
|
|
173
|
{
|
|
174
|
left = 0;
|
|
175
|
mkid.hspeed = 4;
|
|
176
|
mkid.sprite_index = mkid.rsprite;
|
|
177
|
}
|
|
178
|
cn = 27;
|
|
179
|
}
|
|
180
|
if (cn == 27)
|
|
181
|
{
|
|
182
|
if (abs(mkid.x - obj_mainchara.x) < 45)
|
|
183
|
{
|
|
184
|
mkid.hspeed = 0;
|
|
185
|
cn = 28;
|
|
186
|
if (left == 1)
|
|
187
|
mkid.sprite_index = mkid.lsprite;
|
|
188
|
if (left == 0)
|
|
189
|
mkid.sprite_index = mkid.rsprite;
|
|
190
|
mkid.image_index = 0;
|
|
191
|
alarm[4] = 20; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
192
|
}
|
|
193
|
}
|
|
194
|
if (cn == 29)
|
|
195
|
{
|
|
196
|
cn = 30;
|
|
197
|
if (left == 1)
|
|
198
|
mkid.sprite_index = mkid.rsprite;
|
|
199
|
else
|
|
200
|
mkid.sprite_index = mkid.lsprite;
|
|
201
|
alarm[4] = 20; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
202
|
}
|
|
203
|
if (cn == 31)
|
|
204
|
{
|
|
205
|
if (up == 1)
|
|
206
|
mkid.sprite_index = mkid.usprite;
|
|
207
|
if (up == 0)
|
|
208
|
mkid.sprite_index = mkid.dsprite;
|
|
209
|
cn = 32;
|
|
210
|
alarm[4] = 20; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
211
|
}
|
|
212
|
if (cn == 33)
|
|
213
|
{
|
|
214
|
if (left == 1)
|
|
215
|
mkid.sprite_index = mkid.ltsprite;
|
|
216
|
if (left == 0)
|
|
217
|
mkid.sprite_index = mkid.rtsprite;
|
|
218
|
mkid.myinteract = 3;
|
|
219
|
global.typer = 5;
|
|
220
|
global.msc = 0;
|
|
221
|
global.facechoice = 0;
|
|
222
|
global.msg[0] = * Yo...Delay 11 did you see that!?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_undyneencounter2_329") ;
|
|
223
|
global.msg[1] = * Undyne just...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_undyneencounter2_330") ;
|
|
224
|
global.msg[2] = * ... TOUCHED 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_undyneencounter2_331") ;
|
|
225
|
global.msg[3] = * I'm never washing my face ever again...!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_undyneencounter2_332") ;
|
|
226
|
global.msg[4] = * Man,Delay 11 are you unlucky.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_undyneencounter2_333") ;
|
|
227
|
global.msg[5] = * If you were standing just a LITTLE bit to the left...!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_undyneencounter2_334") ;
|
|
228
|
global.msg[6] = * Yo,Delay 11 don't worry!Delay 11 * I'm sure we'll see her again!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_undyneencounter2_335") ;
|
|
229
|
if (global.flag[284 undyne_spears_anger1] == 1)
|
|
230
|
{
|
|
231
|
global.msg[4] = * ... yo,Delay 11 did you notice?Delay 11 * She seemed really mad about something!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_undyneencounter2_338") ;
|
|
232
|
global.msg[5] = * She looked liked she was gonna blast me to pieces!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_undyneencounter2_339") ;
|
|
233
|
global.msg[6] = * But...Delay 11 sigh...Delay 11 * Then she decided to put me down...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_undyneencounter2_340") ;
|
|
234
|
global.msg[7] = * Yo!Delay 11 * There's always next time,Delay 11 right?Delay 11 Let's 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_undyneencounter2_341") ;
|
|
235
|
}
|
|
236
|
instance_create(0, 0, obj_dialoguer);
|
|
237
|
cn = 34;
|
|
238
|
}
|
|
239
|
if (cn == 34 && instance_exists(OBJ_WRITER) == 0)
|
|
240
|
{
|
|
241
|
mkid.hspeed = 6;
|
|
242
|
mkid.myinteract = 0;
|
|
243
|
mkid.image_speed = 0.3;
|
|
244
|
mkid.sprite_index = mkid.rsprite;
|
|
245
|
cn = 34.1;
|
|
246
|
if (left == 1)
|
|
247
|
alarm[4] = 7; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
248
|
else
|
|
249
|
alarm[4] = 12; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
250
|
}
|
|
251
|
if (cn == 35.1)
|
|
252
|
{
|
|
253
|
mkid.hspeed = 0;
|
|
254
|
mkid.fun = 1;
|
|
255
|
mkid.image_index = 0;
|
|
256
|
mkid.image_speed = 0.334;
|
|
257
|
mkid.sprite_index = spr_mkid_trip_r;
|
|
258
|
cn = 35.2;
|
|
259
|
}
|
|
260
|
if (cn == 35.2)
|
|
261
|
{
|
|
262
|
if (mkid.image_index >= 19)
|
|
263
|
{
|
|
264
|
mkid.image_index = 0;
|
|
265
|
mkid.x += 13;
|
|
266
|
mkid.sprite_index = mkid.rsprite;
|
|
267
|
cn = 35.3;
|
|
268
|
alarm[4] = 15; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
269
|
}
|
|
270
|
}
|
|
271
|
if (cn == 36.3)
|
|
272
|
{
|
|
273
|
cn = 37;
|
|
274
|
mkid.hspeed = 4;
|
|
275
|
alarm[4] = 30; gml_Object_obj_undyneencounter2_Alarm_4.gml
cn += 1;
|
|
276
|
}
|
|
277
|
if (cn == 38)
|
|
278
|
{
|
|
279
|
global.interact = 0;
|
|
280
|
global.border = 0;
|
|
281
|
global.flag[15 in_battle] = 0;
|
|
282
|
global.flag[16 type_heart_transition] = 0;
|
|
283
|
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;
... ();
|
|
284
|
caster_loop(global.currentsong, 0.8, 1);
|
|
285
|
cn = 37;
|
|
286
|
global.plot = 110;
|
|
287
|
instance_destroy();
|
|
288
|
with (sl1)
|
|
289
|
instance_destroy();
|
|
290
|
with (sl2)
|
|
291
|
instance_destroy();
|
|
292
|
}
|
|
293
|
}
|