• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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