• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] trying to figure this out (activate an ability...)

Status
Not open for further replies.
Level 1
Joined
May 26, 2005
Messages
2
try to make it so there is a 1 in 10 chance when ever this unit takes damage that it will activate an ability. can't seem to find anything that will let me activate an ability like this though. any help is appreciated :p


Pwolf
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
This is spell question... Next time post into the spells section. And for that, you need to check if random number between 1 and 10 equal to 1, this being the condition of the trigger along with the one which checks if (Level of (Ability)) for casting unit greater than 0. Other questions?

~Daelin
 
Level 1
Joined
May 26, 2005
Messages
2
sorry for posting in the wrong area. i wasn't sure where this would go. i actualy figured it out already. i was basically looking for this:

Code:
call IssueImmediateOrderBJ( GetTriggerUnit(), "metamorphosis" )



Pwolf
 
Status
Not open for further replies.
Top