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

Stat Based Spell

Status
Not open for further replies.
Level 1
Joined
Aug 16, 2012
Messages
2
Hey guys, I am having an issue and my intelligence for triggers cannot go this far. What I am asking is someone to show me how to make a spell ( in my case Breath of Fire ) damage enemies based on hero stats and also buff allies. Thanks.

Also it was a little bit confusing in choosing where is the right place to ask this, so I hope it is in the right place.
 
Level 11
Joined
Dec 5, 2009
Messages
846
I guess you have to do it via triggers so you have to make a dummy unit and damage everyone within its area. As the area expands further away from the caster.
And for the damage you can use this line
  • Unit - Cause (Triggering unit) to damage (Picked unit), dealing (Real((Intelligence of Triggering unit (Include bonuses)))) damage of attack type Spells and damage type Normal
 
Level 6
Joined
Nov 24, 2012
Messages
218
Making standard WC3 abilities deal stat-based damage is easy with damage system.
1. Main caster's Breath of Fire is either 0 dmg or a point target ability that does nothing
2. Trigger detect when main caster casts Breath of Fire
3. Once detected, create a Dummy to cast Breath of Fire with 0 damage
4. Detect the damage and then apply stat-based damage using Chewii's trigger line above.
Sorry, too busy and can't make test map.
I have a Shockwave ability based on AGI in this test map from a while ago though.
http://www.hiveworkshop.com/forums/...bility-additional-effects-226003/#post2250686
Good luck figuring the rest out.
 
Status
Not open for further replies.
Top