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

evade skill

Status
Not open for further replies.
Level 3
Joined
May 19, 2008
Messages
32
hi can someoen plz give me a hint on how to make a unit evade an atack

i know how to catch the attack event, but dont know how to edit the event e.g. nullify the damage


quickly adding a passive evade skill is not an option unless you know how to add the skill without making it show up when the hero already got 5 skilles, no spellbook ect

also increasing the units hp by the amount of dmg that will be dealt has flaws

ty
 
Level 3
Joined
Jun 13, 2006
Messages
45
so the best solution is to make that evade skill not showing up on the user interface of the hero right?

This is not very tricky : put the evasion skill into a disabled spellbook. To disable a spellbook for a hero, trigger player - enable/disable ability (if i remember well). And you're set. The spellbook containing evasion is not showing up but the passive ability is effective.
To level the evasion ability in the spellbook, trigger unit - set level, along with a dummy spell representating it on the skill menu.

For the hp increase skill, use the item life steal ability and change the data fields.
 
Last edited:
Level 3
Joined
May 19, 2008
Messages
32
ill try that thanx

in general is there no way to catch a game event and then modify it?
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
It can only be done in JASS. The UNIT_DAMAGE event happens before your unit gets the damage. To increase a unit's HP you'll need to abuse a bug I don't feel like explaining, so google up Blade-dk's SetUnitMaxState System and use that.
There is no general UNIT_DAMAGE event, but you can generalize it to all units by making a dynamical trigger, if that was the question.
Adding evasion to a unit is not an option. Forget it.
 
Status
Not open for further replies.
Top