You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2R-The-Horde-Multitroid/Export_Code/gml_Script_create_log_trigg...

46 lines
934 B

var inst, arrayHasValue, i, iLen;
if (argument[0] == 0)
{
if (global.log[argument[1]] == 0)
{
inst = instance_create(argument[2], argument[3], oLogTrigger)
with (inst)
{
yoffset = argument[4]
lognum = argument[1]
event_user(0)
visible = argument[5]
}
}
}
else
{
arrayHasValue = 0
i = 0
iLen = array_length_1d(global.trooperlog)
while (i < iLen)
{
if (global.trooperlog[i] == argument[1])
{
arrayHasValue = 1
break
}
else
{
i++
continue
}
}
if (!arrayHasValue)
{
inst = instance_create(argument[2], argument[3], oLogTrigger)
with (inst)
{
yoffset = argument[4]
trooperlognum = argument[1]
event_user(0)
visible = argument[5]
}
}
}