|
1
|
global.msg[0] = scr_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; ("item_use_" + string(argument1));
|
|
2
|
switch (argument1)
|
|
3
|
{
|
|
4
|
case 0:
|
|
5
|
break;
|
|
6
|
case 1:
|
|
7
|
if (global.seriousbattle == 0)
|
|
8
|
{
|
|
9
|
randomtext = round(random(15));
|
|
10
|
if (randomtext <= 2)
|
|
11
|
global.msg[0] += * Very un-licorice-like.scr_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; ("item_use_1a") ;
|
|
12
|
if (randomtext == 15)
|
|
13
|
global.msg[0] += * ... tastes like licorice.scr_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; ("item_use_1b") ;
|
|
14
|
}
|
|
15
|
script_execute(scr_recoitem, 10);
|
|
16
|
instance_create(0, 0, obj_foodsound);
|
|
17
|
script_execute(scr_itemshift, argument0, 0);
|
|
18
|
break;
|
|
19
|
case 2:
|
|
20
|
if (global.seriousbattle == 1)
|
|
21
|
global.msg[0] = * You ate the Croquet Roll.scr_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; ("item_use_2_serious") ;
|
|
22
|
instance_create(0, 0, obj_foodsound);
|
|
23
|
script_execute(scr_recoitem, 15);
|
|
24
|
script_execute(scr_itemshift, argument0, 0);
|
|
25
|
break;
|
|
26
|
case 3:
|
|
27
|
if (instance_exists(obj_dogeparent))
|
|
28
|
{
|
|
29
|
if (instance_exists(obj_lesserdoge))
|
|
30
|
{
|
|
31
|
if (obj_lesserdoge.mercymod < 60)
|
|
32
|
obj_lesserdoge.mercymod = 102;
|
|
33
|
}
|
|
34
|
else
|
|
35
|
{
|
|
36
|
obj_dogeparent.mercymod = 102;
|
|
37
|
}
|
|
38
|
if (instance_exists(obj_mandog) || instance_exists(obj_womandog))
|
|
39
|
{
|
|
40
|
if (scr_monstersumscr_monstersum
return global.monster[0] + global.monster[1] + global.monster[2]; () == 1)
|
|
41
|
{
|
|
42
|
script_execute(scr_writetext, 0, * You threw the stick.Delay 11 * But nothing happened.Wait for inputClose 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; ("item_use_3_doge1") , 0, 0);
|
|
43
|
obj_dogeparent.mercymod = -9999;
|
|
44
|
}
|
|
45
|
else
|
|
46
|
{
|
|
47
|
script_execute(scr_writetext, 0, * You threw the stick and the dogs ran to get it.Delay 11 * You played fetch for a while.Wait for inputClose 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; ("item_use_3_doge2") , 0, 0);
|
|
48
|
}
|
|
49
|
}
|
|
50
|
else
|
|
51
|
{
|
|
52
|
if (instance_exists(obj_greatdog))
|
|
53
|
obj_dogeparent.mercymod = 250;
|
|
54
|
script_execute(scr_writetext, 0, * You threw the stick and the dog ran to get it.Delay 11 * You played fetch for a while.Wait for inputClose 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; ("item_use_3_greatdog") , 0, 0);
|
|
55
|
}
|
|
56
|
if (instance_exists(obj_endogeny))
|
|
57
|
obj_endogeny.mercymod = 999999;
|
|
58
|
}
|
|
59
|
else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex))
|
|
60
|
{
|
|
61
|
if (instance_exists(obj_papyrusboss))
|
|
62
|
script_execute(scr_writetext, 0, * You throw the stick. * Papyrus brings it back in his mouth.Wait for inputClose 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; ("item_use_3_papyrus") , 0, 0);
|
|
63
|
if (instance_exists(obj_wizard))
|
|
64
|
{
|
|
65
|
script_execute(scr_writetext, 0, * You raise the stick. * Madjick mistakes it for a magic wand.Wait for inputClose 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; ("item_use_3_madjick") , 0, 0);
|
|
66
|
obj_wizard.mercymod = 300;
|
|
67
|
}
|
|
68
|
if (instance_exists(obj_mettatonex))
|
|
69
|
{
|
|
70
|
with (obj_ratingsmaster)
|
|
71
|
{
|
|
72
|
curtype = 7;
|
|
73
|
event_user(0);
|
|
74
|
}
|
|
75
|
script_execute(scr_writetext, 0, * You throw the stick. * Mettaton catches it in his mouth and winks.Wait for inputClose 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; ("item_use_3_mettaton") , 0, 0);
|
|
76
|
}
|
|
77
|
}
|
|
78
|
else
|
|
79
|
{
|
|
80
|
script_execute(scr_writetext, 0, * You threw the stick away.Delay 11 * Then picked it back up.Wait for inputClose 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; ("item_use_3") , 0, 0);
|
|
81
|
}
|
|
82
|
break;
|
|
83
|
case 4:
|
|
84
|
snd_play(snd_power);
|
|
85
|
if (global.seriousbattle == 0)
|
|
86
|
global.msg[0] += * Still kind of gooey.scr_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; ("item_use_4a") ;
|
|
87
|
script_execute(scr_recoitem, 10);
|
|
88
|
script_execute(scr_itemshift, argument0, 0);
|
|
89
|
break;
|
|
90
|
case 5:
|
|
91
|
script_execute(scr_recoitem, 1);
|
|
92
|
instance_create(0, 0, obj_foodsound);
|
|
93
|
script_execute(scr_itemshift, argument0, 0);
|
|
94
|
break;
|
|
95
|
case 6:
|
|
96
|
instance_create(0, 0, obj_foodsound);
|
|
97
|
script_execute(scr_recoitem, 8);
|
|
98
|
script_execute(scr_itemshift, argument0, 0);
|
|
99
|
break;
|
|
100
|
case 7:
|
|
101
|
if (global.seriousbattle == 0)
|
|
102
|
{
|
|
103
|
if (global.inbattle == 1)
|
|
104
|
{
|
|
105
|
randomtext = ceil(random(10));
|
|
106
|
if (randomtext > 9)
|
|
107
|
global.msg[0] = * Don't worry,Delay 11 Spider didn't.scr_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; ("item_use_7a") ;
|
|
108
|
}
|
|
109
|
}
|
|
110
|
if (instance_exists(obj_spiderb))
|
|
111
|
{
|
|
112
|
with (obj_spiderb)
|
|
113
|
event_user(6);
|
|
114
|
}
|
|
115
|
instance_create(0, 0, obj_foodsound);
|
|
116
|
script_execute(scr_recoitem, 12);
|
|
117
|
script_execute(scr_itemshift, argument0, 0);
|
|
118
|
break;
|
|
119
|
case 8:
|
|
120
|
if (global.seriousbattle == 0)
|
|
121
|
{
|
|
122
|
randomtext = round(random(10));
|
|
123
|
if (randomtext > 8)
|
|
124
|
global.msg[0] += * You didn't cry...scr_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; ("item_use_8a") ;
|
|
125
|
}
|
|
126
|
instance_create(0, 0, obj_foodsound);
|
|
127
|
script_execute(scr_recoitem, 5);
|
|
128
|
script_execute(scr_itemshift, argument0, 0);
|
|
129
|
break;
|
|
130
|
case 9:
|
|
131
|
foodsounder = instance_create(0, 0, obj_foodsound);
|
|
132
|
if (global.seriousbattle == 0)
|
|
133
|
{
|
|
134
|
with (foodsounder)
|
|
135
|
soundtype = 2;
|
|
136
|
}
|
|
137
|
script_execute(scr_recoitem, 16);
|
|
138
|
script_execute(scr_itemshift, argument0, 0);
|
|
139
|
break;
|
|
140
|
case 10:
|
|
141
|
instance_create(0, 0, obj_foodsound);
|
|
142
|
script_execute(scr_recoitem, 24);
|
|
143
|
script_execute(scr_itemshift, argument0, 0);
|
|
144
|
if (instance_exists(obj_spiderb))
|
|
145
|
{
|
|
146
|
with (obj_spiderb)
|
|
147
|
event_user(6);
|
|
148
|
}
|
|
149
|
break;
|
|
150
|
case 11:
|
|
151
|
instance_create(0, 0, obj_foodsound);
|
|
152
|
spec_p = 0;
|
|
153
|
if (global.hp < global.maxhp)
|
|
154
|
global.hp = global.maxhp;
|
|
155
|
if (instance_exists(obj_asgoreb))
|
|
156
|
{
|
|
157
|
spec_p = 1;
|
|
158
|
global.msg[1] = * The smell reminded ASGORE of something...Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("item_use_11_asgore1") ;
|
|
159
|
global.msg[2] = * ASGORE's ATTACK down!Delay 11 * ASGORE's DEFENSE down!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; ("item_use_11_asgore2") ;
|
|
160
|
with (obj_asgoreb)
|
|
161
|
{
|
|
162
|
global.monsteratk[myself] -= 1;
|
|
163
|
global.monsterdef[myself] -= 5;
|
|
164
|
}
|
|
165
|
}
|
|
166
|
if (instance_exists(obj_ripoff_toriel))
|
|
167
|
{
|
|
168
|
spec_p = 1;
|
|
169
|
global.msg[1] = * The smell reminded the Lost Souls of something...!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; ("item_use_11_toriel") ;
|
|
170
|
with (obj_monsterparent)
|
|
171
|
totalmercy += 3;
|
|
172
|
}
|
|
173
|
if (spec_p == 0)
|
|
174
|
script_execute(scr_writetext, 0, * You ate the Butterscotch Pie. * Your HP was maxed out.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; ("item_use_11") + "%", 0, 0);
|
|
175
|
if (spec_p == 1)
|
|
176
|
script_execute(scr_writetext, 0, * You ate the Butterscotch Pie. * Your HP was maxed out.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; ("item_use_11") , 0, 0);
|
|
177
|
script_execute(scr_itemshift, argument0, 0);
|
|
178
|
break;
|
|
179
|
case 12:
|
|
180
|
scr_armoreqscr_armoreq
if (global.armor == 48)
global.wstrength -= 5;
if (global.armor == 64)
global.wstrength -= 10;
if (argument0 >= 0)
global.item[argument0] = global.armor;
global.armor = argument1;
if (global.armor == 4)
global.adef = 0;
if (global.armor == 12)
global.adef = 3;
if (global.armor == 15)
global.adef = 7;
if (global.armor == 24)
global.adef = 10;
if (global.armor == 44)
global.adef = 5;
if (global.armor == 46)
global.adef = 11;
if (global.armor == 48)
{
global.adef = 12;
global.wstrength += 5;
}
if (global.armor == 50)
global.adef = 15;
if (global.armor == 53)
global.adef = 99;
if (global.armor == 64)
{
global.adef = 20;
global.wstrength += 10;
}
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
181
|
snd_play(snd_item);
|
|
182
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
183
|
break;
|
|
184
|
case 13:
|
|
185
|
scr_weaponeqscr_weaponeq
if (global.weapon == 14 && global.inbattle == 1 && global.flag[78 strong_tough_glove] == 1)
global.at = 8 + (global.lv * 2);
if (argument0 >= 0)
global.item[argument0] = global.weapon;
global.weapon = argument1;
if (global.weapon == 3)
global.wstrength = 0;
if (global.weapon == 13)
global.wstrength = 3;
if (global.weapon == 14)
global.wstrength = 5;
if (global.weapon == 25)
global.wstrength = 7;
if (global.weapon == 45)
global.wstrength = 2;
if (global.weapon == 47)
global.wstrength = 10;
if (global.weapon == 49)
global.wstrength = 12;
if (global.weapon == 51)
global.wstrength = 15;
if (global.weapon == 52)
global.wstrength = 99;
if (global.armor == 48)
global.wstrength += 5;
if (global.armor == 64)
global.wstrength += 10;
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
186
|
snd_play(snd_item);
|
|
187
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
188
|
break;
|
|
189
|
case 14:
|
|
190
|
scr_weaponeqscr_weaponeq
if (global.weapon == 14 && global.inbattle == 1 && global.flag[78 strong_tough_glove] == 1)
global.at = 8 + (global.lv * 2);
if (argument0 >= 0)
global.item[argument0] = global.weapon;
global.weapon = argument1;
if (global.weapon == 3)
global.wstrength = 0;
if (global.weapon == 13)
global.wstrength = 3;
if (global.weapon == 14)
global.wstrength = 5;
if (global.weapon == 25)
global.wstrength = 7;
if (global.weapon == 45)
global.wstrength = 2;
if (global.weapon == 47)
global.wstrength = 10;
if (global.weapon == 49)
global.wstrength = 12;
if (global.weapon == 51)
global.wstrength = 15;
if (global.weapon == 52)
global.wstrength = 99;
if (global.armor == 48)
global.wstrength += 5;
if (global.armor == 64)
global.wstrength += 10;
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
191
|
snd_play(snd_item);
|
|
192
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
193
|
break;
|
|
194
|
case 15:
|
|
195
|
scr_armoreqscr_armoreq
if (global.armor == 48)
global.wstrength -= 5;
if (global.armor == 64)
global.wstrength -= 10;
if (argument0 >= 0)
global.item[argument0] = global.armor;
global.armor = argument1;
if (global.armor == 4)
global.adef = 0;
if (global.armor == 12)
global.adef = 3;
if (global.armor == 15)
global.adef = 7;
if (global.armor == 24)
global.adef = 10;
if (global.armor == 44)
global.adef = 5;
if (global.armor == 46)
global.adef = 11;
if (global.armor == 48)
{
global.adef = 12;
global.wstrength += 5;
}
if (global.armor == 50)
global.adef = 15;
if (global.armor == 53)
global.adef = 99;
if (global.armor == 64)
{
global.adef = 20;
global.wstrength += 10;
}
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
196
|
snd_play(snd_item);
|
|
197
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
198
|
break;
|
|
199
|
case 16:
|
|
200
|
if (room == room_tundra6A)
|
|
201
|
global.flag[56 status_snowman] = 4;
|
|
202
|
instance_create(0, 0, obj_foodsound);
|
|
203
|
script_execute(scr_recoitem, 45);
|
|
204
|
script_execute(scr_itemshift, argument0, 0);
|
|
205
|
break;
|
|
206
|
case 17:
|
|
207
|
randomtext = floor(random(8));
|
|
208
|
if (randomtext == 0)
|
|
209
|
global.msg[0] = * You're just great!scr_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; ("item_use_17a") ;
|
|
210
|
if (randomtext == 1)
|
|
211
|
global.msg[0] = * You look nice today!scr_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; ("item_use_17b") ;
|
|
212
|
if (randomtext == 2)
|
|
213
|
global.msg[0] = * Are those claws natural?scr_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; ("item_use_17c") ;
|
|
214
|
if (randomtext == 3)
|
|
215
|
global.msg[0] = * You're super spiffy!scr_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; ("item_use_17d") ;
|
|
216
|
if (randomtext == 4)
|
|
217
|
global.msg[0] = * Have a wonderful day!scr_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; ("item_use_17e") ;
|
|
218
|
if (randomtext == 5)
|
|
219
|
global.msg[0] = * Is this as sweet as you?scr_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; ("item_use_17f") ;
|
|
220
|
if (randomtext == 6)
|
|
221
|
global.msg[0] = * (An illustration of a hug.)scr_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; ("item_use_17g") ;
|
|
222
|
if (randomtext == 7)
|
|
223
|
global.msg[0] = * Love yourself! I love you!scr_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; ("item_use_17h") ;
|
|
224
|
instance_create(0, 0, obj_foodsound);
|
|
225
|
script_execute(scr_recoitem, 15);
|
|
226
|
script_execute(scr_itemshift, argument0, 0);
|
|
227
|
break;
|
|
228
|
case 18:
|
|
229
|
instance_create(0, 0, obj_foodsound);
|
|
230
|
script_execute(scr_recoitem, 28);
|
|
231
|
script_execute(scr_itemshift, argument0, 0);
|
|
232
|
break;
|
|
233
|
case 19:
|
|
234
|
instance_create(0, 0, obj_foodsound);
|
|
235
|
script_execute(scr_recoitem, 11);
|
|
236
|
global.item[argument0] = 20;
|
|
237
|
break;
|
|
238
|
case 20:
|
|
239
|
instance_create(0, 0, obj_foodsound);
|
|
240
|
script_execute(scr_recoitem, 11);
|
|
241
|
script_execute(scr_itemshift, argument0, 0);
|
|
242
|
break;
|
|
243
|
case 21:
|
|
244
|
instance_create(0, 0, obj_foodsound);
|
|
245
|
script_execute(scr_recoitem, 22);
|
|
246
|
script_execute(scr_itemshift, argument0, 0);
|
|
247
|
break;
|
|
248
|
case 22:
|
|
249
|
instance_create(0, 0, obj_foodsound);
|
|
250
|
script_execute(scr_recoitem, 2);
|
|
251
|
script_execute(scr_itemshift, argument0, 0);
|
|
252
|
break;
|
|
253
|
case 23:
|
|
254
|
instance_create(0, 0, obj_foodsound);
|
|
255
|
script_execute(scr_recoitem, 34);
|
|
256
|
script_execute(scr_itemshift, argument0, 0);
|
|
257
|
break;
|
|
258
|
case 24:
|
|
259
|
scr_armoreqscr_armoreq
if (global.armor == 48)
global.wstrength -= 5;
if (global.armor == 64)
global.wstrength -= 10;
if (argument0 >= 0)
global.item[argument0] = global.armor;
global.armor = argument1;
if (global.armor == 4)
global.adef = 0;
if (global.armor == 12)
global.adef = 3;
if (global.armor == 15)
global.adef = 7;
if (global.armor == 24)
global.adef = 10;
if (global.armor == 44)
global.adef = 5;
if (global.armor == 46)
global.adef = 11;
if (global.armor == 48)
{
global.adef = 12;
global.wstrength += 5;
}
if (global.armor == 50)
global.adef = 15;
if (global.armor == 53)
global.adef = 99;
if (global.armor == 64)
{
global.adef = 20;
global.wstrength += 10;
}
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
260
|
snd_play(snd_item);
|
|
261
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
262
|
break;
|
|
263
|
case 25:
|
|
264
|
scr_weaponeqscr_weaponeq
if (global.weapon == 14 && global.inbattle == 1 && global.flag[78 strong_tough_glove] == 1)
global.at = 8 + (global.lv * 2);
if (argument0 >= 0)
global.item[argument0] = global.weapon;
global.weapon = argument1;
if (global.weapon == 3)
global.wstrength = 0;
if (global.weapon == 13)
global.wstrength = 3;
if (global.weapon == 14)
global.wstrength = 5;
if (global.weapon == 25)
global.wstrength = 7;
if (global.weapon == 45)
global.wstrength = 2;
if (global.weapon == 47)
global.wstrength = 10;
if (global.weapon == 49)
global.wstrength = 12;
if (global.weapon == 51)
global.wstrength = 15;
if (global.weapon == 52)
global.wstrength = 99;
if (global.armor == 48)
global.wstrength += 5;
if (global.armor == 64)
global.wstrength += 10;
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
265
|
snd_play(snd_item);
|
|
266
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
267
|
break;
|
|
268
|
case 26:
|
|
269
|
if (global.inbattle == 0)
|
|
270
|
{
|
|
271
|
d = instance_create(x, y, obj_imageview);
|
|
272
|
d.sprite_index = scr_getspritescr_getsprite
var 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_punchcard);
|
|
273
|
global.interact = 1;
|
|
274
|
}
|
|
275
|
else
|
|
276
|
{
|
|
277
|
if (global.weapon == 14)
|
|
278
|
{
|
|
279
|
snd_play(snd_tearcard);
|
|
280
|
add = 6;
|
|
281
|
if (global.at > 18)
|
|
282
|
add = 5;
|
|
283
|
if (global.at > 23)
|
|
284
|
add = 4;
|
|
285
|
if (global.at > 26)
|
|
286
|
add = 3;
|
|
287
|
if (global.at > 28)
|
|
288
|
add = 2;
|
|
289
|
global.at += add;
|
|
290
|
global.msg[1] = scr_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; ("item_use_26a", string(add));
|
|
291
|
global.flag[78 strong_tough_glove] = 1;
|
|
292
|
}
|
|
293
|
else
|
|
294
|
{
|
|
295
|
global.msg[1] = * But nothing happened.Wait for inputClose 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; ("item_use_26b") ;
|
|
296
|
}
|
|
297
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
298
|
script_execute(scr_itemshift, argument0, 0);
|
|
299
|
}
|
|
300
|
break;
|
|
301
|
case 27:
|
|
302
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
303
|
if (instance_exists(obj_rarependant))
|
|
304
|
{
|
|
305
|
with (obj_rarependant)
|
|
306
|
con = 1;
|
|
307
|
}
|
|
308
|
script_execute(scr_itemshift, argument0, 0);
|
|
309
|
break;
|
|
310
|
case 28:
|
|
311
|
healamt = 1;
|
|
312
|
dogsad = floor(random(4));
|
|
313
|
if (dogsad == 0)
|
|
314
|
{
|
|
315
|
global.msg[0] += * Oh.Delay 11 Tastes yappy...scr_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; ("item_use_28a") ;
|
|
316
|
healamt = 30;
|
|
317
|
}
|
|
318
|
if (dogsad == 1)
|
|
319
|
{
|
|
320
|
global.msg[0] += * Oh.Delay 11 Fried tennis ball...scr_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; ("item_use_28b") ;
|
|
321
|
healamt = 10;
|
|
322
|
}
|
|
323
|
if (dogsad == 2)
|
|
324
|
{
|
|
325
|
global.msg[0] += * Oh.Delay 11 There are bones...scr_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; ("item_use_28c") ;
|
|
326
|
healamt = 2;
|
|
327
|
}
|
|
328
|
if (dogsad == 3)
|
|
329
|
{
|
|
330
|
global.msg[0] += * It's literally garbage???scr_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; ("item_use_28d") ;
|
|
331
|
healamt = 999;
|
|
332
|
}
|
|
333
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
334
|
grt.sound1 = snd_swallow;
|
|
335
|
if (global.seriousbattle == 0)
|
|
336
|
grt.sound2 = snd_dogresidue;
|
|
337
|
if (global.seriousbattle == 1)
|
|
338
|
grt.sound2 = snd_heal_c;
|
|
339
|
grt.alarm[1] = 10;
|
|
340
|
script_execute(scr_recoitem, healamt);
|
|
341
|
script_execute(scr_itemshift, argument0, 0);
|
|
342
|
break;
|
|
343
|
case 29:
|
|
344
|
if (global.item[7] == 0)
|
|
345
|
global.msg[1] = * The rest of your inventory filled up with Dog Residue.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; ("item_use_29a") ;
|
|
346
|
else
|
|
347
|
global.msg[1] = * ...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; ("item_use_29b") ;
|
|
348
|
global.msg[2] = * You finished using it.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; ("item_use_29c") ;
|
|
349
|
global.msg[3] = * An uneasy atmosphere fills the room.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; ("item_use_29d") ;
|
|
350
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
351
|
grt.sound1 = snd_item;
|
|
352
|
grt.sound2 = snd_dogresidue;
|
|
353
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
354
|
script_execute(scr_itemshift, argument0, 0);
|
|
355
|
for (i = 0; i < 8; i += 1)
|
|
356
|
{
|
|
357
|
rr = floor(random(7)) + 28;
|
|
358
|
if (global.item[i] == 0)
|
|
359
|
global.item[i] = rr;
|
|
360
|
}
|
|
361
|
break;
|
|
362
|
case 30:
|
|
363
|
if (global.item[7] == 0)
|
|
364
|
global.msg[1] = * The rest of your inventory filled up with Dog Residue.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; ("item_use_29a") ;
|
|
365
|
else
|
|
366
|
global.msg[1] = * ...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; ("item_use_29b") ;
|
|
367
|
global.msg[2] = * You finished using it.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; ("item_use_29c") ;
|
|
368
|
global.msg[3] = * An uneasy atmosphere fills the room.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; ("item_use_29d") ;
|
|
369
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
370
|
grt.sound1 = snd_item;
|
|
371
|
grt.sound2 = snd_dogresidue;
|
|
372
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
373
|
script_execute(scr_itemshift, argument0, 0);
|
|
374
|
for (i = 0; i < 8; i += 1)
|
|
375
|
{
|
|
376
|
rr = floor(random(7)) + 28;
|
|
377
|
if (global.item[i] == 0)
|
|
378
|
global.item[i] = rr;
|
|
379
|
}
|
|
380
|
break;
|
|
381
|
case 31:
|
|
382
|
if (global.item[7] == 0)
|
|
383
|
global.msg[1] = * The rest of your inventory filled up with Dog Residue.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; ("item_use_29a") ;
|
|
384
|
else
|
|
385
|
global.msg[1] = * ...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; ("item_use_29b") ;
|
|
386
|
global.msg[2] = * You finished using it.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; ("item_use_29c") ;
|
|
387
|
global.msg[3] = * An uneasy atmosphere fills the room.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; ("item_use_29d") ;
|
|
388
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
389
|
grt.sound1 = snd_item;
|
|
390
|
grt.sound2 = snd_dogresidue;
|
|
391
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
392
|
script_execute(scr_itemshift, argument0, 0);
|
|
393
|
for (i = 0; i < 8; i += 1)
|
|
394
|
{
|
|
395
|
rr = floor(random(7)) + 28;
|
|
396
|
if (global.item[i] == 0)
|
|
397
|
global.item[i] = rr;
|
|
398
|
}
|
|
399
|
break;
|
|
400
|
case 32:
|
|
401
|
if (global.item[7] == 0)
|
|
402
|
global.msg[1] = * The rest of your inventory filled up with Dog Residue.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; ("item_use_29a") ;
|
|
403
|
else
|
|
404
|
global.msg[1] = * ...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; ("item_use_29b") ;
|
|
405
|
global.msg[2] = * You finished using it.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; ("item_use_29c") ;
|
|
406
|
global.msg[3] = * An uneasy atmosphere fills the room.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; ("item_use_29d") ;
|
|
407
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
408
|
grt.sound1 = snd_item;
|
|
409
|
grt.sound2 = snd_dogresidue;
|
|
410
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
411
|
script_execute(scr_itemshift, argument0, 0);
|
|
412
|
for (i = 0; i < 8; i += 1)
|
|
413
|
{
|
|
414
|
rr = floor(random(7)) + 28;
|
|
415
|
if (global.item[i] == 0)
|
|
416
|
global.item[i] = rr;
|
|
417
|
}
|
|
418
|
break;
|
|
419
|
case 33:
|
|
420
|
if (global.item[7] == 0)
|
|
421
|
global.msg[1] = * The rest of your inventory filled up with Dog Residue.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; ("item_use_29a") ;
|
|
422
|
else
|
|
423
|
global.msg[1] = * ...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; ("item_use_29b") ;
|
|
424
|
global.msg[2] = * You finished using it.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; ("item_use_29c") ;
|
|
425
|
global.msg[3] = * An uneasy atmosphere fills the room.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; ("item_use_29d") ;
|
|
426
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
427
|
grt.sound1 = snd_item;
|
|
428
|
grt.sound2 = snd_dogresidue;
|
|
429
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
430
|
script_execute(scr_itemshift, argument0, 0);
|
|
431
|
for (i = 0; i < 8; i += 1)
|
|
432
|
{
|
|
433
|
rr = floor(random(7)) + 28;
|
|
434
|
if (global.item[i] == 0)
|
|
435
|
global.item[i] = rr;
|
|
436
|
}
|
|
437
|
break;
|
|
438
|
case 34:
|
|
439
|
if (global.item[7] == 0)
|
|
440
|
global.msg[1] = * The rest of your inventory filled up with Dog Residue.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; ("item_use_29a") ;
|
|
441
|
else
|
|
442
|
global.msg[1] = * ...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; ("item_use_29b") ;
|
|
443
|
global.msg[2] = * You finished using it.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; ("item_use_29c") ;
|
|
444
|
global.msg[3] = * An uneasy atmosphere fills the room.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; ("item_use_29d") ;
|
|
445
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
446
|
grt.sound1 = snd_item;
|
|
447
|
grt.sound2 = snd_dogresidue;
|
|
448
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
449
|
script_execute(scr_itemshift, argument0, 0);
|
|
450
|
for (i = 0; i < 8; i += 1)
|
|
451
|
{
|
|
452
|
rr = floor(random(7)) + 28;
|
|
453
|
if (global.item[i] == 0)
|
|
454
|
global.item[i] = rr;
|
|
455
|
}
|
|
456
|
break;
|
|
457
|
case 35:
|
|
458
|
instance_create(0, 0, obj_foodsound);
|
|
459
|
script_execute(scr_recoitem, 21);
|
|
460
|
script_execute(scr_itemshift, argument0, 0);
|
|
461
|
break;
|
|
462
|
case 36:
|
|
463
|
if (global.inbattle == 0)
|
|
464
|
{
|
|
465
|
instance_create(0, 0, obj_foodsound);
|
|
466
|
script_execute(scr_recoitem, 15);
|
|
467
|
}
|
|
468
|
if (global.inbattle == 1)
|
|
469
|
{
|
|
470
|
if (global.seriousbattle == 1)
|
|
471
|
{
|
|
472
|
global.msg[0] = * They're better dry.scr_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; ("item_use_36a") ;
|
|
473
|
instance_create(0, 0, obj_foodsound);
|
|
474
|
script_execute(scr_recoitem, 90);
|
|
475
|
}
|
|
476
|
else
|
|
477
|
{
|
|
478
|
nood = instance_create(0, 0, obj_instantnoodleitem);
|
|
479
|
}
|
|
480
|
}
|
|
481
|
script_execute(scr_itemshift, argument0, 0);
|
|
482
|
break;
|
|
483
|
case 37:
|
|
484
|
instance_create(0, 0, obj_foodsound);
|
|
485
|
script_execute(scr_recoitem, 18);
|
|
486
|
script_execute(scr_itemshift, argument0, 0);
|
|
487
|
break;
|
|
488
|
case 38:
|
|
489
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
490
|
grt.sound1 = snd_swallow;
|
|
491
|
if (global.seriousbattle == 0)
|
|
492
|
grt.sound2 = snd_dogsalad;
|
|
493
|
if (global.seriousbattle == 1)
|
|
494
|
grt.sound2 = snd_heal_c;
|
|
495
|
grt.alarm[1] = 10;
|
|
496
|
script_execute(scr_recoitem, 20);
|
|
497
|
script_execute(scr_itemshift, argument0, 0);
|
|
498
|
break;
|
|
499
|
case 39:
|
|
500
|
if (global.seriousbattle == 0)
|
|
501
|
{
|
|
502
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
503
|
grt.sound1 = snd_swallow;
|
|
504
|
if (global.seriousbattle == 0)
|
|
505
|
grt.sound2 = snd_catsalad;
|
|
506
|
if (global.seriousbattle == 1)
|
|
507
|
grt.sound2 = snd_heal_c;
|
|
508
|
grt.alarm[1] = 10;
|
|
509
|
}
|
|
510
|
else
|
|
511
|
{
|
|
512
|
grt = instance_create(0, 0, obj_foodsound);
|
|
513
|
}
|
|
514
|
script_execute(scr_recoitem, 21);
|
|
515
|
script_execute(scr_itemshift, argument0, 0);
|
|
516
|
break;
|
|
517
|
case 40:
|
|
518
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
519
|
grt.sound1 = snd_swallow;
|
|
520
|
grt.sound2 = snd_sparkle1;
|
|
521
|
grt.alarm[1] = 10;
|
|
522
|
if (instance_exists(obj_ratingsmaster))
|
|
523
|
{
|
|
524
|
global.msg[0] = * You eat the Glamburger. * The audience loves the brand.scr_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; ("item_use_40_mettaton") ;
|
|
525
|
with (obj_ratingsmaster)
|
|
526
|
{
|
|
527
|
curtype = 10;
|
|
528
|
event_user(0);
|
|
529
|
}
|
|
530
|
}
|
|
531
|
script_execute(scr_recoitem, 27);
|
|
532
|
script_execute(scr_itemshift, argument0, 0);
|
|
533
|
break;
|
|
534
|
case 41:
|
|
535
|
if (global.inbattle == 1)
|
|
536
|
{
|
|
537
|
if (global.sp < 8)
|
|
538
|
{
|
|
539
|
global.sp += 1;
|
|
540
|
if (instance_exists(obj_spiderb))
|
|
541
|
global.msg[0] += * But SPEED restricted by web.scr_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; ("item_use_41_nospeed") ;
|
|
542
|
else
|
|
543
|
global.msg[0] += * Your SPEED boosts!scr_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; ("item_use_41_speed") ;
|
|
544
|
}
|
|
545
|
}
|
|
546
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
547
|
grt.sound1 = snd_swallow;
|
|
548
|
grt.sound2 = snd_speedup;
|
|
549
|
grt.alarm[1] = 10;
|
|
550
|
script_execute(scr_recoitem, 10);
|
|
551
|
script_execute(scr_itemshift, argument0, 0);
|
|
552
|
break;
|
|
553
|
case 42:
|
|
554
|
if (instance_exists(obj_ratingsmaster))
|
|
555
|
{
|
|
556
|
global.msg[0] = * You eat the Starfait. * The audience loves the brand.scr_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; ("item_use_42_mettaton") ;
|
|
557
|
with (obj_ratingsmaster)
|
|
558
|
{
|
|
559
|
curtype = 9;
|
|
560
|
event_user(0);
|
|
561
|
}
|
|
562
|
}
|
|
563
|
grt = instance_create(0, 0, obj_foodsound);
|
|
564
|
grt.alarm[1] = 10;
|
|
565
|
script_execute(scr_recoitem, 14);
|
|
566
|
script_execute(scr_itemshift, argument0, 0);
|
|
567
|
break;
|
|
568
|
case 43:
|
|
569
|
if (global.seriousbattle == 0)
|
|
570
|
{
|
|
571
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
572
|
grt.sound1 = snd_swallow;
|
|
573
|
grt.sound2 = snd_hero;
|
|
574
|
grt.alarm[1] = 10;
|
|
575
|
}
|
|
576
|
else
|
|
577
|
{
|
|
578
|
grt = instance_create(0, 0, obj_foodsound);
|
|
579
|
}
|
|
580
|
if (global.inbattle == 1)
|
|
581
|
{
|
|
582
|
if (global.at < 150)
|
|
583
|
global.at += 4;
|
|
584
|
global.msg[0] += * ATTACK increased by 4!scr_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; ("item_use_43_attack") ;
|
|
585
|
}
|
|
586
|
if (instance_exists(obj_ratingsmaster))
|
|
587
|
{
|
|
588
|
with (obj_ratingsmaster)
|
|
589
|
{
|
|
590
|
curtype = 9;
|
|
591
|
event_user(0);
|
|
592
|
}
|
|
593
|
}
|
|
594
|
script_execute(scr_recoitem, 40);
|
|
595
|
script_execute(scr_itemshift, argument0, 0);
|
|
596
|
break;
|
|
597
|
case 44:
|
|
598
|
scr_armoreqscr_armoreq
if (global.armor == 48)
global.wstrength -= 5;
if (global.armor == 64)
global.wstrength -= 10;
if (argument0 >= 0)
global.item[argument0] = global.armor;
global.armor = argument1;
if (global.armor == 4)
global.adef = 0;
if (global.armor == 12)
global.adef = 3;
if (global.armor == 15)
global.adef = 7;
if (global.armor == 24)
global.adef = 10;
if (global.armor == 44)
global.adef = 5;
if (global.armor == 46)
global.adef = 11;
if (global.armor == 48)
{
global.adef = 12;
global.wstrength += 5;
}
if (global.armor == 50)
global.adef = 15;
if (global.armor == 53)
global.adef = 99;
if (global.armor == 64)
{
global.adef = 20;
global.wstrength += 10;
}
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
599
|
snd_play(snd_item);
|
|
600
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
601
|
break;
|
|
602
|
case 45:
|
|
603
|
scr_weaponeqscr_weaponeq
if (global.weapon == 14 && global.inbattle == 1 && global.flag[78 strong_tough_glove] == 1)
global.at = 8 + (global.lv * 2);
if (argument0 >= 0)
global.item[argument0] = global.weapon;
global.weapon = argument1;
if (global.weapon == 3)
global.wstrength = 0;
if (global.weapon == 13)
global.wstrength = 3;
if (global.weapon == 14)
global.wstrength = 5;
if (global.weapon == 25)
global.wstrength = 7;
if (global.weapon == 45)
global.wstrength = 2;
if (global.weapon == 47)
global.wstrength = 10;
if (global.weapon == 49)
global.wstrength = 12;
if (global.weapon == 51)
global.wstrength = 15;
if (global.weapon == 52)
global.wstrength = 99;
if (global.armor == 48)
global.wstrength += 5;
if (global.armor == 64)
global.wstrength += 10;
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
604
|
snd_play(snd_item);
|
|
605
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
606
|
break;
|
|
607
|
case 46:
|
|
608
|
scr_armoreqscr_armoreq
if (global.armor == 48)
global.wstrength -= 5;
if (global.armor == 64)
global.wstrength -= 10;
if (argument0 >= 0)
global.item[argument0] = global.armor;
global.armor = argument1;
if (global.armor == 4)
global.adef = 0;
if (global.armor == 12)
global.adef = 3;
if (global.armor == 15)
global.adef = 7;
if (global.armor == 24)
global.adef = 10;
if (global.armor == 44)
global.adef = 5;
if (global.armor == 46)
global.adef = 11;
if (global.armor == 48)
{
global.adef = 12;
global.wstrength += 5;
}
if (global.armor == 50)
global.adef = 15;
if (global.armor == 53)
global.adef = 99;
if (global.armor == 64)
{
global.adef = 20;
global.wstrength += 10;
}
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
609
|
snd_play(snd_item);
|
|
610
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
611
|
break;
|
|
612
|
case 47:
|
|
613
|
scr_weaponeqscr_weaponeq
if (global.weapon == 14 && global.inbattle == 1 && global.flag[78 strong_tough_glove] == 1)
global.at = 8 + (global.lv * 2);
if (argument0 >= 0)
global.item[argument0] = global.weapon;
global.weapon = argument1;
if (global.weapon == 3)
global.wstrength = 0;
if (global.weapon == 13)
global.wstrength = 3;
if (global.weapon == 14)
global.wstrength = 5;
if (global.weapon == 25)
global.wstrength = 7;
if (global.weapon == 45)
global.wstrength = 2;
if (global.weapon == 47)
global.wstrength = 10;
if (global.weapon == 49)
global.wstrength = 12;
if (global.weapon == 51)
global.wstrength = 15;
if (global.weapon == 52)
global.wstrength = 99;
if (global.armor == 48)
global.wstrength += 5;
if (global.armor == 64)
global.wstrength += 10;
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
614
|
snd_play(snd_item);
|
|
615
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
616
|
break;
|
|
617
|
case 48:
|
|
618
|
scr_armoreqscr_armoreq
if (global.armor == 48)
global.wstrength -= 5;
if (global.armor == 64)
global.wstrength -= 10;
if (argument0 >= 0)
global.item[argument0] = global.armor;
global.armor = argument1;
if (global.armor == 4)
global.adef = 0;
if (global.armor == 12)
global.adef = 3;
if (global.armor == 15)
global.adef = 7;
if (global.armor == 24)
global.adef = 10;
if (global.armor == 44)
global.adef = 5;
if (global.armor == 46)
global.adef = 11;
if (global.armor == 48)
{
global.adef = 12;
global.wstrength += 5;
}
if (global.armor == 50)
global.adef = 15;
if (global.armor == 53)
global.adef = 99;
if (global.armor == 64)
{
global.adef = 20;
global.wstrength += 10;
}
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
619
|
snd_play(snd_item);
|
|
620
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
621
|
break;
|
|
622
|
case 49:
|
|
623
|
scr_weaponeqscr_weaponeq
if (global.weapon == 14 && global.inbattle == 1 && global.flag[78 strong_tough_glove] == 1)
global.at = 8 + (global.lv * 2);
if (argument0 >= 0)
global.item[argument0] = global.weapon;
global.weapon = argument1;
if (global.weapon == 3)
global.wstrength = 0;
if (global.weapon == 13)
global.wstrength = 3;
if (global.weapon == 14)
global.wstrength = 5;
if (global.weapon == 25)
global.wstrength = 7;
if (global.weapon == 45)
global.wstrength = 2;
if (global.weapon == 47)
global.wstrength = 10;
if (global.weapon == 49)
global.wstrength = 12;
if (global.weapon == 51)
global.wstrength = 15;
if (global.weapon == 52)
global.wstrength = 99;
if (global.armor == 48)
global.wstrength += 5;
if (global.armor == 64)
global.wstrength += 10;
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
624
|
snd_play(snd_item);
|
|
625
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
626
|
break;
|
|
627
|
case 50:
|
|
628
|
scr_armoreqscr_armoreq
if (global.armor == 48)
global.wstrength -= 5;
if (global.armor == 64)
global.wstrength -= 10;
if (argument0 >= 0)
global.item[argument0] = global.armor;
global.armor = argument1;
if (global.armor == 4)
global.adef = 0;
if (global.armor == 12)
global.adef = 3;
if (global.armor == 15)
global.adef = 7;
if (global.armor == 24)
global.adef = 10;
if (global.armor == 44)
global.adef = 5;
if (global.armor == 46)
global.adef = 11;
if (global.armor == 48)
{
global.adef = 12;
global.wstrength += 5;
}
if (global.armor == 50)
global.adef = 15;
if (global.armor == 53)
global.adef = 99;
if (global.armor == 64)
{
global.adef = 20;
global.wstrength += 10;
}
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
629
|
snd_play(snd_item);
|
|
630
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
631
|
break;
|
|
632
|
case 51:
|
|
633
|
scr_weaponeqscr_weaponeq
if (global.weapon == 14 && global.inbattle == 1 && global.flag[78 strong_tough_glove] == 1)
global.at = 8 + (global.lv * 2);
if (argument0 >= 0)
global.item[argument0] = global.weapon;
global.weapon = argument1;
if (global.weapon == 3)
global.wstrength = 0;
if (global.weapon == 13)
global.wstrength = 3;
if (global.weapon == 14)
global.wstrength = 5;
if (global.weapon == 25)
global.wstrength = 7;
if (global.weapon == 45)
global.wstrength = 2;
if (global.weapon == 47)
global.wstrength = 10;
if (global.weapon == 49)
global.wstrength = 12;
if (global.weapon == 51)
global.wstrength = 15;
if (global.weapon == 52)
global.wstrength = 99;
if (global.armor == 48)
global.wstrength += 5;
if (global.armor == 64)
global.wstrength += 10;
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
634
|
snd_play(snd_item);
|
|
635
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
636
|
break;
|
|
637
|
case 52:
|
|
638
|
scr_weaponeqscr_weaponeq
if (global.weapon == 14 && global.inbattle == 1 && global.flag[78 strong_tough_glove] == 1)
global.at = 8 + (global.lv * 2);
if (argument0 >= 0)
global.item[argument0] = global.weapon;
global.weapon = argument1;
if (global.weapon == 3)
global.wstrength = 0;
if (global.weapon == 13)
global.wstrength = 3;
if (global.weapon == 14)
global.wstrength = 5;
if (global.weapon == 25)
global.wstrength = 7;
if (global.weapon == 45)
global.wstrength = 2;
if (global.weapon == 47)
global.wstrength = 10;
if (global.weapon == 49)
global.wstrength = 12;
if (global.weapon == 51)
global.wstrength = 15;
if (global.weapon == 52)
global.wstrength = 99;
if (global.armor == 48)
global.wstrength += 5;
if (global.armor == 64)
global.wstrength += 10;
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
639
|
snd_play(snd_item);
|
|
640
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
641
|
break;
|
|
642
|
case 53:
|
|
643
|
scr_armoreqscr_armoreq
if (global.armor == 48)
global.wstrength -= 5;
if (global.armor == 64)
global.wstrength -= 10;
if (argument0 >= 0)
global.item[argument0] = global.armor;
global.armor = argument1;
if (global.armor == 4)
global.adef = 0;
if (global.armor == 12)
global.adef = 3;
if (global.armor == 15)
global.adef = 7;
if (global.armor == 24)
global.adef = 10;
if (global.armor == 44)
global.adef = 5;
if (global.armor == 46)
global.adef = 11;
if (global.armor == 48)
{
global.adef = 12;
global.wstrength += 5;
}
if (global.armor == 50)
global.adef = 15;
if (global.armor == 53)
global.adef = 99;
if (global.armor == 64)
{
global.adef = 20;
global.wstrength += 10;
}
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
644
|
snd_play(snd_item);
|
|
645
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
646
|
break;
|
|
647
|
case 54:
|
|
648
|
global.hp -= 1;
|
|
649
|
grt = instance_create(0, 0, obj_soundcombo);
|
|
650
|
grt.sound1 = snd_swallow;
|
|
651
|
grt.sound2 = snd_hurt1;
|
|
652
|
grt.alarm[1] = 10;
|
|
653
|
if (global.hp <= 2)
|
|
654
|
{
|
|
655
|
grt.sound2 = snd_power;
|
|
656
|
global.hp = global.maxhp;
|
|
657
|
global.msg[0] = * You consume the Bad Memory.Delay 11 * Your HP was maxed out.Wait for inputClose 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; ("item_use_54_heal") ;
|
|
658
|
}
|
|
659
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
660
|
script_execute(scr_itemshift, argument0, 0);
|
|
661
|
break;
|
|
662
|
case 55:
|
|
663
|
if (global.flag[503 dreamed_asriel_fight] == 1)
|
|
664
|
global.msg[0] = * The dream came true!scr_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; ("item_use_55_short") ;
|
|
665
|
global.flag[503 dreamed_asriel_fight] = 1;
|
|
666
|
instance_create(0, 0, obj_foodsound);
|
|
667
|
script_execute(scr_recoitem, 17);
|
|
668
|
script_execute(scr_itemshift, argument0, 0);
|
|
669
|
break;
|
|
670
|
case 56:
|
|
671
|
if (!instance_exists(obj_undyne_friendc))
|
|
672
|
{
|
|
673
|
global.msg[0] = * You tried to open the letter,Delay 11 but...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; ("item_use_56") ;
|
|
674
|
global.msg[1] = * It's been shut so tightly,Delay 11 you'd need a chainsaw in order to open it.Wait for inputClose 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; ("item_use_56a") ;
|
|
675
|
if (room == room_fire_prelab)
|
|
676
|
global.msg[0] = * (Maybe if you check the lab door,Delay 11 you can slide it underneath...)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; ("item_use_56_prelab") ;
|
|
677
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
678
|
}
|
|
679
|
else
|
|
680
|
{
|
|
681
|
global.faceemotion = 1;
|
|
682
|
global.msg[0] = * OH MY GOD!!!Delay 11 * I'M GONNA FREAKIN' KILL 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; ("item_use_56_undyne") ;
|
|
683
|
script_execute(scr_writetext, 0, "x", 5, 37);
|
|
684
|
}
|
|
685
|
break;
|
|
686
|
case 57:
|
|
687
|
if (!instance_exists(obj_undyne_friendc))
|
|
688
|
{
|
|
689
|
global.msg[0] = * You tried to open the letter,Delay 11 but...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; ("item_use_56") ;
|
|
690
|
global.msg[1] = * It's been shut so tightly,Delay 11 you'd need a chainsaw in order to open it.Wait for inputClose 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; ("item_use_56a") ;
|
|
691
|
if (room == room_fire_prelab)
|
|
692
|
global.msg[0] = * (Maybe if you check the lab door,Delay 11 you can slide it underneath...)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; ("item_use_56_prelab") ;
|
|
693
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
694
|
}
|
|
695
|
else
|
|
696
|
{
|
|
697
|
global.faceemotion = 1;
|
|
698
|
global.msg[0] = * OH MY GOD!!!Delay 11 * I'M GONNA FREAKIN' KILL 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; ("item_use_56_undyne") ;
|
|
699
|
script_execute(scr_writetext, 0, "x", 5, 37);
|
|
700
|
}
|
|
701
|
break;
|
|
702
|
case 58:
|
|
703
|
instance_create(0, 0, obj_foodsound);
|
|
704
|
script_execute(scr_recoitem, 13);
|
|
705
|
script_execute(scr_itemshift, argument0, 0);
|
|
706
|
break;
|
|
707
|
case 59:
|
|
708
|
if (instance_exists(obj_ratingsmaster))
|
|
709
|
{
|
|
710
|
global.msg[0] = * You eat the Junk Food. * The audience is disgusted.scr_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; ("item_use_59_mettaton") ;
|
|
711
|
with (obj_ratingsmaster)
|
|
712
|
{
|
|
713
|
curtype = 8;
|
|
714
|
event_user(0);
|
|
715
|
}
|
|
716
|
}
|
|
717
|
instance_create(0, 0, obj_foodsound);
|
|
718
|
script_execute(scr_recoitem, 17);
|
|
719
|
script_execute(scr_itemshift, argument0, 0);
|
|
720
|
break;
|
|
721
|
case 60:
|
|
722
|
if (room == room_icecave1)
|
|
723
|
{
|
|
724
|
global.msg[0] = * You used the Mystery Key.Delay 11 * The door's lock clicks...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; ("item_use_60_fail1") ;
|
|
725
|
global.msg[1] = * ... as you fail to fit the key into it.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; ("item_use_60_fail2") ;
|
|
726
|
global.msg[2] = * Nothing happened.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; ("item_use_60_fail3") ;
|
|
727
|
}
|
|
728
|
if (instance_exists(obj_mettatonex))
|
|
729
|
global.msg[0] = * You used the Mystery Key.Delay 11 * Mettaton pretends it isn't there.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; ("item_use_60_mettaton") ;
|
|
730
|
if (instance_exists(obj_blookhouses))
|
|
731
|
{
|
|
732
|
global.msg[0] = * You used the Mystery Key.Delay 11 * The red house's door was unlocked.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; ("item_use_60_open1") ;
|
|
733
|
global.msg[1] = * The key disappeared.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; ("item_use_60_open2") ;
|
|
734
|
global.flag[433 unlocked_mettaton_house] = 1;
|
|
735
|
snd_play(snd_item);
|
|
736
|
with (obj_blookhouses)
|
|
737
|
event_user(1);
|
|
738
|
script_execute(scr_itemshift, argument0, 0);
|
|
739
|
}
|
|
740
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
741
|
break;
|
|
742
|
case 61:
|
|
743
|
if (instance_exists(obj_ratingsmaster))
|
|
744
|
{
|
|
745
|
global.msg[0] = * You ate the Face Steak. * The audience goes nuts.scr_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; ("item_use_61_mettaton") ;
|
|
746
|
with (obj_ratingsmaster)
|
|
747
|
{
|
|
748
|
curtype = 13;
|
|
749
|
event_user(0);
|
|
750
|
}
|
|
751
|
}
|
|
752
|
grt = instance_create(0, 0, obj_foodsound);
|
|
753
|
grt.alarm[1] = 10;
|
|
754
|
script_execute(scr_recoitem, 60);
|
|
755
|
script_execute(scr_itemshift, argument0, 0);
|
|
756
|
break;
|
|
757
|
case 62:
|
|
758
|
if (global.seriousbattle == 0)
|
|
759
|
global.msg[0] = * You eat the Hush Puppy. * Dog-magic is neutralized.scr_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; ("item_use_62a") ;
|
|
760
|
if (instance_exists(obj_endogeny))
|
|
761
|
obj_endogeny.mercymod = 999999;
|
|
762
|
instance_create(0, 0, obj_foodsound);
|
|
763
|
script_execute(scr_recoitem, 65);
|
|
764
|
script_execute(scr_itemshift, argument0, 0);
|
|
765
|
break;
|
|
766
|
case 63:
|
|
767
|
instance_create(0, 0, obj_foodsound);
|
|
768
|
spec_p = 0;
|
|
769
|
if (global.hp < (global.maxhp - 1))
|
|
770
|
global.hp = global.maxhp - 1;
|
|
771
|
if (instance_exists(obj_asgoreb))
|
|
772
|
{
|
|
773
|
spec_p = 1;
|
|
774
|
global.msg[1] = * The smell reminded ASGORE of something...Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("item_use_11_asgore1") ;
|
|
775
|
global.msg[2] = * ASGORE's ATTACK down!Delay 11 * ASGORE's DEFENSE down!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; ("item_use_11_asgore2") ;
|
|
776
|
with (obj_asgoreb)
|
|
777
|
{
|
|
778
|
global.monsteratk[myself] -= 1;
|
|
779
|
global.monsterdef[myself] -= 5;
|
|
780
|
}
|
|
781
|
}
|
|
782
|
if (instance_exists(obj_ripoff_toriel))
|
|
783
|
{
|
|
784
|
spec_p = 1;
|
|
785
|
global.msg[1] = * The smell reminded the Lost Souls of something...!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; ("item_use_11_toriel") ;
|
|
786
|
with (obj_monsterparent)
|
|
787
|
totalmercy += 3;
|
|
788
|
}
|
|
789
|
if (spec_p == 0)
|
|
790
|
script_execute(scr_writetext, 0, * You ate the Snail Pie. * Your HP was maxed out.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; ("item_use_63") + "%", 0, 0);
|
|
791
|
if (spec_p == 1)
|
|
792
|
script_execute(scr_writetext, 0, * You ate the Snail Pie. * Your HP was maxed out.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; ("item_use_63") , 0, 0);
|
|
793
|
script_execute(scr_itemshift, argument0, 0);
|
|
794
|
break;
|
|
795
|
case 64:
|
|
796
|
scr_armoreqscr_armoreq
if (global.armor == 48)
global.wstrength -= 5;
if (global.armor == 64)
global.wstrength -= 10;
if (argument0 >= 0)
global.item[argument0] = global.armor;
global.armor = argument1;
if (global.armor == 4)
global.adef = 0;
if (global.armor == 12)
global.adef = 3;
if (global.armor == 15)
global.adef = 7;
if (global.armor == 24)
global.adef = 10;
if (global.armor == 44)
global.adef = 5;
if (global.armor == 46)
global.adef = 11;
if (global.armor == 48)
{
global.adef = 12;
global.wstrength += 5;
}
if (global.armor == 50)
global.adef = 15;
if (global.armor == 53)
global.adef = 99;
if (global.armor == 64)
{
global.adef = 20;
global.wstrength += 10;
}
script_execute(scr_itemnameb);
script_execute(scr_itemname); (argument0, argument1);
|
|
797
|
snd_play(snd_item);
|
|
798
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
799
|
break;
|
|
800
|
case 201:
|
|
801
|
if (global.flag[37 dog_call_status] == 1)
|
|
802
|
{
|
|
803
|
scr_writetextscr_writetext
global.facechoice = 0;
global.msc = argument0;
if (argument1 != "x")
global.msg[0] = argument1;
if (argument2 != 0)
global.facechoice = argument2;
if (global.inbattle == 0)
{
global.typer = 5;
if (argument3 != 0)
global.typer = argument3;
instance_create(0, 0, obj_dialoguer);
}
if (global.inbattle == 1)
{
with (OBJ_WRITER)
halt = 3;
global.typer = 1;
if (argument3 != 0)
global.typer = argument3;
instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
} (1508, "x", 0, 0);
|
|
804
|
}
|
|
805
|
else if (global.plot < 19.9)
|
|
806
|
{
|
|
807
|
if (global.plot > 18 && room == room_torhouse2)
|
|
808
|
{
|
|
809
|
snd_play(snd_phone);
|
|
810
|
script_execute(scr_writetext, 1507, "x", 0, 0);
|
|
811
|
}
|
|
812
|
else
|
|
813
|
{
|
|
814
|
snd_play(snd_phone);
|
|
815
|
script_execute(scr_writetext, 1501, "x", 0, 0);
|
|
816
|
}
|
|
817
|
}
|
|
818
|
else
|
|
819
|
{
|
|
820
|
snd_play(snd_phone);
|
|
821
|
script_execute(scr_writetext, 1506, "x", 0, 0);
|
|
822
|
}
|
|
823
|
break;
|
|
824
|
case 202:
|
|
825
|
if (global.flag[37 dog_call_status] == 1)
|
|
826
|
{
|
|
827
|
scr_writetextscr_writetext
global.facechoice = 0;
global.msc = argument0;
if (argument1 != "x")
global.msg[0] = argument1;
if (argument2 != 0)
global.facechoice = argument2;
if (global.inbattle == 0)
{
global.typer = 5;
if (argument3 != 0)
global.typer = argument3;
instance_create(0, 0, obj_dialoguer);
}
if (global.inbattle == 1)
{
with (OBJ_WRITER)
halt = 3;
global.typer = 1;
if (argument3 != 0)
global.typer = argument3;
instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
} (1508, "x", 0, 0);
|
|
828
|
}
|
|
829
|
else if (global.plot < 19.9)
|
|
830
|
{
|
|
831
|
if (global.plot > 18 && room == room_torhouse2)
|
|
832
|
{
|
|
833
|
snd_play(snd_phone);
|
|
834
|
script_execute(scr_writetext, 1507, "x", 0, 0);
|
|
835
|
}
|
|
836
|
else
|
|
837
|
{
|
|
838
|
snd_play(snd_phone);
|
|
839
|
script_execute(scr_writetext, 1502, "x", 0, 0);
|
|
840
|
script_execute(scr_phoneshift, argument0, 0);
|
|
841
|
}
|
|
842
|
}
|
|
843
|
else
|
|
844
|
{
|
|
845
|
snd_play(snd_phone);
|
|
846
|
script_execute(scr_writetext, 1506, "x", 0, 0);
|
|
847
|
}
|
|
848
|
break;
|
|
849
|
case 203:
|
|
850
|
if (global.flag[37 dog_call_status] == 1)
|
|
851
|
{
|
|
852
|
scr_writetextscr_writetext
global.facechoice = 0;
global.msc = argument0;
if (argument1 != "x")
global.msg[0] = argument1;
if (argument2 != 0)
global.facechoice = argument2;
if (global.inbattle == 0)
{
global.typer = 5;
if (argument3 != 0)
global.typer = argument3;
instance_create(0, 0, obj_dialoguer);
}
if (global.inbattle == 1)
{
with (OBJ_WRITER)
halt = 3;
global.typer = 1;
if (argument3 != 0)
global.typer = argument3;
instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
} (1508, "x", 0, 0);
|
|
853
|
}
|
|
854
|
else if (global.plot < 19.9)
|
|
855
|
{
|
|
856
|
if (global.plot > 18 && room == room_torhouse2)
|
|
857
|
{
|
|
858
|
snd_play(snd_phone);
|
|
859
|
script_execute(scr_writetext, 1507, "x", 0, 0);
|
|
860
|
}
|
|
861
|
else
|
|
862
|
{
|
|
863
|
snd_play(snd_phone);
|
|
864
|
script_execute(scr_writetext, 1503, "x", 0, 0);
|
|
865
|
script_execute(scr_phoneshift, argument0, 0);
|
|
866
|
}
|
|
867
|
}
|
|
868
|
else
|
|
869
|
{
|
|
870
|
snd_play(snd_phone);
|
|
871
|
script_execute(scr_writetext, 1506, "x", 0, 0);
|
|
872
|
}
|
|
873
|
break;
|
|
874
|
case 204:
|
|
875
|
if (global.flag[37 dog_call_status] == 1)
|
|
876
|
{
|
|
877
|
scr_writetextscr_writetext
global.facechoice = 0;
global.msc = argument0;
if (argument1 != "x")
global.msg[0] = argument1;
if (argument2 != 0)
global.facechoice = argument2;
if (global.inbattle == 0)
{
global.typer = 5;
if (argument3 != 0)
global.typer = argument3;
instance_create(0, 0, obj_dialoguer);
}
if (global.inbattle == 1)
{
with (OBJ_WRITER)
halt = 3;
global.typer = 1;
if (argument3 != 0)
global.typer = argument3;
instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
} (1508, "x", 0, 0);
|
|
878
|
}
|
|
879
|
else if (global.plot < 19.9)
|
|
880
|
{
|
|
881
|
if (global.plot > 18 && room == room_torhouse2)
|
|
882
|
{
|
|
883
|
snd_play(snd_phone);
|
|
884
|
script_execute(scr_writetext, 1507, "x", 0, 0);
|
|
885
|
}
|
|
886
|
else
|
|
887
|
{
|
|
888
|
snd_play(snd_phone);
|
|
889
|
script_execute(scr_writetext, 1504, "x", 0, 0);
|
|
890
|
script_execute(scr_phoneshift, argument0, 0);
|
|
891
|
}
|
|
892
|
}
|
|
893
|
else
|
|
894
|
{
|
|
895
|
snd_play(snd_phone);
|
|
896
|
script_execute(scr_writetext, 1506, "x", 0, 0);
|
|
897
|
}
|
|
898
|
break;
|
|
899
|
case 205:
|
|
900
|
if (global.flag[37 dog_call_status] == 1)
|
|
901
|
{
|
|
902
|
scr_writetextscr_writetext
global.facechoice = 0;
global.msc = argument0;
if (argument1 != "x")
global.msg[0] = argument1;
if (argument2 != 0)
global.facechoice = argument2;
if (global.inbattle == 0)
{
global.typer = 5;
if (argument3 != 0)
global.typer = argument3;
instance_create(0, 0, obj_dialoguer);
}
if (global.inbattle == 1)
{
with (OBJ_WRITER)
halt = 3;
global.typer = 1;
if (argument3 != 0)
global.typer = argument3;
instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
} (1508, "x", 0, 0);
|
|
903
|
}
|
|
904
|
else if (global.plot < 19.9)
|
|
905
|
{
|
|
906
|
if (global.plot > 18 && room == room_torhouse2)
|
|
907
|
{
|
|
908
|
snd_play(snd_phone);
|
|
909
|
script_execute(scr_writetext, 1507, "x", 0, 0);
|
|
910
|
}
|
|
911
|
else
|
|
912
|
{
|
|
913
|
snd_play(snd_phone);
|
|
914
|
if (global.flag[41 flirted_toriel] == 1)
|
|
915
|
script_execute(scr_phoneshift, argument0, 0);
|
|
916
|
script_execute(scr_writetext, 1505, "x", 0, 0);
|
|
917
|
}
|
|
918
|
}
|
|
919
|
else
|
|
920
|
{
|
|
921
|
snd_play(snd_phone);
|
|
922
|
script_execute(scr_writetext, 1506, "x", 0, 0);
|
|
923
|
}
|
|
924
|
break;
|
|
925
|
case 206:
|
|
926
|
scr_phone_moveupscr_phone_moveup
for (i = argument0; i > 0; i -= 1)
global.phone[i] = global.phone[i - 1];
global.phone[0] = argument1;
script_execute(scr_phonename); (argument0, argument1);
|
|
927
|
snd_play(snd_phone);
|
|
928
|
if (global.flag[7 true_pacifist] == 0)
|
|
929
|
script_execute(scr_writetext, 1506, "x", 0, 0);
|
|
930
|
if (global.flag[7 true_pacifist] == 1)
|
|
931
|
script_execute(scr_writetext, 1515, "x", 0, 0);
|
|
932
|
break;
|
|
933
|
case 210:
|
|
934
|
scr_phone_moveupscr_phone_moveup
for (i = argument0; i > 0; i -= 1)
global.phone[i] = global.phone[i - 1];
global.phone[0] = argument1;
script_execute(scr_phonename); (argument0, argument1);
|
|
935
|
script_execute(scr_writetext, 1510, "x", 0, 0);
|
|
936
|
break;
|
|
937
|
case 220:
|
|
938
|
if (room != room_water_dogroom)
|
|
939
|
{
|
|
940
|
snd_play(snd_dimbox);
|
|
941
|
scr_phone_moveupscr_phone_moveup
for (i = argument0; i > 0; i -= 1)
global.phone[i] = global.phone[i - 1];
global.phone[0] = argument1;
script_execute(scr_phonename); (argument0, argument1);
|
|
942
|
ii = instance_create(0, 0, obj_itemswapper);
|
|
943
|
ii.spec = 1;
|
|
944
|
ii.boxtype = 0;
|
|
945
|
}
|
|
946
|
else
|
|
947
|
{
|
|
948
|
script_execute(scr_writetext, 1520, "x", 0, 0);
|
|
949
|
}
|
|
950
|
break;
|
|
951
|
case 221:
|
|
952
|
if (room != room_water_dogroom)
|
|
953
|
{
|
|
954
|
snd_play(snd_dimbox);
|
|
955
|
scr_phone_moveupscr_phone_moveup
for (i = argument0; i > 0; i -= 1)
global.phone[i] = global.phone[i - 1];
global.phone[0] = argument1;
script_execute(scr_phonename); (argument0, argument1);
|
|
956
|
ii = instance_create(0, 0, obj_itemswapper);
|
|
957
|
ii.spec = 1;
|
|
958
|
ii.boxtype = 1;
|
|
959
|
}
|
|
960
|
else
|
|
961
|
{
|
|
962
|
script_execute(scr_writetext, 1520, "x", 0, 0);
|
|
963
|
}
|
|
964
|
break;
|
|
965
|
}
|