I see. So basically every time my trigger would go off, the local variable would be reset to its initial value, negating the change I had set under the actions.
Ok, I got it to work by making Lowhealth into a global variable instead of a local one. So the question now is, what is the difference between a local a global variable?
Hey guys. I am trying to make a trigger that displays a "Low Health!" message under my hero once he dips below 200 health. The issue is that the message displays repeatedly (any time he gets hit) under 200 health. I tried adding a variable to check if the message has already been displayed but it doesn't seem to be working. Here is what my trigger looks like.
-
Events:
-Player unit takes any non fatal damage
Local Variables:
-Lowhealth <Boolean>
Conditions:
-(Player Unit Life (Current)) <= 200
-Lowhealth = false
Actions:
-Variable - Set Lowhealth = true
-Display Text Tag "Low Health!"
Hey guys. I am having an issue trying to activate some abilities for my hero.
The problem is thus:
In the data editor, under the unit's Ability tab, the Ability field at the bottom (between "Requirements" and "Ability Command") has very limited options, most of them beginning with "Selection". Specifically, I am trying to add Tychus' grenade toss ability, and I can easily add it up top and in the command card, but I cannot manage to find it in this field. I am sure it is something simple, so what am I missing?
I am trying to figure out where to go to make it so that a unit that has aggro on you will pursue you indefinitely, instead of giving up the chase and returning to their original position after a short distance. If this is not possible, I need to at least make it so that when the units return to their original position, they regain all of their life. Any suggestions?
I am after an effect when when you take damage the edges of the screen will flash red. Is anybody aware of an effect like this that can be implemented?
Hey guys! I'm trying to make it so that when my hero loses his shields and gets hit with an attack, the screen shakes, but when his shields are active the screen does not shake. I'm sure this is fairly simple but I am having trouble finding the right fields. Also, is there an action that will cause the borders of the screen to flash red? Thanks in advance!
Oh well, thanks for checking it out tho! I am assuming this would be a must for diablo type games, so hopefully blizz will deliver some way to disable it in a future patch.
0
@ProxyTooMuch: Go
I see. So basically every time my trigger would go off, the local variable would be reset to its initial value, negating the change I had set under the actions.
0
@voodude2008: Go
Ok, I got it to work by making Lowhealth into a global variable instead of a local one. So the question now is, what is the difference between a local a global variable?
0
Hey guys. I am trying to make a trigger that displays a "Low Health!" message under my hero once he dips below 200 health. The issue is that the message displays repeatedly (any time he gets hit) under 200 health. I tried adding a variable to check if the message has already been displayed but it doesn't seem to be working. Here is what my trigger looks like.
-Events: -Player unit takes any non fatal damage
Local Variables: -Lowhealth <Boolean>
Conditions: -(Player Unit Life (Current)) <= 200 -Lowhealth = false
Actions: -Variable - Set Lowhealth = true -Display Text Tag "Low Health!"
-Any suggestions?
0
@RileyStarcraft: Go
Thanks guys!
0
Hey guys. I am having an issue trying to activate some abilities for my hero.
The problem is thus:
In the data editor, under the unit's Ability tab, the Ability field at the bottom (between "Requirements" and "Ability Command") has very limited options, most of them beginning with "Selection". Specifically, I am trying to add Tychus' grenade toss ability, and I can easily add it up top and in the command card, but I cannot manage to find it in this field. I am sure it is something simple, so what am I missing?
0
@voodude2008: Go
Bump, cuz I know somebody knows.
0
I am trying to figure out where to go to make it so that a unit that has aggro on you will pursue you indefinitely, instead of giving up the chase and returning to their original position after a short distance. If this is not possible, I need to at least make it so that when the units return to their original position, they regain all of their life. Any suggestions?
0
I am after an effect when when you take damage the edges of the screen will flash red. Is anybody aware of an effect like this that can be implemented?
0
Hey guys! I'm trying to make it so that when my hero loses his shields and gets hit with an attack, the screen shakes, but when his shields are active the screen does not shake. I'm sure this is fairly simple but I am having trouble finding the right fields. Also, is there an action that will cause the borders of the screen to flash red? Thanks in advance!
0
@Kanaru: Go
You are awesome sir. I'm going to try this right now. Thanks a lot for doing the research :D
Edit: Works like a charm!
0
@Kanaru: Go
Oh well, thanks for checking it out tho! I am assuming this would be a must for diablo type games, so hopefully blizz will deliver some way to disable it in a future patch.
0
@Covet78: Go
Bump for great justice!