找回密码
 点一下
查看: 1431|回复: 4

[已解决]求个很老的技能的演示

  [复制链接]
发表于 2007-11-7 18:55:53 | 显示全部楼层 |阅读模式
王者之步 King Stomp

U9的连接已经用不了了
所以来求个
最近地图任务量太大
我实在做不起了
谁帮我分担一个吧
我是要给深渊魔王用的
希望能配合好脚步动作(可以放慢脚步动作)
但不需要体积变大

效果就是脚踩到地面时会震伤周围的人。
 楼主| 发表于 2007-11-11 12:44:55 | 显示全部楼层
没人管?
回复

使用道具 举报

发表于 2007-11-17 18:22:52 | 显示全部楼层
直接用战争践踏不就好了吗?施法动作改成你想要表现的动作~
实在想达到同步~那可能需要T增加等待时间
回复

使用道具 举报

发表于 2007-11-17 23:37:09 | 显示全部楼层
[codes=jass]function KingStorm_MadeByLars takes nothing returns nothing
local unit king=i2u(GetStoredInteger(udg_localvar,"KingStorm"+I2S(h2i(GetExpiredTimer())),"King"))
local unit storm=i2u(GetStoredInteger(udg_localvar,"KingStorm"+I2S(h2i(GetExpiredTimer())),"Storm"))
local real x=GetStoredReal(udg_localvar,"KingStorm"+I2S(h2i(GetExpiredTimer())),"X")
local real y=GetStoredReal(udg_localvar,"KingStorm"+I2S(h2i(GetExpiredTimer())),"Y")
local real dis=SquareRoot((GetUnitX(king)-x)*(GetUnitX(king)-x) + (GetUnitY(king)-y)*(GetUnitY(king)-y))
local real face=(GetUnitFacing(king)+GetStoredInteger(udg_localvar,"KingStorm"+I2S(h2i(GetExpiredTimer())),"LorR")*30)*bj_DEGTORAD
if GetUnitAbilityLevel(king,'BHav')<1 then
    call RemoveUnit(storm)
    call FlushStoredMission(udg_localvar,"KingStorm"+I2S(h2i(GetExpiredTimer())))
    set king=null
    set storm=null
    call DestroyTimer(GetExpiredTimer())
    return
endif
set x=GetUnitX(king)
set y=GetUnitY(king)
if dis>125 then
// dis constact with Anim Speed
call StoreReal(udg_localvar,"KingStorm"+I2S(h2i(GetExpiredTimer())),"X",x)
call StoreReal(udg_localvar,"KingStorm"+I2S(h2i(GetExpiredTimer())),"Y",y)
call SetUnitPosition(storm,x+60*Cos(face),y+60*Sin(face))
call IssueImmediateOrder(storm,"thunderclap")
call StoreInteger(udg_localvar,"KingStorm"+I2S(h2i(GetExpiredTimer())),"LorR",GetStoredInteger(udg_localvar,"KingStorm"+I2S(h2i(GetExpiredTimer())),"LorR")*(-1))
endif
endfunction
function Trig_JT1_Actions takes nothing returns nothing
local unit king=GetSpellAbilityUnit()
local unit storm=CreateUnit(GetTriggerPlayer(),'u00C',GetUnitX(king),GetUnitY(king),0)
local timer t=CreateTimer()
call StoreInteger(udg_localvar,"KingStorm"+I2S(h2i(t)),"King",h2i(king))
call StoreInteger(udg_localvar,"KingStorm"+I2S(h2i(t)),"Storm",h2i(storm))
call StoreReal(udg_localvar,"KingStorm"+I2S(h2i(t)),"X",GetUnitX(king))
call StoreReal(udg_localvar,"KingStorm"+I2S(h2i(t)),"Y",GetUnitY(king))
call StoreInteger(udg_localvar,"KingStorm"+I2S(h2i(t)),"LorR",1)
call TriggerSleepAction(0.7)
call TimerStart(t,0.07,true,function KingStorm_MadeByLars)
set king=null
set storm=null
set t=null
endfunction
function InitTrig_JT1 takes nothing returns nothing
set gg_trg_JT1=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_JT1,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_JT1,Condition(function Trig_JT1_Conditions))
call TriggerAddAction(gg_trg_JT1,function Trig_JT1_Actions)
endfunction
[/codes]
默默默。。默写的  
回复

使用道具 举报

 楼主| 发表于 2007-11-18 11:56:32 | 显示全部楼层
好厉害。。。
谢谢LS
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-11-25 03:02 , Processed in 0.110931 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表