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'
相关文章推荐
- 数据挖掘易犯的11大错误与数据分析技能
- 【软件性能测试-LoadRunner实战技能 14】== LoadRunner_Web_reg_save_param function explained_分析
- 分析100万个CEO简历后,整理出20项顶级技能----你应该学习!
- Unity3D自学笔记——星际2技能系统分析(二)Ability(Move, Stop, Attack)
- Unity3D自学笔记——星际2技能系统分析(五)Effect(Damage)
- [导入]孤独的个人在社会中生存应掌握的基本技能(个人分析)
- 用AI算法分析光影看到盲点:这项MIT新研究偷学到二娃技能
- 面试篇:公司分析,必备技能
- Dota2技能系统设计分析
- 少了分析技能,大数据毫无用处
- PHP源码分析基本技能GDB的操作
- 网站策划职业技能分析(转载)
- 福利来啦!Apsara Clouder大数据专项技能认证:使用Quick BI 制作企业数据分析报表
- iis日志分析 seo必备技能
- 【软件性能测试-LoadRunner实战技能 18】== LoadRunner_常用函数分析
- Dota2技能系统设计分析
- 测试人员角色分析和技能要求
- 系统化web前端需要技能所占比(通过图表分析来看您是不是一个合格的前端)
- .NET程序员的技能分析参考V1.0(有附件)
- 最新病毒“恶魔” Virus.Win32.Devil.a 分析