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

How can I base a spell's damage off a Heroe's Stats?

Status
Not open for further replies.
Level 5
Joined
Jun 7, 2008
Messages
141
Basically, the Title says it all.
I am making this map where all spells only have one level and all a hero's over all such a damage, health, spell damage, and so on are on the hero's stats.

I know this is possible since I have already seen a lot of maps with this function.
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
http://www.hiveworkshop.com/forums/triggers-and-scripts-269/spell-damage-based-on-hero-stats-11003/

http://www.hiveworkshop.com/forums/...-make-a-spell-do-damage-equal-to-stats-66982/

basically you use a simple trigger with

  • Events
    • Unit - A Unit starts the effect of an Ability
  • Conditions
    • ability being cast equal to your ability
  • Actions
    • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Real((Strength of (Triggering unit) (including bonuses)))) damage of attack type Chaos and damage type Normal
for the damage go to arithmetic and select "convert integer to real" -> hero attribut
 
Status
Not open for further replies.
Top