I haven't tried anything yet...currently messing with other triggers...but I have text pop above a unit each time it takes damage...however, when the unit dies, the text decides to not pop up.
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. :)
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.
...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?
Anyone have an idea how to do this? I have all the dialog boxes set up and I get the units stored up into a unit group. I call their names and the names never show. ;/
So I am trying to Put some text in some Dialog Buttons. The buttons appear, but the text refuses to appear. I will post some code to see if you all notice anything. All help is appreciated. :)
Here are the enemies. Their names are supposed to store in an array.
Thanks ..uhh.. boron. :) I have the units stored now by whatever means and the dialogs are popping up...now I am just trying to get the unit names to appear in the boxes. I'll keep working with it.
One more question. I am now trying to call those units stored. Trying to call their names. I am going to mess with it but if you have any tips on a good way to do that... let me know.
I am looking for something along these lines and I'm having no luck. I need to keep track of the units inside of a region and I want a counter to take place. It will check if the number of units in the region is > zero, then it will count the units and store it into an array. Any help on this?
So lets say I have some random units scattered around a map. When the player gets close to one of these units, he/she has a choice to attack or not. A dialog box pops up and the "Attack" option is there. I have that all set up. Say he/she encounters 2 hydralisks. Once "Attack" is clicked, I have another box pop up, which is all set up (just the box). I would like these hydralisks to appear in this box in order to be clicked on by the attacker so he/she can decide which one he/she would want to attack. I hope that makes sense. If not, let me know.
Does anyone know how I would put these hydralisks into this dialog box?
EDIT: And I don't mean the actual hydralisks or a picture or anything. Just their names.
EDIT #2: I'm still messing with it. I am trying different variable methods right now...trying to convert a unit to a string and such. Not too much luck but I'm bound to figure this thing out sooner or later. :P
0
@A1win: Go
I haven't tried anything yet...currently messing with other triggers...but I have text pop above a unit each time it takes damage...however, when the unit dies, the text decides to not pop up.
0
@s3rius: Go
Grazie Sir. Much appreciated. :)
0
Topic.
0
Anyone have a basic set up for one of these?
0
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. :)
0
@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.
0
...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?
0
Anyone have an idea how to do this? I have all the dialog boxes set up and I get the units stored up into a unit group. I call their names and the names never show. ;/
0
Forgive me for a double post. I am still working with this issue. Any help is appreciated. :)
0
So I am trying to Put some text in some Dialog Buttons. The buttons appear, but the text refuses to appear. I will post some code to see if you all notice anything. All help is appreciated. :)
Here are the enemies. Their names are supposed to store in an array.
And here is where the box and text appears. Note that this trigger is called in a different trigger.
0
Thanks ..uhh.. boron. :) I have the units stored now by whatever means and the dialogs are popping up...now I am just trying to get the unit names to appear in the boxes. I'll keep working with it.
0
I think I got it. Many thanks yall.
One more question. I am now trying to call those units stored. Trying to call their names. I am going to mess with it but if you have any tips on a good way to do that... let me know.
0
@moronsonofboron: Go
Would the If Then Else Come after that action? Or would it be inside that action?
0
That is something like:
Number of (Triggering Unit) Operator Integer
I am looking for something along these lines and I'm having no luck. I need to keep track of the units inside of a region and I want a counter to take place. It will check if the number of units in the region is > zero, then it will count the units and store it into an array. Any help on this?
0
So lets say I have some random units scattered around a map. When the player gets close to one of these units, he/she has a choice to attack or not. A dialog box pops up and the "Attack" option is there. I have that all set up. Say he/she encounters 2 hydralisks. Once "Attack" is clicked, I have another box pop up, which is all set up (just the box). I would like these hydralisks to appear in this box in order to be clicked on by the attacker so he/she can decide which one he/she would want to attack. I hope that makes sense. If not, let me know.
Does anyone know how I would put these hydralisks into this dialog box?
EDIT: And I don't mean the actual hydralisks or a picture or anything. Just their names.
EDIT #2: I'm still messing with it. I am trying different variable methods right now...trying to convert a unit to a string and such. Not too much luck but I'm bound to figure this thing out sooner or later. :P