Lmfaocj
Active Member
- Reaction score
- 1
I was trying to make a skill but it doesn't seem to be working
i am noob and don't know about jass much can anyone tell me what I did wrong?
i am noob and don't know about jass much can anyone tell me what I did wrong?
JASS:
function QE_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 039;A010039; ) ) then
return false
endif
return true
endfunction
function QE_Actions takes nothing returns nothing
local location p=GetSpellTargetLoc()
local location o=null
local real f=GetUnitFacing(GetTriggerUnit())
// -------- 1 --------
call CreateNUnitsAtLoc( 1, 039;hfoo039;, GetOwningPlayer(GetTriggerUnit()), p, f)
call UnitApplyTimedLifeBJ( 1.00, 039;BTLF039;, GetLastCreatedUnit() )
call UnitAddAbilityBJ( 039;A012039;, GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 039;A012039;, GetLastCreatedUnit(), GetUnitAbilityLevelSwapped(039;A010039;, GetTriggerUnit()) )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
set o = PolarProjectionBJ( p, 120.00, f)
call RemoveLocation(p)
set p = o
call RemoveLocation(o)
// -------- 2 --------
call TriggerSleepAction( 0.50 )
call CreateNUnitsAtLoc( 1, 039;hfoo039;, GetOwningPlayer(GetTriggerUnit()), p, f)
call UnitApplyTimedLifeBJ( 1.00, 039;BTLF039;, GetLastCreatedUnit() )
call UnitAddAbilityBJ( 039;A012039;, GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 039;A012039;, GetLastCreatedUnit(), GetUnitAbilityLevelSwapped(039;A010039;, GetTriggerUnit()) )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
set o = PolarProjectionBJ( p, 120.00, f)
call RemoveLocation(p)
set p = o
call RemoveLocation(o)
// -------- 3 --------
call TriggerSleepAction( 0.50 )
call CreateNUnitsAtLoc( 1, 039;hfoo039;, GetOwningPlayer(GetTriggerUnit()), p, f)
call UnitApplyTimedLifeBJ( 1.00, 039;BTLF039;, GetLastCreatedUnit() )
call UnitAddAbilityBJ( 039;A012039;, GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 039;A012039;, GetLastCreatedUnit(), GetUnitAbilityLevelSwapped(039;A010039;, GetTriggerUnit()) )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
call RemoveLocation(p)
set p = o
call RemoveLocation(o)
// -------- 4 --------
call TriggerSleepAction( 0.50 )
call CreateNUnitsAtLoc( 1, 039;hfoo039;, GetOwningPlayer(GetTriggerUnit()), p, f)
call UnitApplyTimedLifeBJ( 1.00, 039;BTLF039;, GetLastCreatedUnit() )
call UnitAddAbilityBJ( 039;A012039;, GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 039;A012039;, GetLastCreatedUnit(), GetUnitAbilityLevelSwapped(039;A010039;, GetTriggerUnit()) )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
set o = PolarProjectionBJ( p, 120.00, f)
call RemoveLocation(p)
set p = o
call RemoveLocation(o)
// -------- 5 --------
call TriggerSleepAction( 0.50 )
call CreateNUnitsAtLoc( 1, 039;hfoo039;, GetOwningPlayer(GetTriggerUnit()), p, f)
call UnitApplyTimedLifeBJ( 1.00, 039;BTLF039;, GetLastCreatedUnit() )
call UnitAddAbilityBJ( 039;A012039;, GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 039;A012039;, GetLastCreatedUnit(), GetUnitAbilityLevelSwapped(039;A010039;, GetTriggerUnit()) )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
set p=null
set o=null
set f=0.00
endfunction
//===========================================================================
function InitTrig_Quake takes nothing returns nothing
local trigger t= CreateTrigger()
call TriggerRegisterAnyUnitEventBJ( t, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( t, function QE_Conditions )
call TriggerAddAction( t, function QE_Actions )
endfunction