| 1 |
if (global.mnfight == 3) |
| 2 |
attacked = 0; |
| 3 |
if (alarm[5] > 0) |
| 4 |
{ |
| 5 |
if (global.monster[0] == 1) |
| 6 |
{ |
| 7 |
if (global.monsterinstance[0].alarm[5] >alarm[5] |
| 8 |
alarm[5] |
| 9 |
} |
| 10 |
if (global.monster[1] == 1) |
| 11 |
{ |
| 12 |
if (global.monsterinstance[1].alarm[5] >alarm[5] |
| 13 |
alarm[5] |
| 14 |
} |
| 15 |
if (global.monster[2] == 1) |
| 16 |
{ |
| 17 |
if (global.monsterinstance[2].alarm[5] >alarm[5] |
| 18 |
alarm[5] |
| 19 |
} |
| 20 |
} |
| 21 |
if (global.mnfight == 1) |
| 22 |
{ |
| 23 |
if (talked == 1) |
| 24 |
{ |
| 25 |
if (instance_exists(blconwd) == 0) |
| 26 |
event_user(2); |
| 27 |
} |
| 28 |
if (talked == 0) |
| 29 |
{ |
| 30 |
event_user(3); |
| 31 |
talked = 1; |
| 32 |
global.heard = 0; |
| 33 |
} |
| 34 |
if (talked == 2) |
| 35 |
talked = 0; |
| 36 |
} |
| 37 |
if (global.hurtanim[myself] == 1) |
| 38 |
{ |
| 39 |
shudder = 8; |
| 40 |
alarm[3] = global.damagetimer;gml_Object_obj_asrielfinal_Alarm_3.gmlif (mypart1.pause != 1)
{
dmgwriter = instance_create(x - 50, y + 80, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
mypart1.pause = 1;
snd_play(snd_damage);
alarm[8] = 11;
}
if (sha == 0)
sha = x;
x = sha + shudder;
if (shudder < 0)
shudder = -(shudder + 1);
else
shudder = -shudder;
if (shudder == 0)
{
sha = 0;
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2; |
| 41 |
global.hurtanim[myself] = 3; |
| 42 |
} |
| 43 |
if (global.hurtanim[myself] == 2) |
| 44 |
{ |
| 45 |
with (dmgwriter) |
| 46 |
alarm[2] |
| 47 |
if (global.monsterhp[myself] >= 1) |
| 48 |
{ |
| 49 |
global.hurtanim[myself] = 0; |
| 50 |
mypart1.pause = 0; |
| 51 |
global.myfight = 0; |
| 52 |
global.mnfight = 1; |
| 53 |
} |
| 54 |
else |
| 55 |
{ |
| 56 |
global.myfight = 0; |
| 57 |
global.mnfight = 1; |
| 58 |
killed = 1; |
| 59 |
instance_destroy(); |
| 60 |
} |
| 61 |
} |
| 62 |
if (global.hurtanim[myself] == 5) |
| 63 |
{ |
| 64 |
global.damage = 0; |
| 65 |
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter); |
| 66 |
with (obj_dmgwriter) |
| 67 |
alarm[2] |
| 68 |
global.myfight = 0; |
| 69 |
global.mnfight = 1; |
| 70 |
global.hurtanim[myself] = 0; |
| 71 |
} |
| 72 |
if (global.mnfight == 2) |
| 73 |
{ |
| 74 |
if (attacked == 0) |
| 75 |
{ |
| 76 |
pop = scr_monstersumscr_monstersumreturn global.monster[0] + global.monster[1] + global.monster[2]; (); |
| 77 |
global.turntimer = 150; |
| 78 |
global.firingrate = 10; |
| 79 |
if (pop == 3) |
| 80 |
global.firingrate = global.firingrate * 2.5; |
| 81 |
if (pop == 2) |
| 82 |
global.firingrate = global.firingrate * 1.8; |
| 83 |
if (global.flag[501 conversation_asriel_fight] < 3) |
| 84 |
{ |
| 85 |
mypart1.ucon = 1; |
| 86 |
} |
| 87 |
else |
| 88 |
{ |
| 89 |
if (turns == 0) |
| 90 |
{ |
| 91 |
mypart1.u_gen = 2; |
| 92 |
mypart1.ucon = 1; |
| 93 |
} |
| 94 |
if (turns == 1) |
| 95 |
{ |
| 96 |
mypart1.u_gen = 3; |
| 97 |
mypart1.ucon = 1; |
| 98 |
} |
| 99 |
if (turns == 2 || turns == 3 || turns == 4 || turns == 5) |
| 100 |
{ |
| 101 |
global.turntimer = 120; |
| 102 |
global.firingrate = 2; |
| 103 |
gen = instance_create(0, 0, obj_1sidegen); |
| 104 |
gen.myself = myself; |
| 105 |
gen.dmg = 1; |
| 106 |
gen.bullettype = 9; |
| 107 |
} |
| 108 |
if (turns == 6) |
| 109 |
mypart1.bcon = 1; |
| 110 |
if (turns >= 7) |
| 111 |
mercymod = -12; |
| 112 |
if (turns >= 11) |
| 113 |
mercymod = 999999; |
| 114 |
turns += 1; |
| 115 |
} |
| 116 |
global.msg[0] = * The whole world is ending.scr_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_asrielfinal_423") ; |
| 117 |
total = global.flag[505 saved_undyne] + global.flag[506 saved_alphys] + global.flag[507 saved_papyrus_sans] + global.flag[508 saved_toriel_asgore]; |
| 118 |
if (total == 1) |
| 119 |
global.msg[0] = * You feel something faintly resonating within ASRIEL.scr_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_asrielfinal_425") ; |
| 120 |
if (total == 2) |
| 121 |
global.msg[0] = * You feel something resonating within ASRIEL.scr_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_asrielfinal_426") ; |
| 122 |
if (total == 3) |
| 123 |
global.msg[0] = * You feel something strongly resonating within ASRIEL.scr_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_asrielfinal_427") ; |
| 124 |
if (total == 4) |
| 125 |
global.msg[0] = * You feel your friends' SOULs resonating within ASRIEL!scr_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_asrielfinal_428") ; |
| 126 |
if (turns > 0) |
| 127 |
global.msg[0] = * ...scr_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_asrielfinal_429") ; |
| 128 |
attacked = 1; |
| 129 |
} |
| 130 |
if (mercymod == -12 || mercymod == 999999) |
| 131 |
{ |
| 132 |
global.turntimer = -1; |
| 133 |
global.mnfight = 3; |
| 134 |
} |
| 135 |
whatiheard = -1; |
| 136 |
} |
| 137 |
if (global.myfight == 2) |
| 138 |
{ |
| 139 |
if (whatiheard != -1) |
| 140 |
{ |
| 141 |
if (global.heard == 0) |
| 142 |
{ |
| 143 |
if (global.flag[501 conversation_asriel_fight] > 2) |
| 144 |
{ |
| 145 |
global.myfight = 0; |
| 146 |
global.mnfight = 1; |
| 147 |
} |
| 148 |
if (global.flag[501 conversation_asriel_fight] == 2) |
| 149 |
{ |
| 150 |
if (whatiheard == 0) |
| 151 |
{ |
| 152 |
global.msc = 0; |
| 153 |
savecon_a = 1; |
| 154 |
OBJ_WRITER.halt = 3; |
| 155 |
global.msg[0] = * Strangely,Delay 11 as your friends remembered you...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_asrielfinal_468") ; |
| 156 |
global.msg[1] = * Something else began resonating within the SOUL,Delay 11 stronger and stronger.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_asrielfinal_469") ; |
| 157 |
global.msg[2] = * It seems that there's still one last person that needs to be saved.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_asrielfinal_470") ; |
| 158 |
global.msg[3] = * But who...?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_asrielfinal_471") ; |
| 159 |
global.msg[4] = * ...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_asrielfinal_472") ; |
| 160 |
global.msg[5] = * Suddenly,Delay 11 you realize.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_asrielfinal_473") ; |
| 161 |
global.msg[6] = * You reach out and call their name.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_asrielfinal_474") ; |
| 162 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 163 |
with (iii) |
| 164 |
halt = 0; |
| 165 |
whatiheard = 9; |
| 166 |
} |
| 167 |
} |
| 168 |
if (global.flag[501 conversation_asriel_fight] == 1) |
| 169 |
{ |
| 170 |
if (whatiheard == 0) |
| 171 |
{ |
| 172 |
global.msc = 0; |
| 173 |
if (global.flag[505 saved_undyne] == 0) |
| 174 |
{ |
| 175 |
event_user(0); |
| 176 |
nextbattle = 87; |
| 177 |
} |
| 178 |
else |
| 179 |
{ |
| 180 |
event_user(1); |
| 181 |
} |
| 182 |
OBJ_WRITER.halt = 3; |
| 183 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 184 |
with (iii) |
| 185 |
halt = 0; |
| 186 |
whatiheard = 9; |
| 187 |
} |
| 188 |
if (whatiheard == 3) |
| 189 |
{ |
| 190 |
global.msc = 0; |
| 191 |
if (global.flag[506 saved_alphys] == 0) |
| 192 |
{ |
| 193 |
event_user(0); |
| 194 |
nextbattle = 89; |
| 195 |
} |
| 196 |
else |
| 197 |
{ |
| 198 |
event_user(1); |
| 199 |
} |
| 200 |
OBJ_WRITER.halt = 3; |
| 201 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 202 |
with (iii) |
| 203 |
halt = 0; |
| 204 |
} |
| 205 |
if (whatiheard == 1 || whatiheard == 4) |
| 206 |
{ |
| 207 |
global.msc = 0; |
| 208 |
if (global.flag[507 saved_papyrus_sans] == 0) |
| 209 |
{ |
| 210 |
event_user(0); |
| 211 |
nextbattle = 88; |
| 212 |
} |
| 213 |
else |
| 214 |
{ |
| 215 |
event_user(1); |
| 216 |
} |
| 217 |
OBJ_WRITER.halt = 3; |
| 218 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 219 |
with (iii) |
| 220 |
halt = 0; |
| 221 |
} |
| 222 |
if (whatiheard == 2 || whatiheard == 5) |
| 223 |
{ |
| 224 |
global.msc = 0; |
| 225 |
if (global.flag[508 saved_toriel_asgore] == 0) |
| 226 |
{ |
| 227 |
event_user(0); |
| 228 |
nextbattle = 90; |
| 229 |
} |
| 230 |
else |
| 231 |
{ |
| 232 |
event_user(1); |
| 233 |
} |
| 234 |
OBJ_WRITER.halt = 3; |
| 235 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 236 |
with (iii) |
| 237 |
halt = 0; |
| 238 |
} |
| 239 |
} |
| 240 |
if (global.flag[501 conversation_asriel_fight] == 0) |
| 241 |
{ |
| 242 |
if (whatiheard == 0) |
| 243 |
{ |
| 244 |
if (global.tempvalue[12] >= 4) |
| 245 |
{ |
| 246 |
with (mypart1) |
| 247 |
darker = 1; |
| 248 |
songcon = 1; |
| 249 |
global.msc = 0; |
| 250 |
global.msg[0] = * Can't move your body.Delay 11 * Nothing happened.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_asrielfinal_552") ; |
| 251 |
global.msg[1] = * You struggle...Delay 11 * Nothing happened.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_asrielfinal_553") ; |
| 252 |
global.msg[2] = * You tried to reach your SAVE file.Delay 11 * Nothing happened.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_asrielfinal_554") ; |
| 253 |
global.msg[3] = * You tried again to reach your SAVE file.Delay 11 * Nothing happened.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_asrielfinal_555") ; |
| 254 |
global.msg[4] = * Seems SAVING the game really is impossible.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_asrielfinal_556") ; |
| 255 |
if (ossafe_file_exists("file0") == 0) |
| 256 |
{ |
| 257 |
global.msg[2] = * SAVING over ASRIEL's file seems like the only way to defeat him...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_asrielfinal_559") ; |
| 258 |
global.msg[3] = * But,Delay 11 having never SAVED before,Delay 11 you lack the power to do it.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_asrielfinal_560") ; |
| 259 |
global.msg[4] = * Seems SAVING the game really is impossible.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_asrielfinal_561") ; |
| 260 |
} |
| 261 |
global.msg[5] = * ...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_asrielfinal_563") ; |
| 262 |
global.msg[6] = * But...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_asrielfinal_564") ; |
| 263 |
global.msg[7] = * Maybe,Delay 11 with what little power you have...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_asrielfinal_565") ; |
| 264 |
global.msg[8] = * You can SAVE something else.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_asrielfinal_566") ; |
| 265 |
OBJ_WRITER.halt = 3; |
| 266 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 267 |
iii.depth = -1020; |
| 268 |
with (iii) |
| 269 |
halt = 0; |
| 270 |
whatiheard = 9; |
| 271 |
} |
| 272 |
else |
| 273 |
{ |
| 274 |
global.tempvalue[12] += 1; |
| 275 |
global.msc = 0; |
| 276 |
global.msg[0] = * Can't move your body.Wait for input^scr_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_asrielfinal_577") ; |
| 277 |
OBJ_WRITER.halt = 3; |
| 278 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 279 |
with (iii) |
| 280 |
halt = 0; |
| 281 |
} |
| 282 |
} |
| 283 |
} |
| 284 |
global.heard = 1; |
| 285 |
} |
| 286 |
} |
| 287 |
} |
| 288 |
if (global.myfight == 4) |
| 289 |
{ |
| 290 |
if (global.mercyuse == 0) |
| 291 |
{ |
| 292 |
script_execute(scr_mercystandard); |
| 293 |
if (mercy < 0) |
| 294 |
instance_destroy(); |
| 295 |
} |
| 296 |
} |
| 297 |
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0) |
| 298 |
{ |
| 299 |
script_execute(scr_mercystandard); |
| 300 |
if (mercy < 0) |
| 301 |
instance_destroy(); |
| 302 |
} |
| 303 |
if (songcon == 1) |
| 304 |
{ |
| 305 |
vol = caster_get_volume(global.batmusic); |
| 306 |
vol -= 0.04; |
| 307 |
caster_set_volume(global.batmusic, vol); |
| 308 |
if (vol <= 0.04) |
| 309 |
{ |
| 310 |
vol = 0; |
| 311 |
caster_free(global.batmusic); |
| 312 |
songcon = 2; |
| 313 |
} |
| 314 |
} |
| 315 |
if (songcon == 3) |
| 316 |
{ |
| 317 |
with (mypart1) |
| 318 |
darker = 0; |
| 319 |
snd_play(snd_break2); |
| 320 |
songcon = -1; |
| 321 |
} |
| 322 |
if (songcon == 2 && instance_exists(OBJ_WRITER) == 0) |
| 323 |
{ |
| 324 |
global.heard = 0; |
| 325 |
global.mercy = 1; |
| 326 |
global.flag[501 conversation_asriel_fight] = 1; |
| 327 |
global.mnfight = 0; |
| 328 |
global.myfight = 0; |
| 329 |
global.bmenuno = 0; |
| 330 |
instance_create(0, 0, obj_flasher); |
| 331 |
global.hp = global.maxhp; |
| 332 |
obj_talkbt.spec = 1; |
| 333 |
obj_talkbt.sprite_index = scr_getspritescr_getspritevar sprite_id = argument[0];
if (global.language == "ja")
{
if (sprite_id == spr_actbt_center)
return spr_actbt_center_ja;
if (sprite_id == spr_actbt_center_hole)
return spr_actbt_center_hole_ja;
if (sprite_id == spr_barkbullet)
return spr_barkbullet_ja;
if (sprite_id == spr_barktry)
return spr_barktry_ja;
if (sprite_id == spr_bulletNapstaSad)
return spr_bulletNapstaSad_ja;
if (sprite_id == spr_cbone)
return spr_cbone_ja;
if (sprite_id == spr_dbone)
return spr_dbone_ja;
if (sprite_id == spr_defusebox)
return spr_defusebox_ja;
if (sprite_id == spr_fightbt)
return spr_fightbt_ja;
if (sprite_id == spr_fightbt_center)
return spr_fightbt_center_ja;
if (sprite_id == spr_fightbt_hollow)
return spr_fightbt_hollow_ja;
if (sprite_id == spr_itembt)
return spr_itembt_ja;
if (sprite_id == spr_itembt_hollow)
return spr_itembt_hollow_ja;
if (sprite_id == spr_killervisage)
return spr_killervisage_ja;
if (sprite_id == spr_librarysign)
return spr_librarysign_ja;
if (sprite_id == spr_mercybutton_normal)
return spr_mercybutton_normal_ja;
if (sprite_id == spr_mercybutton_shatter)
return spr_mercybutton_shatter_ja;
if (sprite_id == spr_mettatonb_behind)
return spr_mettatonb_behind_ja;
if (sprite_id == spr_mettatonb_behind_on)
return spr_mettatonb_behind_on_ja;
if (sprite_id == spr_oolbone)
return spr_oolbone_ja;
if (sprite_id == spr_out_to_lunch_sign)
return spr_out_to_lunch_sign_ja;
if (sprite_id == spr_punchcard)
return spr_punchcard_ja;
if (sprite_id == spr_pxquit)
return spr_pxquit_ja;
if (sprite_id == spr_savebt)
return spr_savebt_ja;
if (sprite_id == spr_snowsans)
return spr_snowsans_ja;
if (sprite_id == spr_sparebt)
return spr_sparebt_ja;
if (sprite_id == spr_sparebt_bandage)
return spr_sparebt_bandage_ja;
if (sprite_id == spr_starcheckeredit)
return spr_starcheckeredit_ja;
if (sprite_id == spr_talkbt)
return spr_talkbt_ja;
if (sprite_id == spr_talkbt_hollow)
return spr_talkbt_hollow_ja;
if (sprite_id == spr_udebone)
return spr_udebone_ja;
if (sprite_id == spr_wordsearch)
return spr_wordsearch_ja;
}
return sprite_id; (spr_savebt); |
| 334 |
songcon = 3; |
| 335 |
global.batmusic = caster_load("music/xpart_2.ogg"); |
| 336 |
caster_loop(global.batmusic, 0.8, 0.95); |
| 337 |
global.msg[0] = * !?!?scr_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_asrielfinal_648") ; |
| 338 |
} |
| 339 |
if (gocon == 1 && instance_exists(OBJ_WRITER) == 0) |
| 340 |
{ |
| 341 |
if (gotimer == 0) |
| 342 |
instance_create(0, 0, obj_screenwhiter); |
| 343 |
gotimer += 1; |
| 344 |
if (gotimer == 34) |
| 345 |
{ |
| 346 |
global.battlegroup = nextbattle; |
| 347 |
gocon = 0; |
| 348 |
room_restart(); |
| 349 |
} |
| 350 |
} |
| 351 |
if (savecon_a > 0) |
| 352 |
{ |
| 353 |
vol = caster_get_volume(global.batmusic); |
| 354 |
vol -= 0.04; |
| 355 |
caster_set_volume(global.batmusic, vol); |
| 356 |
if (vol <= 0.04) |
| 357 |
{ |
| 358 |
vol = 0; |
| 359 |
caster_free(global.batmusic); |
| 360 |
} |
| 361 |
if (savecon_a == 1 && instance_exists(OBJ_WRITER) == 0) |
| 362 |
{ |
| 363 |
savecon_a = 2; |
| 364 |
blcon = instance_create(400, 50, obj_blconwdflowey); |
| 365 |
global.msc = 0; |
| 366 |
global.msg[0] = Huh?Delay 11 What are you doing...!?scr_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_asrielfinal_674") ; |
| 367 |
global.faceemotion = 2; |
| 368 |
global.typer = 86; |
| 369 |
blconwd = instance_create(blcon.x + 25, blcon.y + 10, OBJ_NOMSCWRITER); |
| 370 |
blcon.depth = -2000; |
| 371 |
blconwd.depth = -2200; |
| 372 |
} |
| 373 |
if (savecon_a == 2) |
| 374 |
savecon_a_x += 1; |
| 375 |
if (savecon_a_x == 70) |
| 376 |
{ |
| 377 |
sw = instance_create(0, 0, obj_screenwhiter); |
| 378 |
sw.ex = 1; |
| 379 |
} |
| 380 |
if (savecon_a_x == 138) |
| 381 |
room_goto(room_asrielmemory Asriel flashbacks [Dogchecked]); |
| 382 |
} |
| 383 |
if (endcon == 1) |
| 384 |
{ |
| 385 |
sw = instance_create(0, 0, obj_screenwhiter); |
| 386 |
sw.ex = 2; |
| 387 |
endcon = 3; |
| 388 |
alarm[11] = 136; |
| 389 |
} |