作者f94 (f94)
看板KS95-318
标题[转录]Re: [WE] 触发技能分享-《骨牢》
时间Fri Jan 12 17:45:21 2007
※ [本文转录自 WarCraft 看板]
作者: foreverk (非音) 看板: WarCraft
标题: Re: [WE] 触发技能分享-《骨牢》
时间: Fri Jan 12 13:49:15 2007
※ 引述《wix3000 (世界一のオイカッス王子錩》之铭言:
那我也来分享一下之前做的技能
基础技能是熊猫人的吐火
这样技能总共有三个触发,这是第一个
初始值愈设为开启
Flame Ball
事件
Unit - A unit 开始连结技能
条件
(Ability being cast) 烈焰杀荒弹
动作
Set x = 0.00
这里的变数x是待会其他触发会用到的
Set TempUnit = (Casting unit)
Set Angle = (Angle from (Position of (Triggering unit)) to (Target
point of ability being cast))
这里的角度是指施法者本身到指定施法点或单位的角度
Set p1 = ((Position of (Triggering unit)) offset by 100.00 towards
(Angle + 20.00) degrees)
Set p2 = ((Position of (Triggering unit)) offset by 100.00 towards
(Angle - 20.00) degrees)
Set p3 = ((Position of (Triggering unit)) offset by 100.00 towards
(Angle + 60.00) degrees)
Set p4 = ((Position of (Triggering unit)) offset by 100.00 towards
(Angle - 60.00) degrees)
上面的p1~p4是设定集气时四颗火球出现的起始位置
Unit - Create 1 烈焰弹特效单位 for (Owner of TempUnit) at p1
facing 80.00 degrees
Set EffectUnit1 = (Last created unit)
Unit - Create 1 烈焰弹特效单位 for (Owner of TempUnit) at p2
facing 100.00 degrees
Set EffectUnit2 = (Last created unit)
Unit - Create 1 烈焰弹特效单位 for (Owner of TempUnit) at p3
facing 60.00 degrees
Set EffectUnit3 = (Last created unit)
Unit - Create 1 烈焰弹特效单位for (Owner of TempUnit) at p4
facing 120.00 degrees
Set EffectUnit4 = (Last created unit)
Trigger - Turn on Flame Ball Casting effect <预置>
记得特效单位要自己创造一个,这边用的模组是复仇之灵
再来是第二个,施法中的特效
这个触发预设是不开启的
Flame Ball Casting effect
事件
Time - Every (0.50 / 20.00) seconds of game time
条件
动作
Set x = (x + 1.00)
Animation - Change EffectUnit1's size to ((100.00 + (x x 30.00))%,
(100.00 + (x x 30.00))%, (100.00 + (x x 30.00))%) of its original size
Animation - Change EffectUnit2's size to ((100.00 + (x x 30.00))%,
(100.00 + (x x 30.00))%, (100.00 + (x x 30.00))%) of its original size
Animation - Change EffectUnit3's size to ((100.00 + (x x 30.00))%,
(100.00 + (x x 30.00))%, (100.00 + (x x 30.00))%) of its original size
Animation - Change EffectUnit4's size to ((100.00 + (x x 30.00))%,
(100.00 + (x x 30.00))%, (100.00 + (x x 30.00))%) of its original size
上面是设定施法集气时火球将会由小变大的过程
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
如果 - 条件
x 大於或等於 20.00
就 - 动作
Set x = 0.00
Trigger - Turn on Flame Ball Attack effect <预置>
Trigger - Turn off (This trigger)
否则 - 动作
当大到特定程度後则停止变大
再来是最後一个,施法生效後的特效
让刚刚变大的火球往四个设定的方向飞去同时产生地面燃烧的效果
同样也是初始值关闭
Flame Ball Attack effect
事件
Time - Every (0.50 / 10.00) seconds of game time
条件
动作
Set x = (x + 1.00)
Set p1 = (p1 offset by 70.00 towards (Angle + 15.00) degrees)
Set p2 = (p2 offset by 70.00 towards (Angle - 15.00) degrees)
Set p3 = (p3 offset by 70.00 towards (Angle + 45.00) degrees)
Set p4 = (p4 offset by 70.00 towards (Angle - 45.00) degrees)
上面是设定四颗火球要往哪四个角度飞去,以及每0.05秒火球所飞行的距离
Special Effect - Create a special effect at p1 using
Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at p2 using
Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at p3 using
Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at p4 using
Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
Special Effect - Destroy (Last created special effect)
上面是飞行时地面的燃烧效果
Unit - Move EffectUnit1 instantly to p1
Unit - Move EffectUnit2 instantly to p2
Unit - Move EffectUnit3 instantly to p3
Unit - Move EffectUnit4 instantly to p4
上面就是让火球开始移动
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
如果 - 条件
x 大於或等於 10.00
就 - 动作
Custom script: call RemoveLocation( udg_p1 )
Custom script: call RemoveLocation( udg_p2 )
Custom script: call RemoveLocation( udg_p3 )
Custom script: call RemoveLocation( udg_p4 )
Trigger - Turn off (This trigger)
否则 - 动作
上面是将刚刚创造的点,也就是p1~p4去除以减少lag
於是完成品就像下面影片
https://www.youtube.com/watch?v=FC1wJ1XDZF4 ←修好了囧
http://video.google.com/videoplay?docid=-3584203332743679393
感谢看完那麽长串的人XD
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.134.28.207
1F:推 SvcChaos:大推 XDDDDDDDDDDDDDDDDDDDD 01/12 13:50
2F:推 chungsen:好帅+_+ 01/12 13:51
3F:推 mamoru305:推有影片 01/12 13:52
4F:推 SvcChaos:超赞的 特效一流啊 01/12 13:52
5F:推 foreverk:如果只要四颗火球经过的地方有伤害的话,创造四个隐藏单 01/12 13:53
6F:→ foreverk:位往四个方向打冲击波应该可以,只是当时我偷懒XD 01/12 13:53
7F:推 omega34:超帅的!!! @@ 01/12 13:54
8F:推 mathteacher:哇 超级帅阿!!!! 01/12 14:00
9F:推 SvcChaos:#14204 f大的混沌之战其中一支角色 技能不错强 XD 01/12 14:13
10F:→ FiraxisAngle:qq 我怎不能下载..XD 01/12 14:26
11F:推 SvcChaos:顺便回报一下 bug 刀神的裂地步杀死的单位不加能力 qq 01/12 14:39
12F:推 foreverk:因为他是被踩死的不是被刀砍死的呀XD 01/12 14:50
13F:→ foreverk:fir 是什麽不能下载? 01/12 14:57
※ 编辑: foreverk 来自: 220.134.28.207 (01/12 15:13)
14F:推 byzantines:好帅啊~崇拜~~~~ 01/12 15:38
15F:推 KIL:帅耶!! 01/12 16:09
16F:推 cycu0315:push~ 01/12 16:43
17F:推 whotear:推~ !!! 01/12 16:56
18F:推 Dnight:真帅= =我没那种美工天份 01/12 17:25
19F:推 MrCrowley:嘎!? 有神快拜 <(_ _)> 01/12 17:36
20F:推 LOVEMG:强阿 01/12 17:37
21F:推 foreverk:楼上上这样说我怎麽担得起XD 01/12 17:38
22F:→ foreverk:是楼上上上 01/12 17:38
23F:推 Lushou:屌阿 01/12 17:40
24F:推 MIKE0905:好屌的技能画面! 推一个 01/12 17:40
※ 编辑: foreverk 来自: 220.134.28.207 (01/12 17:41)
--
文章代表灵魂
诗是伤口唱的歌
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 125.232.151.183
25F:→ f94:好帅的招式XD 01/12 17:45
26F:推 chanthome:这是什麽啊 01/12 20:14
27F:推 thegod13:你开始在玩WE了喔 01/12 20:38
28F:推 chanthome:看不太懂,这样是很厉害吗 01/12 22:06
29F:推 f94:当然没有 我都玩现成的= = 只是觉得这招好帅XD 01/12 23:20