1 |
if (global.plot >= 24 && jump < 5) |
2 |
{ |
3 |
global.typer = 31; |
4 |
global.faceemotion = 0; |
5 |
global.facechoice = 0; |
6 |
global.msc = 0; |
7 |
global.msg[0] = * \[C],Delay 11 please...Wait for inputscr_gettextscr_gettextvar 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_asrielbed_87") ; |
8 |
global.msg[1] = * Wake up!Wait for inputscr_gettextscr_gettextvar 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_asrielbed_88") ; |
9 |
global.msg[2] = * You are the future of humans and monsters...Wait for inputClose MessageClose Messagescr_gettextscr_gettextvar 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_asrielbed_89") ; |
10 |
if (global.flag[7 true_pacifist] == 1) |
11 |
{ |
12 |
global.typer = 5; |
13 |
global.msg[0] = * (It felt strange to lie in the bed.)Wait for inputscr_gettextscr_gettextvar 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_asrielbed_93") ; |
14 |
global.msg[1] = * (It feels entirely too small for you now.)Wait for inputClose MessageClose Messagescr_gettextscr_gettextvar 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_asrielbed_94") ; |
15 |
} |
16 |
obj_asriellamp.idealvolume[0] = 0; |
17 |
obj_asriellamp.idealvolume[1] = 0; |
18 |
instance_create(0, 0, obj_dialoguer); |
19 |
with (obj_dialoguer) |
20 |
depth = -999999; |
21 |
if (instance_exists(OBJ_WRITER)) |
22 |
{ |
23 |
with (OBJ_WRITER) |
24 |
depth = -9999999; |
25 |
} |
26 |
jump = 5; |
27 |
} |
28 |
if (jump == 5) |
29 |
alarm[2] = 2;gml_Object_obj_asrielbed_Alarm_2.gmlif (global.plot >= 24 && jump < 5)
{
global.typer = 31;
global.faceemotion = 0;
global.facechoice = 0;
global.msc = 0;
global.msg[0] = * \[C],Delay 11 please...Wait for input ;
global.msg[1] = ;
global.msg[2] = * You are the future of humans and monsters...Wait for inputClose MessageClose Message ;
if ( global.flag[7 true_pacifist] == 1)
{
global.typer = 5;
global.msg[0] = * (It felt strange to lie in the bed.)Wait for input ;
global.msg[1] = * (It feels entirely too small for you now.)Wait for inputClose MessageClose Message ;
}
obj_asriellamp.idealvolume[0] = 0;
obj_asriellamp.idealvolume[1] = 0;
instance_create(0, 0, obj_dialoguer);
with (obj_dialoguer)
depth = -999999;
if (instance_exists(OBJ_WRITER))
{
with (OBJ_WRITER)
depth = -9999999;
}
jump = 5;
}
if (jump == 5)
alarm[2] = 2;
if (instance_exists(obj_dialoguer) == 0)
{
jump = 6;
background_visible[1] = false;
background_visible[0] = true;
if (global.plot < 20)
background_visible[2] = true;
global.facing = 3;
obj_mainchara.x = 200;
obj_mainchara.y = 104;
global.hp = global.maxhp;
if (instance_exists(obj_unfader))
{
with (obj_unfader)
instance_destroy();
}
instance_create(0, 0, obj_fader);
obj_asriellamp.idealvolume[0] = 0;
obj_asriellamp.idealvolume[1] = 1;
if ( global.flag[103 got_bscotch_pie] == 0 && global.plot < 20)
{
global.flag[103 got_bscotch_pie] = 1;
instance_create(142, 132, obj_pie_pickup);
}
alarm[3] = 60;
} |
30 |
if (instance_exists(obj_dialoguer) == 0) |
31 |
{ |
32 |
jump = 6; |
33 |
background_visible[1] = false; |
34 |
background_visible[0] = true; |
35 |
if (global.plot < 20) |
36 |
background_visible[2] = true; |
37 |
global.facing = 3; |
38 |
obj_mainchara.x = 200; |
39 |
obj_mainchara.y = 104; |
40 |
global.hp = global.maxhp; |
41 |
if (instance_exists(obj_unfader)) |
42 |
{ |
43 |
with (obj_unfader) |
44 |
instance_destroy(); |
45 |
} |
46 |
instance_create(0, 0, obj_fader); |
47 |
obj_asriellamp.idealvolume[0] = 0; |
48 |
obj_asriellamp.idealvolume[1] = 1; |
49 |
if (global.flag[103 got_bscotch_pie] == 0 && global.plot < 20) |
50 |
{ |
51 |
global.flag[103 got_bscotch_pie] = 1; |
52 |
instance_create(142, 132, obj_pie_pickup); |
53 |
} |
54 |
alarm[3] = 60; |
55 |
} |