I need help with my ability. The problem is whenever it is cast, all other players leave the game (not on purpose). It works fine, well except the kick all other players part There is two spells-> the effect (a version of thunderclap
(A00O)) and the dummy spell (A00Q). This use the caster system version 14.5 and I have other spells that use the same functions that work fine.
function Earth_Fury_Actions takes nothing returns nothing
local unit u=GetTriggerUnit()
local location loc=GetSpellTargetLoc()
local location pol
local integer l
local integer i
local effect fx
call TriggerSleepAction( 0.20 )
call AddSpecialEffectLocBJ( loc,
"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl" )
set fx = GetLastCreatedEffectBJ()
call TerrainDeformationRandomBJ( 4, loc, 400.00, -32, 32, 0.1 )
set l = GetUnitAbilityLevel( u,'A00Q')
set i=1
loop
exitwhen i>32
set pol=PolarProjectionBJ(loc, GetRandomReal(100.00, 200.00), i*30.0 + GetRandomReal(-45.00, 45.00) )
call CasterSetCastSourceLoc(pol)
call CasterCastAbilityLevelPointLoc( GetOwningPlayer(u), 'A00O', l,"thunderclap", pol, true)
call AddSpecialEffectLocBJ( pol, "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveLocation( pol )
call TriggerSleepAction( 0)
set i=i+1
endloop
call RemoveLocation(loc)
call DestroyEffectBJ( fx )
set fx=null
set loc=null
set pol=null
set u=null
endfunction
//========================================================
function InitTrig_Earth_Fury takes nothing returns nothing
call OnAbilityEffect('A00Q',"Earth_Fury_Actions")
endfunction
(A00O)) and the dummy spell (A00Q). This use the caster system version 14.5 and I have other spells that use the same functions that work fine.
function Earth_Fury_Actions takes nothing returns nothing
local unit u=GetTriggerUnit()
local location loc=GetSpellTargetLoc()
local location pol
local integer l
local integer i
local effect fx
call TriggerSleepAction( 0.20 )
call AddSpecialEffectLocBJ( loc,
"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl" )
set fx = GetLastCreatedEffectBJ()
call TerrainDeformationRandomBJ( 4, loc, 400.00, -32, 32, 0.1 )
set l = GetUnitAbilityLevel( u,'A00Q')
set i=1
loop
exitwhen i>32
set pol=PolarProjectionBJ(loc, GetRandomReal(100.00, 200.00), i*30.0 + GetRandomReal(-45.00, 45.00) )
call CasterSetCastSourceLoc(pol)
call CasterCastAbilityLevelPointLoc( GetOwningPlayer(u), 'A00O', l,"thunderclap", pol, true)
call AddSpecialEffectLocBJ( pol, "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveLocation( pol )
call TriggerSleepAction( 0)
set i=i+1
endloop
call RemoveLocation(loc)
call DestroyEffectBJ( fx )
set fx=null
set loc=null
set pol=null
set u=null
endfunction
//========================================================
function InitTrig_Earth_Fury takes nothing returns nothing
call OnAbilityEffect('A00Q',"Earth_Fury_Actions")
endfunction
Last edited: