• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

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 13
Joined
Nov 4, 2006
Messages
1,239
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