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

Status
Not open for further replies.
Just issue a stop order when your unit attacks. Turn off the trigger after 5 seconds to make it timed.

EDIT: Or for MUI you can just make it so units with a specific buff can't attack and set the buff duration to 5 seconds.

  • Has Buff
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) has buff Your Buff) Equal to True
    • Actions
      • Unit - Order (Attacked unit) to Stop

EDIT 2:

Or add cargo hold to a unit and then remove it to enable attack.


Disable:
  • Custom script: call UnitAddAbility( udg_Unit, 'Abun' )
Enable:
  • Custom script: call UnitRemoveAbility( udg_Unit, 'Abun' )
 
Last edited:

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
2,010
Just issue a stop order when your unit attacks. Turn off the trigger after 5 seconds to make it timed.

EDIT: Or for MUI you can just make it so units with a specific buff can't attack and set the buff duration to 5 seconds.

  • Has Buff
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) has buff Your Buff) Equal to True
    • Actions
      • Unit - Order (Attacked unit) to Stop

EDIT 2:

Or add cargo hold to a unit and then remove it to enable attack.


Disable:
  • Custom script: call UnitAddAbility( udg_Unit, 'Abun' )
Enable:
  • Custom script: call UnitRemoveAbility( udg_Unit, 'Abun' )
The second option is indeed the best, but make an ability based on cargo hold with 0 max capacity, not on the original one, else people could just make units go inside the unit.
 

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
2,010
Then remove the condition? Put a wait? Place an action there? It's not that hard to try to figure it out yourself.
Is this supposed to be MUI? How is it supposed to work at all, the duration is higher than the cooldown?
There's so many seems to consider to make it decent.
 
Thing is there's no buff.
Is there a way to stop unit during 5 sec without condition? Just right after it is touched by the ability?

Give us more information then. Is this an ability that disables attacks? Explain in detail exactly what you need or you will get solutions that aren't fit for your intended use.
 
Thing is there's no buff.
Is there a way to stop unit during 5 sec without condition? Just right after it is touched by the ability?

You're obviously very new at this, are you sure you're not out of your depth with the map you're working on now? I don't mean to discourage you, but don't start something you can't finish. Start slow, work your way up.

You need to make the buff and have a dummy cast an ability that applies the buff.
 
Level 9
Joined
Feb 20, 2014
Messages
409
Give us more information then. Is this an ability that disables attacks? Explain in detail exactly what you need or you will get solutions that aren't fit for your intended use.

It's just a custom spell dealing damage based on agility.
So the event is "Unit- A unit begins the casting of an ability
I just need how to add an action to make the unit unable to attack during 5 sec (it is supposed to be a part of the spell)
 
It's just a custom spell dealing damage based on agility.
So the event is "Unit- A unit begins the casting of an ability
I just need how to add an action to make the unit unable to attack during 5 sec (it is supposed to be a part of the spell)

Pausing the unit should suffice then.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,875
Don't use "begins casting an ability". Use "starts the effect of an ability". Also, you can use Drunken Haze for a disarming effect, just set it's Area of Effect to 0 so it doesn't hit other units besides the main one.

Unless i'm confused, and you want a 5 second channel time before the ability is released? Cast Time, the Channel ability, there's all sorts of ways to make a unit channel an ability.
 
Status
Not open for further replies.
Top