[Open]
[Close]
村上義清大技是不停召出隱施出震地
造作方式(jass)
微型版的
村上義清大技
function Book_Of_Lighting_Timer takes nothing returns nothing
local timer t = GetExpiredTimer()
local string s = H2S(t)
local unit u = GetUnit(s,"Caster")
local integer i = GetInteger(s,"Index") + 1
local location r = GetLocation(s,"Points")
call SaveInteger(s,"Index",i)
if( i == 20 )then
call RemoveLocation(r)
call PauseTimer(t)
call DestroyTimer(t)
call ClearCache(s)
else
call DestroyEffect( AddSpecialEffectLoc( "Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl",r ) )
set u = CreateUnitAtLoc( GetOwningPlayer(u),'h005',r,0.00 )
call UnitAddAbility( u,'A069' )
call IssueImmediateOrder( u,"stomp" )
endif
set t = null
set s = null
set u = null
set r = null
endfunction
function Book_Of_Lighting_Condition takes nothing returns nothing
local timer t
local string s
if( GetSpellAbilityId() == 'A06B' )then
set t = CreateTimer()
set s = H2S(t)
call SaveHandle(s,"Caster",GetTriggerUnit())
call SaveHandle(s,"Points",GetSpellTargetLoc())
call TimerStart(t,0.1,true,function Book_Of_Lighting_Timer)
set t = null
set s = null
endif
endfunction
//===========================================================================
function InitTrig_Book_Of_Lighting takes nothing returns nothing
set gg_trg_Book_Of_Lighting = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Book_Of_Lighting,EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Book_Of_Lighting,Condition( function Book_Of_Lighting_Condition ) )
endfunction