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

Spell damage depends on your Stats..

Status
Not open for further replies.
Level 30
Joined
Nov 29, 2012
Messages
6,637
Im making a spell that it's damage depends on your Str or AGi or Int..

You have to do this trigger:

  • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (Real((Intelligence of (Casting unit) (Include bonuses)))) damage of attack type Chaos and damage type Normal
An example is this.
But still trigger has some faults that even dealing intelligence based damage it still doesnt deal the full intelligence, I think you must change the attack type and damage type to make it deal the full damage.
 
Level 20
Joined
Apr 14, 2012
Messages
2,901
instead of casting unit use triggering unit. and do what masterTrainer suggested it makes it a lot easier. if u need to learn how to index u can check out my tutorial. it has a chapter in there to help u learn to index. http://www.hiveworkshop.com/forums/tutorial-submission-283/things-gui-user-should-know-233242/

I REALLY recommend you to learn, read, and finish the stated tutorial. It will teach and help you a lot. I have been coding GUI for a year now and there are stuff in that tutorial that I haven't even known yet. It's long but educational =D
 
Status
Not open for further replies.
Top