- Joined
- Oct 8, 2008
- Messages
- 28
I'm pretty newb to triggers. And I'd like to make a random event happen while using a skill.
So far I've got it saying if a unit begins casting an ability
and the ability = Skill: Fishing
but I need an action that gives it a small chance to create a hostile unit at the casters location.
My guess it to make a variable and make a random number on that variable from 1 to 100 every time you cast the ability. If the random number equals 1-5 then the unit is created. But I have no clue whatsoever on how to do that.
So far I've got it saying if a unit begins casting an ability
and the ability = Skill: Fishing
but I need an action that gives it a small chance to create a hostile unit at the casters location.
My guess it to make a variable and make a random number on that variable from 1 to 100 every time you cast the ability. If the random number equals 1-5 then the unit is created. But I have no clue whatsoever on how to do that.