|
1
|
if (con == 1 && instance_exists(OBJ_WRITER) == 0)
|
|
2
|
{
|
|
3
|
undyne = instance_create(520, 80, obj_undynea_actor);
|
|
4
|
undyne.direction = 0;
|
|
5
|
undyne.sprite_index = undyne.rsprite;
|
|
6
|
mkid = instance_create(730, 60, obj_mkid_actor);
|
|
7
|
mkid.visible = false;
|
|
8
|
con = 2;
|
|
9
|
alarm[4] = 20; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
10
|
obj_darkness_undyne.glowyes = 2;
|
|
11
|
global.interact = 1;
|
|
12
|
obj_mainchara.cutscene = 1;
|
|
13
|
}
|
|
14
|
if (con == 2)
|
|
15
|
{
|
|
16
|
global.interact = 1;
|
|
17
|
view_xview[0] -= 5;
|
|
18
|
}
|
|
19
|
if (con == 3)
|
|
20
|
{
|
|
21
|
global.facing = 3;
|
|
22
|
con = 4;
|
|
23
|
alarm[4] = 80; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
24
|
}
|
|
25
|
if (con == 5)
|
|
26
|
{
|
|
27
|
undyne.hspeed = 1;
|
|
28
|
undyne.image_speed = 0.2;
|
|
29
|
con = 6;
|
|
30
|
alarm[4] = 30; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
31
|
}
|
|
32
|
if (con == 7)
|
|
33
|
{
|
|
34
|
undyne.hspeed = 0;
|
|
35
|
undyne.image_speed = 0;
|
|
36
|
con = 8;
|
|
37
|
alarm[4] = 40; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
38
|
}
|
|
39
|
if (con == 9)
|
|
40
|
{
|
|
41
|
undyne.hspeed = 1;
|
|
42
|
undyne.image_speed = 0.2;
|
|
43
|
con = 10;
|
|
44
|
alarm[4] = 30; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
45
|
}
|
|
46
|
if (con == 11)
|
|
47
|
{
|
|
48
|
undyne.hspeed = 0;
|
|
49
|
undyne.image_speed = 0;
|
|
50
|
con = 12;
|
|
51
|
alarm[4] = 40; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
52
|
}
|
|
53
|
if (con == 13)
|
|
54
|
{
|
|
55
|
global.typer = 37;
|
|
56
|
global.msc = 621;
|
|
57
|
instance_create(0, 0, obj_dialoguer);
|
|
58
|
con = 14;
|
|
59
|
}
|
|
60
|
if (con == 14 && instance_exists(OBJ_WRITER) == 0)
|
|
61
|
{
|
|
62
|
global.interact = 1;
|
|
63
|
con = 15;
|
|
64
|
alarm[4] = 20; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
65
|
}
|
|
66
|
if (con == 16)
|
|
67
|
{
|
|
68
|
global.interact = 1;
|
|
69
|
undyne.sprite_index = spr_undyne_rushfade;
|
|
70
|
undyne.image_index = 0;
|
|
71
|
snd_play(snd_grab);
|
|
72
|
con = 15.1;
|
|
73
|
alarm[4] = 40; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
74
|
}
|
|
75
|
if (con == 16.1)
|
|
76
|
{
|
|
77
|
rushf = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (undyne.x, undyne.y, spr_undyne_rush);
|
|
78
|
rushf.image_alpha = 0;
|
|
79
|
rushf.depth = 4000;
|
|
80
|
snd_play(snd_spearappear);
|
|
81
|
con = 15.2;
|
|
82
|
alarm[4] = 40; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
83
|
}
|
|
84
|
if (con == 15.2)
|
|
85
|
{
|
|
86
|
with (rushf)
|
|
87
|
{
|
|
88
|
if (image_alpha < 1)
|
|
89
|
image_alpha += 0.05;
|
|
90
|
}
|
|
91
|
}
|
|
92
|
if (con == 16.2)
|
|
93
|
con = 18;
|
|
94
|
if (con == 18)
|
|
95
|
{
|
|
96
|
with (rushf)
|
|
97
|
instance_destroy();
|
|
98
|
undyne.sprite_index = spr_undyne_rush;
|
|
99
|
undyne.hspeed = 1;
|
|
100
|
undyne.image_speed = 0.2;
|
|
101
|
con = 17.1;
|
|
102
|
alarm[4] = 10; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
103
|
}
|
|
104
|
if (con == 18.1)
|
|
105
|
{
|
|
106
|
undyne.hspeed = 0;
|
|
107
|
undyne.image_speed = 0;
|
|
108
|
alarm[4] = 30; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
109
|
con = 17.2;
|
|
110
|
}
|
|
111
|
if (con == 18.2)
|
|
112
|
{
|
|
113
|
undyne.hspeed = 3;
|
|
114
|
con = 17.3;
|
|
115
|
undyne.image_index = 0;
|
|
116
|
undyne.fun = 3;
|
|
117
|
undyne.image_speed = 0.5;
|
|
118
|
alarm[4] = 28; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
119
|
}
|
|
120
|
if (con == 18.3)
|
|
121
|
{
|
|
122
|
undyne.image_index = 0;
|
|
123
|
undyne.hspeed = 0;
|
|
124
|
undyne.image_speed = 0;
|
|
125
|
con = 17.4;
|
|
126
|
alarm[4] = 30; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
127
|
}
|
|
128
|
if (con == 18.4)
|
|
129
|
{
|
|
130
|
global.battlegroup = 200;
|
|
131
|
b = instance_create(0, 0, obj_battler);
|
|
132
|
b.claptimer = 4;
|
|
133
|
con = 20;
|
|
134
|
}
|
|
135
|
if (con == 20 && instance_exists(obj_battler) == 0)
|
|
136
|
{
|
|
137
|
mkid.visible = true;
|
|
138
|
mkid.vspeed = 4;
|
|
139
|
snd_play(snd_splash);
|
|
140
|
con = 21;
|
|
141
|
alarm[4] = 11; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
142
|
}
|
|
143
|
if (con == 22)
|
|
144
|
{
|
|
145
|
global.typer = 5;
|
|
146
|
global.msc = 0;
|
|
147
|
global.msg[0] = * Undyne!!!Delay 11 * I'll help you fight!!!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_undyne_echoflower_299") ;
|
|
148
|
scr_regulartextscr_regulartext
global.typer = 5;
global.facechoice = 0;
global.faceemotion = 0;
global.msc = 0;
instance_create(0, 0, obj_dialoguer); ();
|
|
149
|
con = 23;
|
|
150
|
undyne.hspeed = 0;
|
|
151
|
undyne.image_speed = 0;
|
|
152
|
mkid.vspeed = 0;
|
|
153
|
mkid.image_speed = 0.2;
|
|
154
|
mkid.sprite_index = mkid.dtsprite;
|
|
155
|
}
|
|
156
|
if (con == 23 && instance_exists(OBJ_WRITER) == 0)
|
|
157
|
{
|
|
158
|
mkid.image_speed = 0;
|
|
159
|
mkid.sprite_index = mkid.dsprite;
|
|
160
|
con = 24;
|
|
161
|
alarm[4] = 30; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
162
|
}
|
|
163
|
if (con == 25)
|
|
164
|
{
|
|
165
|
mkid.sprite_index = mkid.lsprite;
|
|
166
|
con = 26;
|
|
167
|
alarm[4] = 20; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
168
|
}
|
|
169
|
if (con == 27)
|
|
170
|
{
|
|
171
|
mkid.sprite_index = mkid.rsprite;
|
|
172
|
con = 28;
|
|
173
|
alarm[4] = 20; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
174
|
}
|
|
175
|
if (con == 29)
|
|
176
|
{
|
|
177
|
mkid.sprite_index = mkid.lsprite;
|
|
178
|
con = 30;
|
|
179
|
alarm[4] = 40; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
180
|
}
|
|
181
|
if (con == 31)
|
|
182
|
{
|
|
183
|
mkid.sprite_index = mkid.rtsprite;
|
|
184
|
con = 32;
|
|
185
|
alarm[4] = 10; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
186
|
}
|
|
187
|
if (con == 33)
|
|
188
|
{
|
|
189
|
mkid.image_speed = 0.2;
|
|
190
|
global.msg[0] = * YO!!!!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_undyne_echoflower_348") ;
|
|
191
|
global.msg[1] = * You did it!!!Delay 11 * Undyne is RIGHT in front of 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_undyne_echoflower_349") ;
|
|
192
|
global.msg[2] = * You've got front row seats to her fight!!!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_undyne_echoflower_350") ;
|
|
193
|
scr_regulartextscr_regulartext
global.typer = 5;
global.facechoice = 0;
global.faceemotion = 0;
global.msc = 0;
instance_create(0, 0, obj_dialoguer); ();
|
|
194
|
con = 34;
|
|
195
|
}
|
|
196
|
if (con == 34 && instance_exists(OBJ_WRITER) == 0)
|
|
197
|
{
|
|
198
|
mkid.image_speed = 0;
|
|
199
|
mkid.sprite_index = mkid.lsprite;
|
|
200
|
con = 35;
|
|
201
|
alarm[4] = 20; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
202
|
}
|
|
203
|
if (con == 36)
|
|
204
|
{
|
|
205
|
mkid.sprite_index = mkid.rsprite;
|
|
206
|
con = 37;
|
|
207
|
alarm[4] = 20; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
208
|
}
|
|
209
|
if (con == 38)
|
|
210
|
{
|
|
211
|
mkid.sprite_index = mkid.lsprite;
|
|
212
|
con = 39;
|
|
213
|
alarm[4] = 20; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
214
|
}
|
|
215
|
if (con == 40)
|
|
216
|
{
|
|
217
|
mkid.sprite_index = mkid.dtsprite;
|
|
218
|
con = 41;
|
|
219
|
alarm[4] = 30; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
220
|
}
|
|
221
|
if (con == 42)
|
|
222
|
{
|
|
223
|
mkid.image_speed = 0.2;
|
|
224
|
global.msg[0] = * ... wait.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_undyne_echoflower_388") ;
|
|
225
|
global.msg[1] = * Who's she fighting???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_undyne_echoflower_389") ;
|
|
226
|
scr_regulartextscr_regulartext
global.typer = 5;
global.facechoice = 0;
global.faceemotion = 0;
global.msc = 0;
instance_create(0, 0, obj_dialoguer); ();
|
|
227
|
con = 43;
|
|
228
|
}
|
|
229
|
if (con == 43 && instance_exists(OBJ_WRITER) == 0)
|
|
230
|
{
|
|
231
|
undyne.sprite_index = undyne.rsprite;
|
|
232
|
undyne.hspeed = 3;
|
|
233
|
undyne.image_speed = 0.25;
|
|
234
|
con = 44;
|
|
235
|
alarm[4] = 7; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
236
|
}
|
|
237
|
if (con == 45)
|
|
238
|
{
|
|
239
|
snd_play(snd_movemenu);
|
|
240
|
undyne.hspeed = 0;
|
|
241
|
undyne.image_speed = 0;
|
|
242
|
undyne.image_index = 0;
|
|
243
|
mkid.visible = false;
|
|
244
|
undyne.sprite_index = spr_undyne_cheektug;
|
|
245
|
con = 46;
|
|
246
|
alarm[4] = 20; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
247
|
}
|
|
248
|
if (con == 47)
|
|
249
|
{
|
|
250
|
undyne.hspeed = -2;
|
|
251
|
undyne.image_speed = 0.25;
|
|
252
|
global.msg[0] = * H-Delay 11hey!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_undyne_echoflower_419") ;
|
|
253
|
global.msg[1] = * You aren't gonna tell my parents about this,Delay 11 are you?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_undyne_echoflower_420") ;
|
|
254
|
scr_regulartextscr_regulartext
global.typer = 5;
global.facechoice = 0;
global.faceemotion = 0;
global.msc = 0;
instance_create(0, 0, obj_dialoguer); ();
|
|
255
|
con = 48;
|
|
256
|
}
|
|
257
|
if (con == 48 && instance_exists(OBJ_WRITER) == 0)
|
|
258
|
{
|
|
259
|
if (undyne.x < (view_xview[0] - 100))
|
|
260
|
{
|
|
261
|
with (undyne)
|
|
262
|
instance_destroy();
|
|
263
|
with (mkid)
|
|
264
|
instance_destroy();
|
|
265
|
con = 49;
|
|
266
|
vol = 0;
|
|
267
|
caster_stop(global.currentsong);
|
|
268
|
alarm[4] = 100; gml_Object_obj_undyne_echoflower_Alarm_4.gml
con += 1;
|
|
269
|
}
|
|
270
|
}
|
|
271
|
if (con == 49)
|
|
272
|
view_xview[0] += 1;
|
|
273
|
if (con == 50)
|
|
274
|
{
|
|
275
|
with (obj_mainchara)
|
|
276
|
uncan = 0;
|
|
277
|
caster_loop(global.currentsong, 1, 0.9);
|
|
278
|
obj_mainchara.cutscene = 0;
|
|
279
|
global.interact = 0;
|
|
280
|
global.plot = 118;
|
|
281
|
con = 51;
|
|
282
|
}
|