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

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

Status
Not open for further replies.
Level 15
Joined
Jul 19, 2007
Messages
824
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
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
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
 
Level 15
Joined
Jul 19, 2007
Messages
824
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!
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
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.
Top