After being "guided" to the decision of making an action definition for my map instead of 24 glorious (and working!) trigger actions, I find myself here:
The other portion of this trigger works as planned. So what this part is doing, is determining what # i am sending to my action definition as a parameter.
Basically, this part of the trigger is firing, and it seems to be ignoring the conditions in the if/then/else and spawning a crap ton of units attack-moving to the wrong place.
If it is an actual trigger. Are you telling it to run from another trigger? If so are you telling it to run it checking conditions or no?
Generally when using a for loop...
General - For each integer Counter[3] from 0 to 23 with increment 1, do (Actions)
why are you using an array for your counter variable. You should use a temp integer such as "i" and use that.
Are you using Events? I dont see any. But your refering to triggering player... that would be a problem if your not using an event that is created by a player
Why are you using an "and" statement that only has 1 condition ... additionally ... if statements with multiple conditions naturally are run as an "and" operation.
and as far as i can tell that code there doesnt do anything but set a variable.
You were 'guided' because that's just crazy to copy/paste like that, but it seems like you're not grasping the concept of the arrays or functions correctly. Post the map or some complete code before we can help you out.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
After being "guided" to the decision of making an action definition for my map instead of 24 glorious (and working!) trigger actions, I find myself here:
The other portion of this trigger works as planned. So what this part is doing, is determining what # i am sending to my action definition as a parameter.
Basically, this part of the trigger is firing, and it seems to be ignoring the conditions in the if/then/else and spawning a crap ton of units attack-moving to the wrong place.
I'm stumped at the moment.
well, it might not be the problem, but you don't need the "And" in there.
look at the comparisons here
and are you using a "number of living units" and comparing it to "false"?
Well how about you post the full trigger.
If it is an actual trigger. Are you telling it to run from another trigger? If so are you telling it to run it checking conditions or no?
Generally when using a for loop...
why are you using an array for your counter variable. You should use a temp integer such as "i" and use that.
Are you using Events? I dont see any. But your refering to triggering player... that would be a problem if your not using an event that is created by a player
Why are you using an "and" statement that only has 1 condition ... additionally ... if statements with multiple conditions naturally are run as an "and" operation.
and as far as i can tell that code there doesnt do anything but set a variable.
@currydevil: Go
You were 'guided' because that's just crazy to copy/paste like that, but it seems like you're not grasping the concept of the arrays or functions correctly. Post the map or some complete code before we can help you out.