- Joined
- Mar 26, 2009
- Messages
- 301
I am trying to make a skill nearly same as the one in dota. (Toss of Tiny)
Toss part works but i also need to make an unit-check trigger. What does this unit-check thing do? At the "unit casts an ability" state, it counts the units in 200 range around caster and puts the calculated number into variable X; so my other trigger checks; if X=0 then orders caster to stop for preventing unnecessary mana loss and cd time. But it doesn't act like that. Actually it does nothing =) So:
1-) How do i stop casting if no unit is available around caster?
2-) How do i send UI message "No unit found to toss etc etc.."
By UI message i mean the ones "Must target an enemy unit" "Not Eneough Gold" kind of things..
Toss part works but i also need to make an unit-check trigger. What does this unit-check thing do? At the "unit casts an ability" state, it counts the units in 200 range around caster and puts the calculated number into variable X; so my other trigger checks; if X=0 then orders caster to stop for preventing unnecessary mana loss and cd time. But it doesn't act like that. Actually it does nothing =) So:
1-) How do i stop casting if no unit is available around caster?
2-) How do i send UI message "No unit found to toss etc etc.."
By UI message i mean the ones "Must target an enemy unit" "Not Eneough Gold" kind of things..