|
1
|
if (global.mnfight == 3)
|
|
2
|
{
|
|
3
|
attacked = 0;
|
|
4
|
with (obj_carrotstargen)
|
|
5
|
instance_destroy();
|
|
6
|
}
|
|
7
|
if (alarm[5] > 0)
|
|
8
|
{
|
|
9
|
if (global.monster[0] == 1)
|
|
10
|
{
|
|
11
|
if (global.monsterinstance[0].alarm[5] > alarm[5]) gml_Object_obj_bara02_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 16;
|
|
12
|
alarm[5] = global.monsterinstance[0].alarm[5]; gml_Object_obj_bara02_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 16;
|
|
13
|
}
|
|
14
|
if (global.monster[1] == 1)
|
|
15
|
{
|
|
16
|
if (global.monsterinstance[1].alarm[5] > alarm[5]) gml_Object_obj_bara02_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 16;
|
|
17
|
alarm[5] = global.monsterinstance[1].alarm[5]; gml_Object_obj_bara02_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 16;
|
|
18
|
}
|
|
19
|
if (global.monster[2] == 1)
|
|
20
|
{
|
|
21
|
if (global.monsterinstance[2].alarm[5] > alarm[5]) gml_Object_obj_bara02_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 16;
|
|
22
|
alarm[5] = global.monsterinstance[2].alarm[5]; gml_Object_obj_bara02_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 16;
|
|
23
|
}
|
|
24
|
}
|
|
25
|
if (global.mnfight == 1)
|
|
26
|
{
|
|
27
|
if (talked == 0)
|
|
28
|
{
|
|
29
|
alarm[5] = 110; gml_Object_obj_bara02_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 16;
|
|
30
|
alarm[6] = 1; gml_Object_obj_bara02_Alarm_6.gml
blcon = instance_create((x - blconx) + 40, y + 55 + 32, obj_blconsm);
blcon.sprite_index = spr_blconsm2;
gg = floor(random(3));
attacked = 0;
mycommand = round(random(100));
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = ;
if (mycommand >= 25)
global.msg[0] = ;
if (mycommand >= 50)
global.msg[0] = ;
if (mycommand >= 75)
global.msg[0] = ;
if (turn0 == 0)
global.msg[0] = ;
turn0 = 1;
if (whatiheard == 3)
global.msg[0] = ;
if (whatiheard == 1)
{
global.msg[0] = ;
if (shirtless == 1)
global.msg[0] = ;
}
pop = scr_monstersum();
if (pop < 2)
{
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = ;
if (mycommand >= 25)
global.msg[0] = ;
if (mycommand >= 50)
global.msg[0] = ;
if (mycommand >= 75)
global.msg[0] = ;
if (freshdeath == 0 && mercymod < 1)
global.msg[0] = ;
if (freshdeath == 0 && mercymod > 100)
global.msg[0] = ;
freshdeath = 1;
mercymod = -99999;
}
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 15;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
|
|
31
|
talked = 1;
|
|
32
|
global.heard = 0;
|
|
33
|
}
|
|
34
|
}
|
|
35
|
if (control_check_pressed(0))
|
|
36
|
{
|
|
37
|
if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0) gml_Object_obj_bara02_Alarm_6.gml
blcon = instance_create((x - blconx) + 40, y + 55 + 32, obj_blconsm);
blcon.sprite_index = spr_blconsm2;
gg = floor(random(3));
attacked = 0;
mycommand = round(random(100));
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = ;
if (mycommand >= 25)
global.msg[0] = ;
if (mycommand >= 50)
global.msg[0] = ;
if (mycommand >= 75)
global.msg[0] = ;
if (turn0 == 0)
global.msg[0] = ;
turn0 = 1;
if (whatiheard == 3)
global.msg[0] = ;
if (whatiheard == 1)
{
global.msg[0] = ;
if (shirtless == 1)
global.msg[0] = ;
}
pop = scr_monstersum();
if (pop < 2)
{
if (mycommand >= 0 && mycommand < 25)
global.msg[0] = ;
if (mycommand >= 25)
global.msg[0] = ;
if (mycommand >= 50)
global.msg[0] = ;
if (mycommand >= 75)
global.msg[0] = ;
if (freshdeath == 0 && mercymod < 1)
global.msg[0] = ;
if (freshdeath == 0 && mercymod > 100)
global.msg[0] = ;
freshdeath = 1;
mercymod = -99999;
}
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 15;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
|
|
38
|
alarm[5] = 2; gml_Object_obj_bara02_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 16;
|
|
39
|
}
|
|
40
|
if (global.hurtanim[myself] == 1)
|
|
41
|
{
|
|
42
|
shudder = 8;
|
|
43
|
alarm[3] = global.damagetimer; gml_Object_obj_bara02_Alarm_3.gml
if (mypart1.pause != 1)
{
dmgwriter = instance_create(x, y + 24, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
with (mypart1)
pause = 1;
snd_play(snd_damage);
alarm[8] = 11;
}
if (sha == 0)
sha = x;
x = sha + shudder;
if (shudder < 0)
shudder = -(shudder + 1);
else
shudder = -shudder;
if (shudder == 0)
{
sha = 0;
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2;
|
|
44
|
global.hurtanim[myself] = 3;
|
|
45
|
}
|
|
46
|
if (global.hurtanim[myself] == 2)
|
|
47
|
{
|
|
48
|
global.monsterhp[myself] -= takedamage;
|
|
49
|
with (dmgwriter)
|
|
50
|
alarm[2]
|
|
51
|
if (global.monsterhp[myself] >= 1)
|
|
52
|
{
|
|
53
|
mypart1.pause = 0;
|
|
54
|
global.hurtanim[myself] = 0;
|
|
55
|
global.myfight = 0;
|
|
56
|
global.mnfight = 1;
|
|
57
|
}
|
|
58
|
else
|
|
59
|
{
|
|
60
|
global.myfight = 0;
|
|
61
|
global.mnfight = 1;
|
|
62
|
killed = 1;
|
|
63
|
instance_destroy();
|
|
64
|
}
|
|
65
|
}
|
|
66
|
if (global.hurtanim[myself] == 5)
|
|
67
|
{
|
|
68
|
global.damage = 0;
|
|
69
|
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
|
|
70
|
with (obj_dmgwriter)
|
|
71
|
alarm[2]
|
|
72
|
global.myfight = 0;
|
|
73
|
global.mnfight = 1;
|
|
74
|
global.hurtanim[myself] = 0;
|
|
75
|
}
|
|
76
|
if (global.mnfight == 2)
|
|
77
|
{
|
|
78
|
if (obj_uborder.y > global.idealborder[2])
|
|
79
|
obj_heart.y = (obj_uborder.y + obj_dborder.y) / 2;
|
|
80
|
if (attacked == 0)
|
|
81
|
{
|
|
82
|
pop = scr_monstersumscr_monstersum
return global.monster[0] + global.monster[1] + global.monster[2]; ();
|
|
83
|
global.turntimer = 180;
|
|
84
|
if (instance_exists(obj_carrotstargen) == 0)
|
|
85
|
{
|
|
86
|
if (whatiheard == 1 && con == 0 && pop > 1)
|
|
87
|
mycommand = 80;
|
|
88
|
if (mycommand >= 0 && mycommand <= 50)
|
|
89
|
{
|
|
90
|
global.firingrate = 25;
|
|
91
|
gen = instance_create(x, y, obj_carrotstargen);
|
|
92
|
gen.dmg = global.monsteratk[myself];
|
|
93
|
gen.alarm[0] = 8;
|
|
94
|
if (con > 6 && scr_monstersumscr_monstersum
return global.monster[0] + global.monster[1] + global.monster[2]; () == 2)
|
|
95
|
gen.shake = 1;
|
|
96
|
}
|
|
97
|
else
|
|
98
|
{
|
|
99
|
global.firingrate = 20;
|
|
100
|
if (whatiheard == 1 && con == 0 && pop > 1)
|
|
101
|
{
|
|
102
|
instance_create((room_width / 2) - 15, (room_height / 2) - 80, obj_greenarmor);
|
|
103
|
global.firingrate = 35;
|
|
104
|
}
|
|
105
|
gen = instance_create(x, y, obj_carrotstargen);
|
|
106
|
gen.dmg = global.monsteratk[myself];
|
|
107
|
gen.alarm[1] = 8;
|
|
108
|
if (con > 6 && scr_monstersumscr_monstersum
return global.monster[0] + global.monster[1] + global.monster[2]; () == 2)
|
|
109
|
gen.shake = 1;
|
|
110
|
}
|
|
111
|
gen.myself = myself;
|
|
112
|
}
|
|
113
|
if (mycommand >= 0)
|
|
114
|
global.msg[0] = * Sweat pours from 02's armor.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; ("obj_bara02_527") ;
|
|
115
|
if (mycommand >= 25)
|
|
116
|
global.msg[0] = * 01 is polishing his face.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; ("obj_bara02_528") ;
|
|
117
|
if (mycommand >= 50)
|
|
118
|
global.msg[0] = * 01 stands guard.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; ("obj_bara02_529") ;
|
|
119
|
if (mycommand >= 75)
|
|
120
|
global.msg[0] = * 02 watches your movements.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; ("obj_bara02_530") ;
|
|
121
|
if (mycommand >= 90)
|
|
122
|
global.msg[0] = * Smells like a military zoo.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; ("obj_bara02_531") ;
|
|
123
|
pop = scr_monstersumscr_monstersum
return global.monster[0] + global.monster[1] + global.monster[2]; ();
|
|
124
|
if (pop == 1)
|
|
125
|
{
|
|
126
|
if (mycommand >= 0)
|
|
127
|
global.msg[0] = * 02 is clenching and unclenching his fists.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; ("obj_bara02_538") ;
|
|
128
|
if (mycommand >= 25)
|
|
129
|
global.msg[0] = * 02 is shaking his head.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; ("obj_bara02_539") ;
|
|
130
|
if (mycommand >= 50)
|
|
131
|
global.msg[0] = * 02 is striking his sword against the ground.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; ("obj_bara02_540") ;
|
|
132
|
if (mycommand >= 75)
|
|
133
|
global.msg[0] = * 02 is coughing.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; ("obj_bara02_541") ;
|
|
134
|
}
|
|
135
|
if (global.monsterhp[myself] < 30)
|
|
136
|
global.msg[0] = * 02's breathing intensifies.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; ("obj_bara02_545") ;
|
|
137
|
attacked = 1;
|
|
138
|
whatiheard = -1;
|
|
139
|
}
|
|
140
|
}
|
|
141
|
if (global.myfight == 2)
|
|
142
|
{
|
|
143
|
if (whatiheard != -1)
|
|
144
|
{
|
|
145
|
if (global.heard == 0)
|
|
146
|
{
|
|
147
|
if (whatiheard == 0)
|
|
148
|
{
|
|
149
|
global.msc = 0;
|
|
150
|
global.msg[0] = * RG 02 - ATK 30 DEF 20 * Royal Guard member with stuffy armor.Wait for input^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; ("obj_bara02_564") ;
|
|
151
|
if (scr_murderlvscr_murderlv
mrd = 0;
if (global.flag[202 kills_ruins] >= 20)
mrd = 1;
if (mrd == 1 && global.flag[45 status_toriel] == 4)
mrd = 2;
if (mrd == 2 && global.flag[52 status_doggo] == 1)
mrd = 3;
if (mrd == 3 && global.flag[53 status_dogcouple] == 1)
mrd = 4;
if (mrd == 4 && global.flag[54 status_greaterdog] == 1)
mrd = 5;
if (mrd == 5 && global.flag[57 status_snowdrake] == 2)
mrd = 6;
if (mrd == 6 && global.flag[203 kills_tundra] >= 16)
mrd = 7;
if (mrd == 7 && global.flag[67 status_papyrus] == 1)
mrd = 8;
if (mrd == 8 && global.flag[81 status_shyren] == 1)
mrd = 9;
if (mrd == 9 && global.flag[252 killed_glad_dummy] == 1)
mrd = 10;
if (mrd == 10 && global.flag[204 kills_water] >= 18)
mrd = 11;
if (mrd == 11 && global.flag[251 killed_undyne_ex] == 1 && global.flag[350 status_undyne] == 1)
mrd = 12;
if (mrd == 12 && global.flag[402 killed_rg] == 1)
mrd = 13;
if (mrd == 13 && global.flag[397 killed_muffet] == 1)
mrd = 14;
if (mrd == 14 && global.flag[205 kills_hotland] >= 40)
mrd = 15;
if (mrd == 15 && global.flag[425 killed_mettaton] == 1 && global.flag[27 spared_specific] == 0)
mrd = 16;
murderboy = mrd;
if (global.flag[26 murderlevel_override] > 0)
mrd = global.flag[26 murderlevel_override];
return mrd; () >= 12 && global.flag[27 spared_specific] == 0)
|
|
152
|
{
|
|
153
|
global.msg[0] = * Do they both wish for death?Delay 11 * That means their love will end in hell.Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_bara02_567") ;
|
|
154
|
global.msg[1] = * I couldn't stop laughing.Wait for input^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; ("obj_bara02_568") ;
|
|
155
|
}
|
|
156
|
OBJ_WRITER.halt = 3;
|
|
157
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
158
|
with (iii)
|
|
159
|
halt = 0;
|
|
160
|
whatiheard = 9;
|
|
161
|
}
|
|
162
|
if (whatiheard == 1)
|
|
163
|
{
|
|
164
|
global.msc = 0;
|
|
165
|
global.msg[0] = * You clean RG 02's armor. * Its cooling dirt begins to wash away.Wait for input^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; ("obj_bara02_580") ;
|
|
166
|
if (scr_monstersumscr_monstersum
return global.monster[0] + global.monster[1] + global.monster[2]; () < 2)
|
|
167
|
global.msg[0] = * You were repelled.Wait for input^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; ("obj_bara02_581") ;
|
|
168
|
if (shirtless == 1)
|
|
169
|
{
|
|
170
|
global.msg[0] = * You pat RG 02's chest like a muscular bongo.Wait for input^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; ("obj_bara02_585") ;
|
|
171
|
if (instance_exists(obj_bara01))
|
|
172
|
obj_bara01.whatiheard = 12;
|
|
173
|
}
|
|
174
|
OBJ_WRITER.halt = 3;
|
|
175
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
176
|
with (iii)
|
|
177
|
halt = 0;
|
|
178
|
}
|
|
179
|
if (whatiheard == 3)
|
|
180
|
{
|
|
181
|
global.msc = 0;
|
|
182
|
global.msg[0] = * You tell RG 02 your favorite secret.Wait for input^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; ("obj_bara02_597") ;
|
|
183
|
OBJ_WRITER.halt = 3;
|
|
184
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
185
|
with (iii)
|
|
186
|
halt = 0;
|
|
187
|
}
|
|
188
|
global.heard = 1;
|
|
189
|
}
|
|
190
|
}
|
|
191
|
}
|
|
192
|
if (alphaup == 1 && image_alpha < 1)
|
|
193
|
image_alpha += 0.05;
|
|
194
|
if (global.myfight == 4)
|
|
195
|
{
|
|
196
|
if (global.mercyuse == 0)
|
|
197
|
{
|
|
198
|
script_execute(scr_mercystandard);
|
|
199
|
if (mercy < 0)
|
|
200
|
instance_destroy();
|
|
201
|
}
|
|
202
|
}
|
|
203
|
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0)
|
|
204
|
{
|
|
205
|
script_execute(scr_mercystandard);
|
|
206
|
if (mercy < 0)
|
|
207
|
instance_destroy();
|
|
208
|
}
|
|
209
|
if (global.mnfight == 5)
|
|
210
|
{
|
|
211
|
if (con == 0)
|
|
212
|
{
|
|
213
|
obj_heart.x = -800;
|
|
214
|
obj_heart.movement = -1;
|
|
215
|
global.border = 0;
|
|
216
|
alarm[4] = 15; gml_Object_obj_bara02_Alarm_4.gml
con += 1;
|
|
217
|
con = 1;
|
|
218
|
}
|
|
219
|
if (con == 2)
|
|
220
|
{
|
|
221
|
blcon = instance_create(x - blconx, y + blcony, obj_blconsm);
|
|
222
|
blcon.sprite_index = spr_blconsm2;
|
|
223
|
global.typer = 2;
|
|
224
|
global.msg[0] = ... can't ... take 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; ("obj_bara02_644") ;
|
|
225
|
global.msg[1] = ... armor... too... HOT!!!Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_bara02_645") ;
|
|
226
|
writer = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
|
|
227
|
con = 3;
|
|
228
|
}
|
|
229
|
if (con == 3 && instance_exists(OBJ_WRITER) == 0)
|
|
230
|
{
|
|
231
|
with (blcon)
|
|
232
|
instance_destroy();
|
|
233
|
snd_play(snd_grab);
|
|
234
|
with (mypart1)
|
|
235
|
bodypic = spr_barashirtless;
|
|
236
|
con = 4;
|
|
237
|
alarm[4] = 60; gml_Object_obj_bara02_Alarm_4.gml
con += 1;
|
|
238
|
}
|
|
239
|
if (con == 5 && instance_exists(OBJ_WRITER) == 0)
|
|
240
|
{
|
|
241
|
if (instance_exists(obj_bara01))
|
|
242
|
{
|
|
243
|
with (obj_bara01.mypart1)
|
|
244
|
event_user(2);
|
|
245
|
}
|
|
246
|
blcon = instance_create(x - blconx, y + blcony, obj_blconsm);
|
|
247
|
blcon.sprite_index = spr_blconsm2;
|
|
248
|
global.typer = 2;
|
|
249
|
global.msg[0] = ... much better.Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_bara02_664") ;
|
|
250
|
writer = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
|
|
251
|
con = 6;
|
|
252
|
}
|
|
253
|
if (con == 6 && instance_exists(OBJ_WRITER) == 0)
|
|
254
|
{
|
|
255
|
shirtless = 1;
|
|
256
|
with (blcon)
|
|
257
|
instance_destroy();
|
|
258
|
global.msg[0] = * RG 01 looks bothered by something.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; ("obj_bara02_672") ;
|
|
259
|
con = 7;
|
|
260
|
global.mnfight = 3;
|
|
261
|
obj_bara01.shake = 1;
|
|
262
|
obj_heart.movement = 1;
|
|
263
|
}
|
|
264
|
}
|