|
1
|
function scr_heromarkerscr_heromarker
function scr_heromarker(arg0 = "", arg1 = "")
{
var ____foundmarker = -4;
var xpos = -1;
var ypos = -1;
var objindextocheck = 1365;
if (string_pos("kr", arg0) != 0)
objindextocheck = 544;
if (string_pos("su", arg0) != 0)
objindextocheck = 522;
if (string_pos("ra", arg0) != 0)
objindextocheck = 75;
if (string_pos("no", arg0) != 0)
objindextocheck = 933;
if (string_pos("gen", arg0) != 0)
objindextocheck = 1365;
with (objindextocheck)
{
if (variable_instance_exists(id, "extflag"))
{
if (extflag == arg1)
____foundmarker = id;
}
}
if (instance_exists(____foundmarker))
{
xpos = ____foundmarker.x;
ypos = ____foundmarker.y;
}
if (____foundmarker == -4)
{
debug_message("scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4];
}
return [xpos, ypos, ____foundmarker];
}
function scr_genmarker(arg0 = "")
{
var marker = -4;
with (obj_genmarker)
{
if (extflag == arg0)
marker = id;
}
return marker;
} (arg0 = "", arg1 = "")
|
|
2
|
{
|
|
3
|
var ____foundmarker = -4;
|
|
4
|
var xpos = -1;
|
|
5
|
var ypos = -1;
|
|
6
|
var objindextocheck = 1365;
|
|
7
|
if (string_pos("kr", arg0) != 0)
|
|
8
|
objindextocheck = 544;
|
|
9
|
if (string_pos("su", arg0) != 0)
|
|
10
|
objindextocheck = 522;
|
|
11
|
if (string_pos("ra", arg0) != 0)
|
|
12
|
objindextocheck = 75;
|
|
13
|
if (string_pos("no", arg0) != 0)
|
|
14
|
objindextocheck = 933;
|
|
15
|
if (string_pos("gen", arg0) != 0)
|
|
16
|
objindextocheck = 1365;
|
|
17
|
with (objindextocheck)
|
|
18
|
{
|
|
19
|
if (variable_instance_exists(id, "extflag"))
|
|
20
|
{
|
|
21
|
if (extflag == arg1)
|
|
22
|
____foundmarker = id;
|
|
23
|
}
|
|
24
|
}
|
|
25
|
if (instance_exists(____foundmarker))
|
|
26
|
{
|
|
27
|
xpos = ____foundmarker.x;
|
|
28
|
ypos = ____foundmarker.y;
|
|
29
|
}
|
|
30
|
if (____foundmarker == -4)
|
|
31
|
{
|
|
32
|
debug_message("scr_heromarkerscr_heromarker
function scr_heromarker(arg0 = "", arg1 = "")
{
var ____foundmarker = -4;
var xpos = -1;
var ypos = -1;
var objindextocheck = 1365;
if (string_pos("kr", arg0) != 0)
objindextocheck = 544;
if (string_pos("su", arg0) != 0)
objindextocheck = 522;
if (string_pos("ra", arg0) != 0)
objindextocheck = 75;
if (string_pos("no", arg0) != 0)
objindextocheck = 933;
if (string_pos("gen", arg0) != 0)
objindextocheck = 1365;
with (objindextocheck)
{
if (variable_instance_exists(id, "extflag"))
{
if (extflag == arg1)
____foundmarker = id;
}
}
if (instance_exists(____foundmarker))
{
xpos = ____foundmarker.x;
ypos = ____foundmarker.y;
}
if (____foundmarker == -4)
{
debug_message("scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4];
}
return [xpos, ypos, ____foundmarker];
}
function scr_genmarker(arg0 = "")
{
var marker = -4;
with (obj_genmarker)
{
if (extflag == arg0)
marker = id;
}
return marker;
} (" + arg0 + "," + arg1 + ") Object Not Found");
|
|
33
|
return [-4, -4, -4];
|
|
34
|
}
|
|
35
|
return [xpos, ypos, ____foundmarker];
|
|
36
|
}
|
|
37
|
|
|
38
|
function scr_genmarker(arg0 = "")
|
|
39
|
{
|
|
40
|
var marker = -4;
|
|
41
|
with (obj_genmarker)
|
|
42
|
{
|
|
43
|
if (extflag == arg0)
|
|
44
|
marker = id;
|
|
45
|
}
|
|
46
|
return marker;
|
|
47
|
}
|