- Joined
- Feb 6, 2009
- Messages
- 50
Is there an easier way to cause a unit to replace another unit when at a certain percent of health?
instead of
a unit is attacked
if attacked unit = unit type x
if attacked unit health = to y%
than replace unit x with unit z using new units max.
else do nothing
I am going to have at least 3 unit x's on my map, they will be replaced 3 times
There will be another unit type using the same trigger set up, and it will be replaced 4 times.
is there a better way to do this? I imagine using this form will cause problems (especially with it constantly checking to see if trigger becomes true ever due to many other attacks going on)
If you know a Jass trick that works better please fill free to tell, I just started learning the Jass system yesterday (which it reminds me a little of C++...I think thats the one I used to use XD lol, I have used three of four of them , and its been a hell of a long time since I have used any of them)
instead of
a unit is attacked
if attacked unit = unit type x
if attacked unit health = to y%
than replace unit x with unit z using new units max.
else do nothing
I am going to have at least 3 unit x's on my map, they will be replaced 3 times
There will be another unit type using the same trigger set up, and it will be replaced 4 times.
is there a better way to do this? I imagine using this form will cause problems (especially with it constantly checking to see if trigger becomes true ever due to many other attacks going on)
If you know a Jass trick that works better please fill free to tell, I just started learning the Jass system yesterday (which it reminds me a little of C++...I think thats the one I used to use XD lol, I have used three of four of them , and its been a hell of a long time since I have used any of them)