|
1
|
if (global.mnfight == 3)
|
|
2
|
attacked = 0;
|
|
3
|
if (global.myfight == 0 && global.mnfight == 0)
|
|
4
|
eat = 0;
|
|
5
|
if (alarm[5] > 0)
|
|
6
|
{
|
|
7
|
if (global.monster[0] == 1)
|
|
8
|
{
|
|
9
|
if (global.monsterinstance[0].alarm[5] > alarm[5]) gml_Object_obj_parsnik_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 3;
|
|
10
|
alarm[5] = global.monsterinstance[0].alarm[5]; gml_Object_obj_parsnik_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 3;
|
|
11
|
}
|
|
12
|
if (global.monster[1] == 1)
|
|
13
|
{
|
|
14
|
if (global.monsterinstance[1].alarm[5] > alarm[5]) gml_Object_obj_parsnik_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 3;
|
|
15
|
alarm[5] = global.monsterinstance[1].alarm[5]; gml_Object_obj_parsnik_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 3;
|
|
16
|
}
|
|
17
|
if (global.monster[2] == 1)
|
|
18
|
{
|
|
19
|
if (global.monsterinstance[2].alarm[5] > alarm[5]) gml_Object_obj_parsnik_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 3;
|
|
20
|
alarm[5] = global.monsterinstance[2].alarm[5]; gml_Object_obj_parsnik_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 3;
|
|
21
|
}
|
|
22
|
}
|
|
23
|
if (global.mnfight == 1)
|
|
24
|
{
|
|
25
|
if (talked == 0)
|
|
26
|
{
|
|
27
|
alarm[5] = 110; gml_Object_obj_parsnik_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 3;
|
|
28
|
alarm[6] = 1; gml_Object_obj_parsnik_Alarm_6.gml
blcon = instance_create(x + 100, y + 10, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
if (mycommand >= 0)
global.msg[0] = ;
if (mycommand >= 25)
global.msg[0] = ;
if (mycommand >= 50)
global.msg[0] = ;
if (mycommand >= 75)
global.msg[0] = ;
if (ate == 1)
global.msg[0] = ;
if (whatiheard == 3)
global.msg[0] = ;
if (whatiheard == 4)
global.msg[0] = ;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 3;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
|
|
29
|
talked = 1;
|
|
30
|
global.heard = 0;
|
|
31
|
}
|
|
32
|
}
|
|
33
|
if (control_check_pressed(0))
|
|
34
|
{
|
|
35
|
if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0) gml_Object_obj_parsnik_Alarm_6.gml
blcon = instance_create(x + 100, y + 10, obj_blconsm);
gg = floor(random(3));
mycommand = round(random(100));
if (mycommand >= 0)
global.msg[0] = ;
if (mycommand >= 25)
global.msg[0] = ;
if (mycommand >= 50)
global.msg[0] = ;
if (mycommand >= 75)
global.msg[0] = ;
if (ate == 1)
global.msg[0] = ;
if (whatiheard == 3)
global.msg[0] = ;
if (whatiheard == 4)
global.msg[0] = ;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 3;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
|
|
36
|
alarm[5] = 2; gml_Object_obj_parsnik_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.mnfight = 2;
global.border = 3;
|
|
37
|
}
|
|
38
|
if (global.hurtanim[myself] == 1)
|
|
39
|
{
|
|
40
|
shudder = 8;
|
|
41
|
alarm[3] = global.damagetimer; gml_Object_obj_parsnik_Alarm_3.gml
if (mypart1.pause != 1)
{
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
mypart1.pause = 1;
osh = instance_create(0, 0, obj_objshake);
osh.obj = mypart1;
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;
|
|
42
|
global.hurtanim[myself] = 3;
|
|
43
|
}
|
|
44
|
if (global.hurtanim[myself] == 2)
|
|
45
|
{
|
|
46
|
global.monsterhp[myself] -= takedamage;
|
|
47
|
with (dmgwriter)
|
|
48
|
alarm[2]
|
|
49
|
if (global.monsterhp[myself] >= 1)
|
|
50
|
{
|
|
51
|
global.hurtanim[myself] = 0;
|
|
52
|
mypart1.pause = 0;
|
|
53
|
global.myfight = 0;
|
|
54
|
global.mnfight = 1;
|
|
55
|
}
|
|
56
|
else
|
|
57
|
{
|
|
58
|
global.myfight = 0;
|
|
59
|
global.mnfight = 1;
|
|
60
|
killed = 1;
|
|
61
|
instance_destroy();
|
|
62
|
}
|
|
63
|
}
|
|
64
|
if (global.hurtanim[myself] == 5)
|
|
65
|
{
|
|
66
|
global.damage = 0;
|
|
67
|
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
|
|
68
|
with (obj_dmgwriter)
|
|
69
|
alarm[2]
|
|
70
|
global.myfight = 0;
|
|
71
|
global.mnfight = 1;
|
|
72
|
global.hurtanim[myself] = 0;
|
|
73
|
}
|
|
74
|
if (global.mnfight == 2)
|
|
75
|
{
|
|
76
|
if (attacked == 0)
|
|
77
|
{
|
|
78
|
pop = scr_monstersumscr_monstersum
return global.monster[0] + global.monster[1] + global.monster[2]; ();
|
|
79
|
global.turntimer = 150;
|
|
80
|
if (mycommand < 50)
|
|
81
|
{
|
|
82
|
global.firingrate = 4;
|
|
83
|
if ((global.monster[0] + global.monster[1] + global.monster[2]) > 1)
|
|
84
|
global.firingrate = 7;
|
|
85
|
if ((global.monster[0] + global.monster[1] + global.monster[2]) == 3)
|
|
86
|
global.firingrate = 11;
|
|
87
|
gen = instance_create(0, 0, obj_1sidegen);
|
|
88
|
if (eat == 1)
|
|
89
|
gen.specgreen = 1;
|
|
90
|
gen.bullettype = 6;
|
|
91
|
}
|
|
92
|
if (mycommand >= 50)
|
|
93
|
{
|
|
94
|
global.firingrate = 12;
|
|
95
|
if ((global.monster[0] + global.monster[1] + global.monster[2]) == 2)
|
|
96
|
global.firingrate = 22;
|
|
97
|
if ((global.monster[0] + global.monster[1] + global.monster[2]) == 3)
|
|
98
|
global.firingrate = 30;
|
|
99
|
gen = instance_create(0, 0, obj_1sidegen);
|
|
100
|
if (eat == 1)
|
|
101
|
gen.specgreen = 1;
|
|
102
|
gen.bullettype = 5;
|
|
103
|
}
|
|
104
|
gen.myself = myself;
|
|
105
|
gen.dmg = global.monsteratk[myself];
|
|
106
|
if (mycommand >= 0)
|
|
107
|
global.msg[0] = * Parsnik has a hissy fit.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_parsnik_431") ;
|
|
108
|
if (mycommand >= 25)
|
|
109
|
global.msg[0] = * Parsnik's snakes shift to change hairstyles.Delay 11 * Mohawk.Delay 11 Ponytail.Delay 11 Undercut.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_parsnik_432") ;
|
|
110
|
if (mycommand >= 50)
|
|
111
|
global.msg[0] = * Parsnik completely closes its mouth.Delay 11 * It looks short and weird.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_parsnik_433") ;
|
|
112
|
if (mycommand >= 75)
|
|
113
|
global.msg[0] = * Snakes play with a beach 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; ("obj_parsnik_434") ;
|
|
114
|
if (mycommand >= 90)
|
|
115
|
global.msg[0] = * Smells like tasty snakes.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_parsnik_435") ;
|
|
116
|
if (mercymod > 100)
|
|
117
|
global.msg[0] = * Parsnik seems satisfied.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_parsnik_436") ;
|
|
118
|
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 4))
|
|
119
|
global.msg[0] = * The snakes are wilting.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_parsnik_437") ;
|
|
120
|
attacked = 1;
|
|
121
|
}
|
|
122
|
if (mercymod == 999999)
|
|
123
|
{
|
|
124
|
global.turntimer = -1;
|
|
125
|
global.mnfight = 3;
|
|
126
|
}
|
|
127
|
whatiheard = -1;
|
|
128
|
}
|
|
129
|
if (whatiheard == 1 && instance_exists(OBJ_WRITER) == 0)
|
|
130
|
{
|
|
131
|
script_execute(scr_mercystandard);
|
|
132
|
if (mercy < 8)
|
|
133
|
{
|
|
134
|
killed = 0;
|
|
135
|
instance_destroy();
|
|
136
|
}
|
|
137
|
}
|
|
138
|
if (global.myfight == 2)
|
|
139
|
{
|
|
140
|
if (whatiheard != -1)
|
|
141
|
{
|
|
142
|
if (global.heard == 0)
|
|
143
|
{
|
|
144
|
if (whatiheard == 0)
|
|
145
|
{
|
|
146
|
global.msc = 0;
|
|
147
|
global.msg[0] = * PARSNIK - ATK 30 DEF 28 * This cobrafied carrot has a headful of tasty snakes.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_parsnik_478") ;
|
|
148
|
OBJ_WRITER.halt = 3;
|
|
149
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
150
|
with (iii)
|
|
151
|
halt = 0;
|
|
152
|
whatiheard = 9;
|
|
153
|
}
|
|
154
|
if (whatiheard == 3)
|
|
155
|
{
|
|
156
|
global.myfight = 0;
|
|
157
|
global.mnfight = 1;
|
|
158
|
}
|
|
159
|
if (whatiheard == 1)
|
|
160
|
{
|
|
161
|
global.msc = 0;
|
|
162
|
script_execute(scr_mercystandard);
|
|
163
|
global.msg[0] = * You tried to eat Parsnik,Delay 11 but it wasn't weakened enough.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_parsnik_495") ;
|
|
164
|
if (mercy < 8)
|
|
165
|
{
|
|
166
|
global.msg[0] = * You start eating snakes like they're spaghetti. * You recovered 5 HP!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_parsnik_498") ;
|
|
167
|
instance_create(0, 0, obj_foodsound);
|
|
168
|
script_execute(scr_recover, 5);
|
|
169
|
mypart1.pause = 1;
|
|
170
|
}
|
|
171
|
OBJ_WRITER.halt = 3;
|
|
172
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
173
|
with (iii)
|
|
174
|
halt = 0;
|
|
175
|
}
|
|
176
|
if (whatiheard == 4)
|
|
177
|
{
|
|
178
|
eat = 1;
|
|
179
|
global.msc = 0;
|
|
180
|
global.msg[0] = * Parsnik mishears you and fires a series of tasty snakes.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_parsnik_512") ;
|
|
181
|
OBJ_WRITER.halt = 3;
|
|
182
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
183
|
with (iii)
|
|
184
|
halt = 0;
|
|
185
|
}
|
|
186
|
global.heard = 1;
|
|
187
|
}
|
|
188
|
}
|
|
189
|
}
|
|
190
|
if (global.myfight == 4)
|
|
191
|
{
|
|
192
|
if (global.mercyuse == 0)
|
|
193
|
{
|
|
194
|
script_execute(scr_mercystandard);
|
|
195
|
if (mercy < 0)
|
|
196
|
instance_destroy();
|
|
197
|
}
|
|
198
|
}
|
|
199
|
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0)
|
|
200
|
{
|
|
201
|
script_execute(scr_mercystandard);
|
|
202
|
if (mercy < 0)
|
|
203
|
instance_destroy();
|
|
204
|
}
|