• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

2 passive spells

Status
Not open for further replies.

Brunis

B

Brunis

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
 
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.
Back
Top