...or are they bugged? I am using an integer variable initialized to 0, and I have a trigger set up where the counter increases +1 after a sequence of events in a loop. I am using "Variable - Modify intCounter + 1." Is this the correct Action for an integer counter?
I am not sure what you are trying to do exactly, but is there a reason why you aren't using a for loop? It would eliminate the need of incrementing a loop counter yourself.
To answer your question: The modification is correct and the action is working correctly.
So if it doesn't work it probably is because of something else.
Once a certain dialog button is clicked...it is supposed to find a region with no more than 5 and no less than 1 total enemy units inside of it. It does that just fine. It moves those units to another area with a set of regions (which each unit is set into individually) and enters a unit group. Then those units in the unit group are supposed to store into an array in which their NAMES will show up on another dialog box when called...however, each time it only shows the very last enemy's name that is stored. If I take the intCounter away, it only shows the first.
The "topic title" edit button works but the "posts" edit button does not. This is why I am double posting. I know the problem. I can go into detail should someone desire to know.
I just wanted to say I figured it out with the following:
It turns out I don't even need a loop for this kind of trigger. If multiple units are in the location, it apparently initializes them each individually. I did not know this. Problem has been solved. :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
...or are they bugged? I am using an integer variable initialized to 0, and I have a trigger set up where the counter increases +1 after a sequence of events in a loop. I am using "Variable - Modify intCounter + 1." Is this the correct Action for an integer counter?
I am not sure what you are trying to do exactly, but is there a reason why you aren't using a for loop? It would eliminate the need of incrementing a loop counter yourself.
To answer your question: The modification is correct and the action is working correctly.
So if it doesn't work it probably is because of something else.
@SirLyrrad: Go
I tried a For loop and it didn't work for what I am doing. Here is some code:
Once a certain dialog button is clicked...it is supposed to find a region with no more than 5 and no less than 1 total enemy units inside of it. It does that just fine. It moves those units to another area with a set of regions (which each unit is set into individually) and enters a unit group. Then those units in the unit group are supposed to store into an array in which their NAMES will show up on another dialog box when called...however, each time it only shows the very last enemy's name that is stored. If I take the intCounter away, it only shows the first.
The "topic title" edit button works but the "posts" edit button does not. This is why I am double posting. I know the problem. I can go into detail should someone desire to know.
I just wanted to say I figured it out with the following:
It turns out I don't even need a loop for this kind of trigger. If multiple units are in the location, it apparently initializes them each individually. I did not know this. Problem has been solved. :)