|
1
|
if (sprite_index == spr_movedogeheada)
|
|
2
|
exit;
|
|
3
|
if (specialx == 1)
|
|
4
|
{
|
|
5
|
alarm[2] = 2; gml_Object_obj_movedogehead_Alarm_2.gml
if (sprite_index == spr_movedogeheada)
exit;
if (specialx == 1)
{
alarm[2] = 2;
if (global.mnfight == 2)
{
alarm[2] = round(random(10)) + 8;
}
else
{
if (instance_exists(blcon))
{
with (blcon)
instance_destroy();
}
if (instance_exists(blconwd))
{
with (blconwd)
instance_destroy();
}
exit;
specialx = 0;
alarm[2] = -1;
}
gg = floor(random(3));
if (instance_exists(blcon))
{
with (blcon)
instance_destroy();
}
if (instance_exists(blconwd))
{
with (blconwd)
instance_destroy();
}
if (gg == 0)
{
xx = x - random(sprite_width / 2) - 40;
yy = y + random(sprite_height / 3);
}
if (gg == 1)
{
xx = x + random(sprite_width / 3) + 100;
yy = y + random(sprite_height / 3);
}
if (gg == 2)
{
xx = (x + random(sprite_width)) - (sprite_width / 2);
yy = y - 18;
}
blcon = instance_create(xx, yy, obj_blconsm);
blcon.depth = 14;
blcon.sprite_index = spr_blcontiny;
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
blconwd.depth = 13;
}
|
|
6
|
if (global.mnfight == 2)
|
|
7
|
{
|
|
8
|
alarm[2] = round(random(10)) + 8; gml_Object_obj_movedogehead_Alarm_2.gml
if (sprite_index == spr_movedogeheada)
exit;
if (specialx == 1)
{
alarm[2] = 2;
if (global.mnfight == 2)
{
alarm[2] = round(random(10)) + 8;
}
else
{
if (instance_exists(blcon))
{
with (blcon)
instance_destroy();
}
if (instance_exists(blconwd))
{
with (blconwd)
instance_destroy();
}
exit;
specialx = 0;
alarm[2] = -1;
}
gg = floor(random(3));
if (instance_exists(blcon))
{
with (blcon)
instance_destroy();
}
if (instance_exists(blconwd))
{
with (blconwd)
instance_destroy();
}
if (gg == 0)
{
xx = x - random(sprite_width / 2) - 40;
yy = y + random(sprite_height / 3);
}
if (gg == 1)
{
xx = x + random(sprite_width / 3) + 100;
yy = y + random(sprite_height / 3);
}
if (gg == 2)
{
xx = (x + random(sprite_width)) - (sprite_width / 2);
yy = y - 18;
}
blcon = instance_create(xx, yy, obj_blconsm);
blcon.depth = 14;
blcon.sprite_index = spr_blcontiny;
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
blconwd.depth = 13;
}
|
|
9
|
}
|
|
10
|
else
|
|
11
|
{
|
|
12
|
if (instance_exists(blcon))
|
|
13
|
{
|
|
14
|
with (blcon)
|
|
15
|
instance_destroy();
|
|
16
|
}
|
|
17
|
if (instance_exists(blconwd))
|
|
18
|
{
|
|
19
|
with (blconwd)
|
|
20
|
instance_destroy();
|
|
21
|
}
|
|
22
|
exit;
|
|
23
|
specialx = 0;
|
|
24
|
alarm[2] = -1; gml_Object_obj_movedogehead_Alarm_2.gml
if (sprite_index == spr_movedogeheada)
exit;
if (specialx == 1)
{
alarm[2] = 2;
if (global.mnfight == 2)
{
alarm[2] = round(random(10)) + 8;
}
else
{
if (instance_exists(blcon))
{
with (blcon)
instance_destroy();
}
if (instance_exists(blconwd))
{
with (blconwd)
instance_destroy();
}
exit;
specialx = 0;
alarm[2] = -1;
}
gg = floor(random(3));
if (instance_exists(blcon))
{
with (blcon)
instance_destroy();
}
if (instance_exists(blconwd))
{
with (blconwd)
instance_destroy();
}
if (gg == 0)
{
xx = x - random(sprite_width / 2) - 40;
yy = y + random(sprite_height / 3);
}
if (gg == 1)
{
xx = x + random(sprite_width / 3) + 100;
yy = y + random(sprite_height / 3);
}
if (gg == 2)
{
xx = (x + random(sprite_width)) - (sprite_width / 2);
yy = y - 18;
}
blcon = instance_create(xx, yy, obj_blconsm);
blcon.depth = 14;
blcon.sprite_index = spr_blcontiny;
if (gg == 0)
global.msg[0] = ;
if (gg == 1)
global.msg[0] = ;
if (gg == 2)
global.msg[0] = ;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
blconwd.depth = 13;
}
|
|
25
|
}
|
|
26
|
gg = floor(random(3));
|
|
27
|
if (instance_exists(blcon))
|
|
28
|
{
|
|
29
|
with (blcon)
|
|
30
|
instance_destroy();
|
|
31
|
}
|
|
32
|
if (instance_exists(blconwd))
|
|
33
|
{
|
|
34
|
with (blconwd)
|
|
35
|
instance_destroy();
|
|
36
|
}
|
|
37
|
if (gg == 0)
|
|
38
|
{
|
|
39
|
xx = x - random(sprite_width / 2) - 40;
|
|
40
|
yy = y + random(sprite_height / 3);
|
|
41
|
}
|
|
42
|
if (gg == 1)
|
|
43
|
{
|
|
44
|
xx = x + random(sprite_width / 3) + 100;
|
|
45
|
yy = y + random(sprite_height / 3);
|
|
46
|
}
|
|
47
|
if (gg == 2)
|
|
48
|
{
|
|
49
|
xx = (x + random(sprite_width)) - (sprite_width / 2);
|
|
50
|
yy = y - 18;
|
|
51
|
}
|
|
52
|
blcon = instance_create(xx, yy, obj_blconsm);
|
|
53
|
blcon.depth = 14;
|
|
54
|
blcon.sprite_index = spr_blcontiny;
|
|
55
|
if (gg == 0)
|
|
56
|
global.msg[0] = PET?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_movedogehead_185") ;
|
|
57
|
if (gg == 1)
|
|
58
|
global.msg[0] = PAT?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_movedogehead_186") ;
|
|
59
|
if (gg == 2)
|
|
60
|
global.msg[0] = POT?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_movedogehead_187") ;
|
|
61
|
global.msg[1] = Close MessageClose 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_movedogehead_188") ;
|
|
62
|
global.typer = 2;
|
|
63
|
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
|
|
64
|
blconwd.depth = 13;
|
|
65
|
}
|