Well um. You guys probably already know that ExecuteFunc doesn't take any parameters aside from string.
I'll give you a rundown.
My trigger has an ExecuteFunc(string)
Now that string can change based upon the trigger. E.g, the string could be Function1 or Function2.
But what I want to do is transfer information, such as local integer i = 3 into the function as a paramenter.
So it would look like this.
call ExecuteFunc(string(i))
But obviously it doesn't work, because it only accepts oine paramenter, or something like that. (I don't truly know, that's my guess.)
Also, I cannot just go
call string(i)
Because that will literally look for a function called "string", instead of looking for what the string local actually equals. If you get what I mean. As far as I know, judging from what the jass compiler thingy is telling me.
And I don't know anything about handles.
Do you guys know a way to solve my above problem? Would be a huge help. If you can think of a simple solution, (i.e, doesn't involve handles or whatever) that would be fantastic!
Cheers.
I'll give you a rundown.
My trigger has an ExecuteFunc(string)
Now that string can change based upon the trigger. E.g, the string could be Function1 or Function2.
But what I want to do is transfer information, such as local integer i = 3 into the function as a paramenter.
So it would look like this.
call ExecuteFunc(string(i))
But obviously it doesn't work, because it only accepts oine paramenter, or something like that. (I don't truly know, that's my guess.)
Also, I cannot just go
call string(i)
Because that will literally look for a function called "string", instead of looking for what the string local actually equals. If you get what I mean. As far as I know, judging from what the jass compiler thingy is telling me.
And I don't know anything about handles.
Do you guys know a way to solve my above problem? Would be a huge help. If you can think of a simple solution, (i.e, doesn't involve handles or whatever) that would be fantastic!
Cheers.