X字斩技能触发器

X字斩技能触发器

//X字斩技能触发器  
function XZiZhan_actions takes nothing returns nothing  
	local unit XZiZhan_x1 = null
	local unit XZiZhan_x2 = null
    local location xzizhan2=GetUnitLoc(GetSpellTargetUnit())
	local location xzizhan1=PolarProjectionBJ(xzizhan2,300.00,(GetUnitFacing(GetTriggerUnit())+135.00))
	local location xzizhan3=PolarProjectionBJ(xzizhan2,300.00,(GetUnitFacing(GetTriggerUnit())-135.00))
	local location xzizhan4= null
	local location xzizhan5= null
	local location xzizhan6= null
	local location xzizhan7= null
	call CreateNUnitsAtLocFacingLocBJ(1,'e007',GetTriggerPlayer()  ,xzizhan1,xzizhan2)
	set XZiZhan_x1=GetLastCreatedUnit()
	set xzizhan4=GetUnitLoc(XZiZhan_x1)
	set xzizhan5=PolarProjectionBJ(xzizhan4,500.00,GetUnitFacing(XZiZhan_x1))
	call SetUnitVertexColor(XZiZhan_x1,100,100,100,50)
	call AddSpecialEffectTargetUnitBJ("weapon",GetLastCreatedUnit(),"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
	call DestroyEffect(GetLastCreatedEffectBJ())
	call SetUnitAnimation(XZiZhan_x1,"attack slam")
	call CreateNUnitsAtLocFacingLocBJ(1,'e007',GetTriggerPlayer() ,xzizhan3,xzizhan2)
	set  XZiZhan_x2=GetLastCreatedUnit()
	set  xzizhan6=GetUnitLoc(XZiZhan_x2)
	set  xzizhan7=PolarProjectionBJ(xzizhan6,500.00,GetUnitFacing(XZiZhan_x2))
	call SetUnitVertexColor(XZiZhan_x2,100,100,100,50)
	call AddSpecialEffectTargetUnitBJ("weapon",GetLastCreatedUnit(),"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
	call DestroyEffect(GetLastCreatedEffectBJ())
	call SetUnitAnimation(XZiZhan_x2,"attack slam")
	call TriggerSleepAction(0.85)
	call SetUnitPositionLoc(XZiZhan_x1,xzizhan5)
	call SetUnitPositionLoc(XZiZhan_x2,xzizhan7)
	call TriggerSleepAction(0.25)
	call RemoveUnit(XZiZhan_x1)
	call RemoveUnit(XZiZhan_x2)
	call RemoveLocation(xzizhan1)
	call RemoveLocation(xzizhan2)
	call RemoveLocation(xzizhan3)
	call RemoveLocation(xzizhan4)
	call RemoveLocation(xzizhan5)
	call RemoveLocation(xzizhan6)
	call RemoveLocation(xzizhan7)
endfunction  
//判断是否是发动了X字斩技能  
function XZiZhan_Conditions takes nothing returns boolean  
    if(GetSpellAbilityId()=='A011')then  
        return true  
    endif  
    return false  
endfunction  


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值