• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Deny system??

Status
Not open for further replies.
This should do it

  • Deny
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) belongs to an ally of (Owner of (Attacked unit))) Equal to True
    • Actions
      • Set TempUnit = (Attacked unit)
      • Set TempTrigUnit = (Attacking unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of TempUnit) Less than or equal to 50.00
        • Then - Actions
          • Unit - Kill TempUnit
          • Floating Text - Create floating text that reads ! above TempUnit with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
          • Floating Text - Show (Last created floating text) for (All players)
          • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
          • Floating Text - Change (Last created floating text): Disable permanence
          • Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
          • Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds
        • Else - Actions
          • Unit - Order TempTrigUnit to Stop
 
How do you want it?

Edit: Never mind, someone is really fast it seems. Though one issue, you should use percentage maybe? Unless it is going to be exactly like an AoS normally is.
Also why not just kill the unit instead of dealing a billion damage?

You should also put the condition in the main condition check to let it know that its an ally in the top so it doesn't run for enemies because as it is it will stop the attacker on both allies and enemies.
 
How do you want it?

Edit: Never mind, someone is really fast it seems. Though one issue, you should use percentage maybe? Unless it is going to be exactly like an AoS normally is.
Also why not just kill the unit instead of dealing a billion damage?

You should also put the condition in the main condition check to let it know that its an ally in the top so it doesn't run for enemies because as it is it will stop the attacker on both allies and enemies.

Percentage is not good I think because of units with high amount of health, so it's better with real amount :)
Yeah, I did this on quicky :D
I will redo it with your suggestions and it's better to use DDS, this way looks abit weird
 
If you want to do it as Dota has done it then:

A unit is attacked

Is it an ally?
Then
Is it less than or equal to 50% ?
Yes ?
-- nothing
No?
Pause attacking unit
Order stop
Unpause

For the "!"

A unit dies

Was killing unit an ally?
Yes?
Create floating text with disabled perm etc.
No?
-- nothing/ anything you want
 
Status
Not open for further replies.
Back
Top