您的位置:首页 > 其它

WAR3 澄海 恶魔气息 技能分析

2008-10-09 12:37 260 查看


以上要打开WORLD EDIT,单位编辑器,单位/技能/效果面板里按CTRL+D查到你的技能ID,如A01S:APXF
其中前面的是你的技能ID,后面是以什么技能为基础改来的

单位:气息 ------以蝗虫为基础 (列出改动)



技能01 恶魔气息------a01t:AULS 蝗虫群为基础修改



技能02 恶魔气息---------a01s:APXF以凤凰火焰技能为基础修改



技能03 恶魔气息-------a019:APXF以凤凰火焰技能为基础修改



魔法效果一个 恶魔气息--------B003;BPXF 以凤凰火焰效果为基础修改



自定义变量这些是原作者用的,都在globals里: (WE的也需要变量,添在触发那,有地方可以放自定义脚本)
boolean array udg_RandomHeroMode //BOOL数组
UNIT gg_unit_Edem_0333 //edem就是恶魔猎手了
JASS:
//---------------------------------------------------------------------------------------------------
function Trig_DemonBreath_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AEme'))then //AEme是恶魔猎手的变身技能,可以改
return false
endif
return true
endfunction
//----------------------------------------------------------------------------------------------------
function Trig_DemonBreath_Func003001 takes nothing returns boolean
return(udg_RandomHeroMode[7]==true)
endfunction
//----------------------------------------------------------------------------------------------------
function Trig_DemonBreath_Actions takes nothing returns nothing
call SetUnitInvulnerable(GetTriggerUnit(),true)
call TriggerSleepAction(1.50)
if(Trig_DemonBreath_Func003001())then
call SetUnitScalePercent(GetTriggerUnit(),80.00,80.00,80.00)
else
call DoNothing()
endif
call IssueImmediateOrder(GetSpellAbilityUnit(),"locustswarm")
call TriggerSleepAction(1.50)
call SetUnitInvulnerable(GetTriggerUnit(),false)
call IssueImmediateOrder(GetSpellAbilityUnit(),"locustswarm")
endfunction
//----------------------------------------------------------------------------------------------------
function InitTrig_DemonBreath takes nothing returns nothing
set gg_trg_Dem()
call TriggerRegisterUnitEvent(gg_trg_DemonBreath,gg_unit_Edem_0333,EVENT_UNIT_SPELL_EFFECT)
// gg_unit_Edem_0333可以改成你的单位ID
call TriggerAddCondition(gg_trg_DemonBreath,Condition(function Trig_DemonBreath_Conditions))
call TriggerAddAction(gg_trg_DemonBreath,function Trig_DemonBreath_Actions)
endfunction
//----------------------------------------------------------------------------------------------------
WE的这步不用!!!
最后在MAIN里加上 call InitTrig_DemonBreath()

另外,我教大家用WE添脚本
1.新建一个跟脚本里名字一样的触发,这里叫DemonBreath



2.转化它



编辑-》转化为自定义脚本

3.好了,不会脚本的将JASS代码粘贴进去就好了... 包括那俩变量.... ,那俩要不想添就直接用常量,比如第一个直接用TRUE,第二个就用'edem'

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: