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!
Well, the title says all. I need help with a spell trigger that does damage / disables for the level of ability being cast * 2 or so, but I don't know where to find the command "level of ability" / how to do this.
simple when you try to set damage done with trigger you will see
Unit - Property
Unit - Percentage Life
Unit - Percentage Mana
etc etc in units part
Because damage ammount is a real value like these
You must set it Conversion - Convert Integer to Real
then choose Unit - Level of Ability for Unit in it
As Need_02 said, the GUI thingie you'll have to find is "Unit - Level of Ability for Unit" which is an integer. So when using the "Unit - Damage Target" function and clicking the damage field, you will find all kind of things like "Unit - Property" (which Need also said). Those are all real values. An ability level, however, is an integer. So in the damage field, you first select "Arithmetic", and then for one of the 2 new fields you choose "Conversion - Convert Integer To Real", then click the integer to be converted and alas, you will see a different list of functions, including "Unit - Level of Ability for Unit". Select the desired ability, and the other part of the arithmetic will be your desired modifier depending on the ability level. Hope that's clear enough now!
If you use JASS:
JASS:
GetUnitAbilityLevel takes unit whichUnit, integer abilcode returns integer
thats why I showed Conversion - Convert Integer to Real in a evident color its inside it :/ read answers cerfully or dont ask for help please (please ? no this is an order)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.