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

Deny system??

Status
Not open for further replies.
Level 18
Joined
May 11, 2012
Messages
2,103
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.
 
Level 18
Joined
May 11, 2012
Messages
2,103
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
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
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.
Top