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

[Trigger] Evade Spell Secondary Effect

Status
Not open for further replies.
Level 6
Joined
Jan 2, 2015
Messages
171
Hi, i would like to ask if it is possible to evade spell damage without getting secondary effect out of it. I used damage system which worked perfectly. I made test a unit with Buff 100% Evade all attacks including spells. All worked well except unit still get the stun effect from spell which needs to be removed if possible. Any ideas everyone?


  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • DamageEventType Equal to 0
      • (DamageEventTarget has buff Evasion ) Equal to True
    • Then - Actions
      • Set DMGS_Evasion = 100.00
    • Else - Actions
 
Level 11
Joined
Jun 2, 2004
Messages
849
The most thorough way to do this is to code all the secondary effects yourself. Stuns can be accomplished with dummies who have 100% bash, for example.

The less thorough way to accomplish this is to remove the buffs after a very short timer (0.01 seconds or so; waits have a minimum time of ~0.25 seconds so a timer is better). Removing the stun buff will remove the stun.
 
The most thorough way to do this is to code all the secondary effects yourself. Stuns can be accomplished with dummies who have 100% bash, for example.

The less thorough way to accomplish this is to remove the buffs after a very short timer (0.01 seconds or so; waits have a minimum time of ~0.25 seconds so a timer is better). Removing the stun buff will remove the stun.
Yeah but even the 0.01 second stun will break a channeling spell. He should trigger it or use something like Spell System to simplify the process of triggering it.
 
Level 13
Joined
Oct 12, 2016
Messages
769
Why not use spell immunity?
I mean, it's possible to make spell immunity and 100% evasion on a unit with just object data, even for a temporary amount of time with morph spells.

Hell, it's even possible with a hidden spell book and Magic Defense if you want to just toggle it on and off.
 
Status
Not open for further replies.
Top