hey everyone i am very new here and i want to map and code for war3 frozen throne just needed a little help with spells
so this one is for kakashi and i wanted him to lighting bolt a target and instantly move to him with thunder clap so far he fires a lighting bolt and thunder claps but stops after that no moving to a target.
(as a side note if any one has a better way(cooler) of doing this please let me know i want to learn, in addition if anyone can help me find a tutorial for a spell damage = X stat X level that would be awesome and really help me out)
function Trig_Main_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "NAruto Test Map" )
endfunction
function Trig_Raikiri_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A001' ) ) then
return false
endif
return true
endfunction
function Trig_Raikiri_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call ExplodeUnitBJ( GetTriggerUnit() )
call SetUnitPositionLoc( GetTriggerUnit(), OffsetLocation(GetSpellTargetLoc(), 0, 0) )
call UnitDamagePointLoc( GetTriggerUnit(), 0, 500, GetUnitLoc(GetTriggerUnit()), 100, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Main takes nothing returns nothing
set gg_trg_Main = CreateTrigger( )
call TriggerAddAction( gg_trg_Main, function Trig_Main_Actions )
endfunction
so this one is for kakashi and i wanted him to lighting bolt a target and instantly move to him with thunder clap so far he fires a lighting bolt and thunder claps but stops after that no moving to a target.
(as a side note if any one has a better way(cooler) of doing this please let me know i want to learn, in addition if anyone can help me find a tutorial for a spell damage = X stat X level that would be awesome and really help me out)
function Trig_Main_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "NAruto Test Map" )
endfunction
function Trig_Raikiri_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A001' ) ) then
return false
endif
return true
endfunction
function Trig_Raikiri_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call ExplodeUnitBJ( GetTriggerUnit() )
call SetUnitPositionLoc( GetTriggerUnit(), OffsetLocation(GetSpellTargetLoc(), 0, 0) )
call UnitDamagePointLoc( GetTriggerUnit(), 0, 500, GetUnitLoc(GetTriggerUnit()), 100, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Main takes nothing returns nothing
set gg_trg_Main = CreateTrigger( )
call TriggerAddAction( gg_trg_Main, function Trig_Main_Actions )
endfunction