|
1
|
if (con == 1)
|
|
2
|
{
|
|
3
|
caster_pause(global.currentsong);
|
|
4
|
bunny.sprite_index = spr_royalguard_rabbit_d;
|
|
5
|
dragon.sprite_index = spr_royalguard_dragon_d;
|
|
6
|
con = 0.1;
|
|
7
|
alarm[4] = 40; gml_Object_obj_killerboysnightout_event_Alarm_4.gml
con += 1;
|
|
8
|
}
|
|
9
|
if (con == 1.1)
|
|
10
|
{
|
|
11
|
global.msc = 0;
|
|
12
|
global.msg[0] = * ... you're here.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_killerboysnightout_event_101") ;
|
|
13
|
global.msg[1] = * So that means Undyne...Delay 11 * She'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_killerboysnightout_event_102") ;
|
|
14
|
global.msg[2] = * Like,Delay 11 Undyne!Delay 11 * We'll avenge 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_killerboysnightout_event_103") ;
|
|
15
|
scr_regulartextscr_regulartext
global.typer = 5;
global.facechoice = 0;
global.faceemotion = 0;
global.msc = 0;
instance_create(0, 0, obj_dialoguer); ();
|
|
16
|
con = 2;
|
|
17
|
}
|
|
18
|
if (con == 2 && instance_exists(OBJ_WRITER) == 0)
|
|
19
|
{
|
|
20
|
global.battlegroup = 49;
|
|
21
|
global.mercy = 1;
|
|
22
|
instance_create(0, 0, obj_battler);
|
|
23
|
con = 3;
|
|
24
|
alarm[4] = 33; gml_Object_obj_killerboysnightout_event_Alarm_4.gml
con += 1;
|
|
25
|
}
|
|
26
|
if (con == 4)
|
|
27
|
{
|
|
28
|
global.mercy = 0;
|
|
29
|
global.interact = 0;
|
|
30
|
caster_resume(global.currentsong);
|
|
31
|
if (global.flag[12 killed_last] == 1)
|
|
32
|
global.flag[402 killed_rg] = 1;
|
|
33
|
con = 17;
|
|
34
|
global.plot = 164;
|
|
35
|
with (obj_npc_marker)
|
|
36
|
instance_destroy();
|
|
37
|
instance_destroy();
|
|
38
|
}
|