I'm on the German Galaxy-Editor, I hope the translation is correct.
When defining a new Action and give it a parameter, you can mark a Checkbox called
"Allow multiple" (or alike). But when I use such an action and give it multiple arguments,
I get an error "Wrong number of arguments" when the compiled code calls the Action.
[Please see the attachment]
Is this just an error in the GUI of the Trigger Editor or is there really such a feature?
Seems like it's a bug actually, because everything should be fine, I tried it myself.
Dumb Solution: create a new separate parameter for each integer variable :s
Hello,
I'm on the German Galaxy-Editor, I hope the translation is correct.
When defining a new Action and give it a parameter, you can mark a Checkbox called "Allow multiple" (or alike). But when I use such an action and give it multiple arguments, I get an error "Wrong number of arguments" when the compiled code calls the Action.
[Please see the attachment]
Is this just an error in the GUI of the Trigger Editor or is there really such a feature?
Thank you, -Niklas
Is the "Allow Multiple" needed?
Can't you just add more than 1 parameter without that checkbox being checked? o.o
@Ousnius: I'd like to have a variable number of arguments passed to the action. I guess that's what it should be used for.
Thanks,
@nux95: Go
Seems like it's a bug actually, because everything should be fine, I tried it myself.
Dumb Solution: create a new separate parameter for each integer variable :s
It does not work or No one really know how to work with it.
To use it fully you would need function something like 'get parameters array' and 'get parameters amount'. Such function does not exist
Imo it's some kind of macro for operators option as its only used with string,text and math ops where operator is only 1 for all
if you really need to pass multiple arguments in 1 array you can use my List <T> and pass list name as parameter
good to know :P
Thank you very much Nerfpl. Could you please explain your last statement a little more?
Although I have advanced experience in C/C+ +, Java, JavaScript and Python, I don't have many knowledge about GalaxyScript.
Thanks,
-Niklas
check this link. it's 100% GUI