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

About "Unit-Remove Ability"

Status
Not open for further replies.
Level 3
Joined
Oct 8, 2007
Messages
41
I was wondering what does the "Unit-Remove Ability" trigger do? I tried it a few times but doesnt seem to work. Does it remove the ability only if the ability is a item ability or a unit ability? Or must it be a hero ability or only certain abilities can be removed?
 
in the condition did you put what ability is to be removed? and what's the event causing the ability to be removed?
 
  • My Ability
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to My Ability
    • Actions
      • Unit - Add +20 damage (+20) to (Target unit of ability being cast)
      • Unit - Add life ability(Lesser) to (Target unit of ability being cast)
      • Wait 30.00 seconds
      • Unit - Remove +20 damage (+20) from (Target unit of ability being cast)
      • Unit - Remove life ability(Lesser) from (Target unit of ability being cast)
should this work?
 
thanks for your help
i think i solved it by setting the (Target unit of ability being cast) to a variable

  • My Ability
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Giant Growth
    • Actions
      • Set g = (Target unit of ability being cast)
      • Unit - Add +20 damage (+20) to g
      • Unit - Add life ability(Lesser) to g
      • Wait 30.00 seconds
      • Unit - Remove +20 damage (+20) from g
      • Unit - Remove life ability(Lesser) from g

it worked
 
problem is when someone else casts this ability damage bonus of first caster never ends
In this point I would like to suggest you to use locals but you'll need jass for it
I'll tell ya what convert it to custom text
and add "local unit caster" to under "function Trig_My_Ability_Actions takes nothing returns nothing"
And replace "udg_g"s with "caster" (exclude nails)
 
Or he can just do this, Need_O2:

  • My Ability
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Giant Growth
    • Actions
      • Custom script: local unit udg_g
      • Set g = (Target unit of ability being cast)
      • Unit - Add +20 damage (+20) to g
      • Unit - Add life ability(Lesser) to g
      • Wait 30.00 seconds
      • Unit - Remove +20 damage (+20) from g
      • Unit - Remove life ability(Lesser) from g
      • Set g = No Unit
 
Or he can just do this, Need_O2:

  • My Ability
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Giant Growth
    • Actions
      • Custom script: local unit udg_g
      • Set g = (Target unit of ability being cast)
      • Unit - Add +20 damage (+20) to g
      • Unit - Add life ability(Lesser) to g
      • Wait 30.00 seconds
      • Unit - Remove +20 damage (+20) from g
      • Unit - Remove life ability(Lesser) from g
      • Set g = No Unit

oh yeah thanks to Need_O2 for telling me theres a bug and it would cause the buff to last forever.

Purple, i dont really understand how your trigger solves the problem. A bit of explanation please?
 
Status
Not open for further replies.
Back
Top