Hi everyone, this is my first real attempt at making anything at all with JASS and therefore I'm still not 100% clear on what I'm doing. Anywho, me and my buddy are trying to make a skill that does (Agility*4 damage).
So far i have:
function Attack_Condition takes nothing returns boolean
return GetSpellAbilityId() == 'A000'
endfunction
function Attack_Actions takes nothing returns nothing
endfunction
function InitTrig_AttackA000 takes nothing returns nothing
call UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(0,GetSpellAbilityUnit(),true))*3.),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call PolledWait(2.)
endfunction
Please help
So far i have:
function Attack_Condition takes nothing returns boolean
return GetSpellAbilityId() == 'A000'
endfunction
function Attack_Actions takes nothing returns nothing
endfunction
function InitTrig_AttackA000 takes nothing returns nothing
call UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(0,GetSpellAbilityUnit(),true))*3.),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call PolledWait(2.)
endfunction
Please help