• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

I need some help with a spell

Status
Not open for further replies.
Level 2
Joined
Jul 2, 2007
Messages
13
Long story short, I need help with Paladon's advanced shockwave. I'm trying to make the shockwave deal chaos damage equal to one of the hero's attributes and I can't get it to work. I'm not exactly an expert when it comes to this. So any help would be greatly appreciated.
 
Hero attribute is an integer number, while damage is real number, so you need to convert integer to real.

Ex.
  • Set Damage = (1.25 x (Real((Strength of Your_unit (Include bonuses)))))
It is Damage = Arithmetic(A x B)
A = 1.25
B = "Conversion - Convert Integer to Real" and in the integer menu it is "Hero - Hero Attribute"
 
-Create a real array variable
-In Shockwave2 trigger, set the value in index JD_Integers[2] to the attribute of the hero. Use Conversion - convert integer to real
-In Shockwave3 trigger, when it picks the unit group and sets the KBA variables, cause JD_Unit[JD_Integers[3]] to damage picked unit for yourRealArray[JD_Integers[3]]
 
Last edited:
Did you mean shockwave 3? because that's where the KBAs are, when I put the damage there the actions are looping so it deals more damage than intended.
 
Status
Not open for further replies.
Back
Top