Hello. I created an item that when activated gives the hero barrage for 5 seconds, like it temporarily attacks three targets. The problem is that I can't change the projectile type for each individual hero. I'm trying to determine the projectile type of the hero (it seems easy) and change the projectile type of the ability using triggers, but for some reason the last step doesn't work. I called the trigger that replaces the string "amat", but it doesn't work. What am I doing wrong?
Sorry, I had to convert GUI to JASS because my editor is in a different language.
Sorry, I had to convert GUI to JASS because my editor is in a different language.
JASS:
function Trig_trrtttyty__________________________________________u_Actions takes nothing returns nothing
call BlzSetAbilityStringLevelFieldBJ( BlzGetUnitAbility(GetTriggerUnit(), 'Aroc'), ABILITY_SLF_MISSILE_ART, ( GetUnitAbilityLevelSwapped('Aroc', GetTriggerUnit()) - 1 ), "Abilities\\Spells\\Other\\BlackArrow\\BlackArrowMissile.mdl" )
endfunction
Attachments
Last edited: