• 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.

2 passive spells

Status
Not open for further replies.
Level 1
Joined
Mar 2, 2007
Messages
2
All greetings
To Whom it is not difficult, help me with passive spells pleas
1]The Priest has 20-25-30 [percents] chance when attacked that he will be invuririble for 3 seconds
2]Hero has a passive skill....when hero and allied units attacking enemies they have 15-21-27 [percents] chance that they will be healed for 30-50-70hp.
If it is not difficult, write please at once a code [GUI]
-Big thx
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
1. Make a trigger trigger when a unit is attacked.
The condition of the trigger is, if the attacked unit is of type "insert priest".
Then do a random int function and a comparision for your % and then if it hits that number, make unit invoundrable then wait 3 seconds then remove invoundrability.

That simple.

2. Sounds wierd and needs jass.
 
Status
Not open for further replies.
Top