• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Damage of spell depend on def of enemy

Status
Not open for further replies.
Level 6
Joined
Oct 11, 2005
Messages
142
I'm tring to make a spell where the higher the def of the enemy the more damage it does. But i have no idea if i can use a base spell or if i have to trigger it.(dont think the WE can use def as a interger)
 
Level 3
Joined
Jul 29, 2006
Messages
61
Base spell: any single unit target spell, as a dummy spell

Trigger: Def Damage
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Dummy
Actions
Unit - Create 1 Dummy Unit for (Owner of (Casting unit)) at (Position of (Target unit of ability being cast)) facing (Position of (Triggering unit))
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Unit - Cause (Last created unit) to damage (Target unit of ability being cast), dealing <When I find defence I'll put it here...> damage of attack type Spells and damage type Universal

Edit:
I belive you can't choose defence, HOWEVER if you make it a target hero only ability, you can use this formula: ((AGI of hero unit * 0.3) - 2)
 
Status
Not open for further replies.
Top