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

Attribute-based ability -- Lil' help please!

Status
Not open for further replies.
Level 1
Joined
Jan 18, 2007
Messages
4
Though someone just like me probably has something just like this posted up in those 100+ pages, I'm just gonna add to that outrageous number.

I've been trying to make an ability that would cause damage equal to the casting hero's strength +100, I've tried it many times and double-double checked my triggers, but I can't figure out what I'm doing wrong. Someone please tell me where I'm going wrong, or if I'm just wasting my time.

Different ways I've set up the triggers (roughly):

Method #1-(with the 100dmg in the ability)
-Event-A unit finishes casting ability
-Conditions-Ability being cast equal to Goddamn Ability that won't work
-Action-Make casting unit damage target of ability being cast for real-hero's strength, include bonuses damage type normal

Method #2-
-Event-A unit finishes casting ability
-Conditions-Ability being cast equal to Goddamn Ability that won't work
-Action-Make casting unit damage target of ability being cast for Arithmatic:real-hero's strength, include bonuses + 100 damage type normal

Method #3-(Pre-set up variable set to caster's strength... yes i checked that for problems too.)
-Event-A unit finishes casting ability
-Conditions-Ability being cast equal to Goddamn Ability that won't work
-Action-Make casting unit damage target of ability being cast for Variable: Convert Integer to real + 100 damage type normal

If anyone knows how to make this work correctly, please reply, thanks.
 
Level 11
Joined
Jul 12, 2005
Messages
764
My god, you're using the wrong Event. For spells, use the event 'Unit starts the effect of an ability'.
Event - Unit starts the effect of an ability
Cond - (Ability being cast) is equal to <Ability>
Action -
Cause (Triggering Unit) to damage (Target Unit Of Ability Being Cast), dealing (100+(Strenght of Triggering Unit)) ...


Strenght of Triggering Unit is a conversion from integer to real.
Goddamn it's so easy...
 
Status
Not open for further replies.
Top