• 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] Steal atributtes from enemy's?

Status
Not open for further replies.
Level 15
Joined
Jun 14, 2009
Messages
494
hi all i have two questions about triggers how i do a spell that steals 4 points of intelligence of the Enemy and give it to my hero for 10 seconds ?
and the other is is possible to make a triggers to miss Spells with passive like evasion if it is possible how i do that? thanks to all
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,287
Well the atribute steal is easy.

Lower the intelligence of the target by 4 ( set to current intelligence - 4).
Raise the intelligence of the caster by 4 (current intelligence + 4).
Wait 10 seconds (I advise the use of a timer over that of trigger sleep action for better accuracy in waiting).
Do the inverse restoring the target's into to its orignal ammount via adding 4.
Do the inverse for the caster restoring it to the orignal ammount via removing 4.

What ever you do, do not store the orignal ammount, only the change. This is to prevent atribute loss bugs caused by heroes gaining levels or tomes while under the effect of the spell.

For the spell evasion, you will need to rig a system which involves detecting a spell and then using the spell shield ability to block it.
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
  • Attribute Steal
    • Events
      • -------- Add the events you want --------
    • Conditions
      • -------- Add the conditions you want --------
    • Actions
      • Hero - Modify Intelligence of Target: Subtract 4
      • Hero - Modify Intelligence of Caster: Add 4
      • Countdown Timer - Start Duration as a One-shot timer that will expire in 10.00 seconds
  • Times Up
    • Events
      • Time - Duration expires
    • Conditions
    • Actions
      • Hero - Modify Intelligence of Target: Add 4
      • Hero - Modify Intelligence of Caster: Subtract 4
Variables: Target, Caster are Unit variables and Duration is a Timer.
 
Last edited:
Status
Not open for further replies.
Top