《魔兽3》地图教程给英雄加上光晕
如何给普通单位做的英雄加上光晕
hmmmmm...这个技巧可能有点老了,或许大家都知道了?

先下载下面的文件:
http://www.war3xp.com/bbs/viewfile.asp?ID=15977
RAR包,有2个文件: Glow.mdx和GlowPlus.mdx, 一个是一般的光晕, 一个是稍大一点的
http://www.war3xp.com/bbs/viewfile.asp?ID=15979
Zip包,有一个Aura.mdx,比Glow.mdx大
本技巧完美版!效果如下图(正文见2楼)
完美版:
普通单位的模型没有一般英雄的那种光晕(Glow), 一般只能先导入12种颜色的光晕模型, 然后给单位添加对应颜色的模型才行. 现在只需要导入一个光晕模型, 即可对应全部颜色!
步骤
1, 下载顶楼的模型, 导入你的地图
2, 可以有两种方法将光晕添加到英雄身上
法一:
。用不占用图标的物品技能,比如Item Fire Attack Bonus, 或者Shadow Orb, 或者Orcish Battle Standard做一个自定技能
。去掉原来相应的Art - Misssile Art项,
。在Art - Target那个选你导入的光晕模型. attachment point写上"origin",你的光晕技能就做好了。
。直接将技能给英雄,或者用Trigger添加:Unit - Add (你的光晕技能) to (你的英雄)
法二:
。传统办法,用创建特效的Trigger添加:Special Effect - Create a special effect attached to the origin of (你的英雄) using war3mapImported\Glow.mdx
3, 如果该英雄是你预先放好的,那么需要添加如下地图初始化触发(二选一种)
第一种: (推荐)
Events
Map Initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Change color of (Picked player) to (Color of (Picked player)), Changing color of existing units
第二种: (不推荐)
Events
Map Initialisation
Conditions
Actions
Custom script: loop
Custom script: call SetAllyColorFilterState(2)
Custom script: call SetAllyColorFilterState(0)
Custom script: call TriggerSleepAction(0.00)
Custom script: endloop
注意事项
1, 经我实际测试,对预放置的单位必须进行颜色初始化,即“Unit - Change color of (你的英雄) to (Color of (Owner of (你的英雄)))”, 否则光晕颜色就都是红的,如下图;而游戏进行中出生的英雄则没有颜色初始化的必要。

2,当英雄使用变身的技能时,可能会造成光晕颜色变回红色,或者干脆没有光晕;对这些情况写出相应的T即可。比如前一种情况,光晕颜色归为红色时,只需再做一次颜色初始化就行,或者干脆加一个T一劳永逸:
Events:
Unit Enters Playable map area
Conditions:
Triggering Unit is a Hero
Actions:
Change (Triggering unit) team color to (owner of (triggering unit) color)
3, 对于后一种情况(光晕颜色消失),比如Mirror Image,也需要用T来完美。
下面列出可能的会造成光晕颜色归红/光晕消失的技能和情况,以作备忘:
Mirror Image
Metamorphosis
Bear Form
其它.....
<完>