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

Dont Agression Execpcion

Status
Not open for further replies.
Level 3
Joined
May 30, 2012
Messages
29
I create this trigger.

  • Not Agression Ally
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Owner of (Triggering unit)) Not equal to Neutral Passive
      • ((Triggering unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True
      • (Percentage life of (Triggering unit)) Greater than 30.00
    • Actions
      • Unit - Order (Attacking unit) to Stop
The problem is: if DreadLord use "Sleep" on heros. Players cant weak up heros with a hit.

How can i make a exeption for this?

if hero is sleeping you can hit him. Same with units of player.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
(Percentage life of (Triggering unit)) Greater than 30.00
So if a unit has more than 30% life he cannot be attacked but less than 30% life he can? It seems sort of illogical as trolls would love to kill you when you are below 30% life and weak. Or are you trying to allow players to kill deny (kill an allied unit to deny the enemy the kill reward)?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
I think I know what he means.. when we attack a slept unit the unit will wake up suddenly even before the damage event.. he is trying to make exception of that.. so that the unit will stay slept and the attacker ordered to stop..
Really? I thought he was trying to make it so that you could still wake up units by attaching them even when they are above 30% life (which his trigger does not allow). Also I was convinced that sleeping units woke up in response to damage, not the act of being attacked. If the wakeup occurs before or after the unit takes damage event fires I do not know, but I have a feeling units are woken up after the event since the event fires before the actual damage is dealt to the unit (where all the pain with damage absorption systems comes about).
 

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
Also I was convinced that sleeping units woke up in response to damage, not the act of being attacked.
I don't know, haven't tested it.. just my feeling :mwahaha:

actually I remember (not pretty clear) once I played a blizzard melee map, and the neutrals woke up when attacked, not when takes damage..

GOD OF HELL! 16,377 posts and 2903 rep? you are surely the elder here :mwahaha:
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
In SWAT Aftermath if you were put to sleep by the Horror boss you were only woken up after something hits you, be it an ability, a missile based attack or an instant attack. It would make no sense if only the act of being attacked woke you up as that would mean that being nuked by multiple abilities would still leave you asleep.

Obviously you could make the act of attacking wake you up using a trigger to remove the sleep buff. However this is then imposing non-standard gameplay mechanics (like how some maps use armor to represent flat % damage reduction and not a HP modifier).
 
Status
Not open for further replies.
Top