E
Edwin
Guest
Hello, guys.
I made a script that has multiple arguments, it looks like this:
Basically this script just returns the highest value (i guess, if it works)
How to draw text using this script? I tried this in Create event:
This above code asks user the count of values and then asks what do they equal to.
How can I draw the text then? I can't input the arguments of script as the equivalent[...] array.
I made a script that has multiple arguments, it looks like this:
Code:
/// val_highest(value1, value2, value3, ...)
for (var i = 0; i < argument_count; i ++) {
for (var j = 0; j < argument_count; j ++) {
if (argument[i] > argument[j]) {
return argument[i];
} else {
break;
}
}
}
How to draw text using this script? I tried this in Create event:
Code:
var count, equivalent;
count = get_integer("Please input the values count", 2);
for (var i = 0; i < count; i ++) {
equivalent[i] = get_integer("Please input the equivalent for value "+string(i+1), 1);
}
How can I draw the text then? I can't input the arguments of script as the equivalent[...] array.