• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Trigger that doesn't damage the target as intended

Status
Not open for further replies.
Level 16
Joined
Jul 19, 2007
Messages
931
I want an item-ability to cause 10x the caster's strength in damage to the target enemy unit but I'm very noobish at triggering and my triggering doesn't work.. Please help me! I also don't want the ability to be overrunned if an other Hero casts the item-ability in the same time.. This is how I made it
  • Helms Hammer Strike
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Helm's Hammer Strike
    • Actions
      • Set MS_Level = (Level of (Ability being cast) for (Triggering unit))
      • Wait 0.00 seconds
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((10.00 x (Real(RD_Level))) x ((Real((Strength of (Triggering unit) (Include bonuses)))) + 0.00)) damage of attack type Spells and damage type Normal
 
try this

  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Item Ability
    • Actions
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (10.00 x (Real((Strength of (Triggering unit) (Include bonuses))))) damage of attack type Spells and damage type Normal
 
try this

  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Item Ability
    • Actions
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (10.00 x (Real((Strength of (Triggering unit) (Include bonuses))))) damage of attack type Spells and damage type Normal
Thank you. It works!
 
I think your initial trigger doesnt work because you set MS_level but in the damage unti function you use a different variable
 
Status
Not open for further replies.
Back
Top