HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Damage based on stats?

10-22-2006, 12:03 AM#1
Toink
I've been thinking about it, never got it to work though. Can anyone explain to me how some people do it?
10-22-2006, 05:09 AM#2
zen87
We cant understand, you mean a spell that deal more damage based on stat, or attack damage?

well it is simple, in trigger there is this
Trigger:
unit - damage target
playing the numbers in the trigger to your *bonus damage stat* will do
10-22-2006, 05:24 AM#3
TaintedReality
Not sure how experienced you are with triggers, but you will have to trigger the spell. This means you use the event "Unit Starts the Effect of an Ability" and the Condition that the ability being cast is your ability. Make your ability do 0 damage in the Ability Editor, since the damage will be dealt through triggers. Then you'll simply use the damage function and calculate how much damage is dealt based on the hero's stats. For example, this would deal 2*(Caster's Intelligence) to the target unit:

Trigger:
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (2.00 x (Real((Intelligence of (Casting unit) (Include bonuses))))) damage of attack type Spells and damage type Normal
10-22-2006, 06:53 AM#4
Toink
Damn, didn't notice this one, I tried something like this before, I calculated the stats*damage but never found out how to deal the damage. Thanks!