- Joined
- Jul 28, 2013
- Messages
- 768
Hello guys, i want a GUI leak-free trigger that when a unit attacks he has a certain percentage chance that can create a dummy which will cast a spell on the attacked unit.
I'm noob at triggering but if this helps:
A unit attacks a unit
random number between 0 and 1
if (0<number<0.25) do
Create dummy at position of attacker and make it cast a certain spell on the attacked unit
Remove position leak
This is what i need, if possible, no damage detector no hard stuff, this simple trigger which i can change its variable and values like chance percentage and the spell casted by the dummy.
Please, if you can create this trigger, create it and post it here, this is more like a request ( don't tell me do that or land on the moon
).
Thanks.
I'm noob at triggering but if this helps:
A unit attacks a unit
random number between 0 and 1
if (0<number<0.25) do
Create dummy at position of attacker and make it cast a certain spell on the attacked unit
Remove position leak
This is what i need, if possible, no damage detector no hard stuff, this simple trigger which i can change its variable and values like chance percentage and the spell casted by the dummy.
Please, if you can create this trigger, create it and post it here, this is more like a request ( don't tell me do that or land on the moon
Thanks.