[WE] 觸發技能分享-《真理之門》

看板WarCraft作者 (Sir. Wix=Litariz)時間17年前 (2007/09/02 15:26), 編輯推噓251(25214)
留言257則, 30人參與, 最新討論串1/1
我又來啦~> 這次的技能是個看起來很詭異的技能 目前還沒有很相像的 硬要說的話,就是像大友宗麟的龍卷風吧 簡單來說,施展以後會在目標點創造一個巨大的門 然後把範圍內的敵軍通通綁住,並拖向中心 就算是後來才進入範圍的敵軍也一樣會抓 被拖到中心以後部隊就會消失,並且每0.1秒都會受到傷害 10秒之後真理之門就會爆炸,再過2秒後被抓進去的部隊都會全部被吐出來 廢話不多說 看影片~> http://web.thu.edu.tw/s956206/www/images/Door.wmv 再來講解作法 材料: [部隊] 真理之門本體,附帶蝗蟲群技能(沒有也可以,那碰撞大小就要設為0) [部隊] 隱藏施法單位,回血不能為負避免綁到一半隱藏單位先死了 囧 [技能] 真理之門技能,連結技能,禁止行動為真,連結時間3秒,指標圖像&界面可視 [技能] 觸發用捆仙繩,人類的空中桎梏,範圍99999,持續10秒,其他設0。 變數部份> ATTACK   部隊 Real    實數 Points   點 Integer 整數 Temp_Point 點 Unit_Group 部隊群組 這次特地挑戰處理點的記憶體漏失問題 本技能不支援多重施法 囧 觸發: Door St 事件 Unit - A unit 使技能生效 條件 (Ability being cast) 等於 真理之門 動作 Unit - Create 1 真理之門for (Owner of (Triggering unit)) at (Target point of ability being cast) facing 預設建築面對方向 degrees Unit - Add a 10.00 second 一般expiration timer to (Last created unit) Animation - Play (Last created unit)'s Stand Work animation Set ATTACK[26] = (Last created unit) Set Real[7] = 10.00 Set Points[10] = (Position of ATTACK[26]) Set Integer[16] = (Level of 真理之門 for (Triggering unit)) Unit Group - Remove all units from Unit_Group[9] Trigger - Turn on Door Lp <預置> //該設的設一設,開啟第二個觸發 Door Lp 事件 Time - Every 0.10 seconds of game time 條件 ((This trigger) is on) 等於 真 動作 Set Real[7] = (Real[7] - 0.10) Unit Group - Pick every unit in (Units within 800.00 of Points[10] matching ((((Matching unit) is 建築物 等於 假 and ((((Owner of (Matching unit)) is an ally of (Owner of ATTACK[26])) 等於 假 and ((((Matching unit) is alive) 等於 真 and (((Matching unit) is 魔法免疫) 等於 假) and do (Actions) //挑選範圍中的敵方單位 迴圈 - 動作 Set Temp_Point[1] = (Position of (Picked unit)) If (All Conditions are True) then do (Then Actions) else do (Else Actions) 若符合這些條件 ((Picked unit) has buff 真理之門) 等於 真 否則執行這些動作 Unit - Turn collision for (Picked unit) 關閉 Unit Group - Add (Picked unit) to Unit_Group[10] Unit - Create 1 真理之門(隱藏單位) for (Owner of ATTACK[26]) at Points[10] facing 預設建築面對方向 degrees Unit - Add a Real[7] second 一般expiration timer to (Last created unit) Unit - Make (Last created unit) face (Picked unit) over 0.00 seconds Unit - Order (Last created unit) to 人類 龍鷹騎士 - 空中 桎梏 (Picked unit) //沒被綁住就創造單位綁住他 就執行這些動作 If (All Conditions are True) then do (Then Actions) else do (Else Actions) 若符合這些條件 (Distance between Temp_Point[1] and Points[10]) 小於 48.00 //離中心夠近就把他隱藏起來 否則執行這些動作 Unit Group - Remove (Picked unit) from Unit_Group[10] Unit Group - Add (Picked unit) to Unit_Group[9] Unit - 暫停 (Picked unit) //↑用群組記錄起來方便給傷害 Unit - Hide (Picked unit) Special Effect - Create a special effect at Temp_Point[1] using Abilities\Spells \Items\AIso\AIsoTarget.mdl Special Effect - Destroy (Last created special effect) 就執行這些動作 Set Temp_Point[2] = (Temp_Point[1] offset by 20.00 towards (Angle from Temp_Point[1] to Points[10]) degrees) //不然就把他往中心移動 Unit - Move (Picked unit) instantly to Temp_Point[2] Custom script: call RemoveLocation(udg_Temp_Point[1]) Custom script: call RemoveLocation(udg_Temp_Point[2]) Unit Group - Pick every unit in Unit_Group[9] and do (Actions) 迴圈 - 動作 Unit - Cause ATTACK[26] to damage (Picked unit), dealing ((Real(Integer[16])) x 10.00) damage of attack type 法術 and damage type 心靈 //傷害部份 If (Real[7] 小於或等於 0.00) then do (Trigger - Run Door En <預置> (ignoring conditions)) else do (Do nothing) //時間到了就執行第三觸發 Door En 事件 條件 動作 Trigger - Turn off Door Lp <預置> Wait 2.00 game-time seconds Unit Group - Pick every unit in Unit_Group[9] and do (Actions) 迴圈 - 動作 Set Temp_Point[1] = (Points[10] offset by (Random real number between 0.00 and 800.00) towards (Random percentage) degrees) Unit - Move (Picked unit) instantly to Temp_Point[1] Unit - Turn collision for (Picked unit) 開啟 Unit - Unhide (Picked unit) Unit - 解除暫停 (Picked unit) //把剛剛打開的都關起來 Special Effect - Create a special effect at Temp_Point[1] using Objects\Spawnmodels\Human \HumanLargeDeathExplode \HumanLargeDeathExplode.mdl Special Effect - Destroy (Last created special effect) Animation - Play (Picked unit)'s death animation Custom script: call RemoveLocation(udg_Temp_Point[1]) Unit Group - Pick every unit in Unit_Group[10] and do (Actions) 迴圈 - 動作 Unit - Turn collision for (Picked unit) 開啟 就這樣 就完成了 個人覺得用起來還蠻帥氣的 而且也盡量解決了Memory Leak的問題 螢幕前的你也來試試看吧(指) -- 真紅 翠星石 蒼星石      人偶們一起和平生活 雪華崎晶 薔薇水晶 才是真紅女王真正的心願 水銀燈 金糸雀 雛苺 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.62.109.88

09/02 15:33, , 1F
真帥氣!!
09/02 15:33, 1F

09/02 15:35, , 2F
好帥XD
09/02 15:35, 2F

09/02 15:35, , 3F
帥!
09/02 15:35, 3F

09/02 15:36, , 4F
09/02 15:36, 4F

09/02 15:36, , 5F
push
09/02 15:36, 5F

09/02 15:50, , 6F
推推 我要無限斬擊~~
09/02 15:50, 6F

09/02 15:56, , 7F
好長0.0
09/02 15:56, 7F

09/02 16:06, , 8F
OS黑水大絕?
09/02 16:06, 8F

09/02 16:07, , 9F
技能名稱好像卡到了耶
09/02 16:07, 9F

09/02 16:08, , 10F
你上一招也叫惡夢魔王= =
09/02 16:08, 10F
驚,我居然忘記改標題 ※ 編輯: wix3000 來自: 61.62.109.88 (09/02 16:10)

09/02 16:18, , 11F
門的另一端 世界的真實
09/02 16:18, 11F

09/02 17:00, , 12F
感覺很不錯
09/02 17:00, 12F

09/02 17:04, , 13F
好文,好棒
09/02 17:04, 13F

09/02 17:21, , 14F
好炫! 話說影片會閃一下閃一下,這?
09/02 17:21, 14F

09/02 17:39, , 15F
應該是作者電腦的問題吧XD
09/02 17:39, 15F

09/02 17:45, , 16F
好帥
09/02 17:45, 16F

09/02 18:15, , 17F
cool~
09/02 18:15, 17F

09/02 19:17, , 18F
強者 推推
09/02 19:17, 18F

09/02 19:36, , 19F
好神
09/02 19:36, 19F

09/02 20:08, , 20F
好帥!!
09/02 20:08, 20F

09/02 20:12, , 21F
門的另一端 世界的真實 ..XD
09/02 20:12, 21F

09/02 20:29, , 22F
太帥了 orz
09/02 20:29, 22F

09/02 20:46, , 23F
( ′▽`)-o囯囚圃
09/02 20:46, 23F

09/02 21:42, , 24F
吐出來的英雄沒死可以開始練金術....
09/02 21:42, 24F

09/02 22:44, , 25F
練金術士被抓進去會變強嗎XD
09/02 22:44, 25F

09/02 22:48, , 26F
推!!!!!!!!!!!
09/02 22:48, 26F

09/02 23:38, , 27F
GOOD!!
09/02 23:38, 27F

09/02 23:39, , 28F
選錯了XD
09/02 23:39, 28F

09/03 02:29, , 29F
so nice
09/03 02:29, 29F

09/04 03:04, , 30F
09/04 03:04, 30F

09/22 11:30, , 31F
推一下,另外要催Final HIt阿阿阿,我要拿名刀無限斬XDD
09/22 11:30, 31F
11/16 修正被綁住的單位吸進門之前技能就結束,會造成該單位碰撞保持關閉的BUG ※ 編輯: wix3000 來自: 122.125.164.137 (11/16 19:14)

01/23 13:49, , 32F
01/23 13:49, 32F

01/23 13:49, , 33F
01/23 13:49, 33F

01/23 13:50, , 34F
01/23 13:50, 34F

01/23 13:50, , 35F
01/23 13:50, 35F

01/23 13:52, , 36F
01/23 13:52, 36F

01/23 13:52, , 37F
01/23 13:52, 37F
還有 180 則推文
01/23 16:10, , 218F
01/23 16:10, 218F

01/23 16:10, , 219F
01/23 16:10, 219F

01/23 16:12, , 220F
01/23 16:12, 220F

01/23 16:12, , 221F
01/23 16:12, 221F

01/23 16:13, , 222F
01/23 16:13, 222F

01/23 16:13, , 223F
01/23 16:13, 223F

01/23 16:15, , 224F
01/23 16:15, 224F

01/23 16:15, , 225F
01/23 16:15, 225F

01/23 16:16, , 226F
01/23 16:16, 226F

01/23 16:16, , 227F
01/23 16:16, 227F

01/23 16:18, , 228F
01/23 16:18, 228F

01/23 16:18, , 229F
01/23 16:18, 229F

01/23 16:19, , 230F
01/23 16:19, 230F

01/23 16:19, , 231F
01/23 16:19, 231F

01/23 16:21, , 232F
01/23 16:21, 232F

01/23 16:21, , 233F
01/23 16:21, 233F

01/23 16:23, , 234F
01/23 16:23, 234F

01/23 16:23, , 235F
01/23 16:23, 235F

01/23 16:24, , 236F
01/23 16:24, 236F

01/23 16:24, , 237F
01/23 16:24, 237F

01/23 16:26, , 238F
01/23 16:26, 238F

01/23 16:26, , 239F
01/23 16:26, 239F

01/23 16:27, , 240F
01/23 16:27, 240F

01/23 16:27, , 241F
01/23 16:27, 241F

01/23 16:29, , 242F
01/23 16:29, 242F

01/23 16:29, , 243F
01/23 16:29, 243F

01/23 16:30, , 244F
01/23 16:30, 244F

01/23 16:30, , 245F
01/23 16:30, 245F

01/23 16:32, , 246F
01/23 16:32, 246F

01/23 16:32, , 247F
01/23 16:32, 247F

01/23 16:33, , 248F
01/23 16:33, 248F

01/23 16:33, , 249F
01/23 16:33, 249F

01/23 16:35, , 250F
01/23 16:35, 250F

01/23 16:35, , 251F
01/23 16:35, 251F

01/23 16:36, , 252F
01/23 16:36, 252F

01/23 16:36, , 253F
01/23 16:36, 253F

01/23 16:38, , 254F
01/23 16:38, 254F

01/23 16:38, , 255F
01/23 16:38, 255F

01/23 16:39, , 256F
01/23 16:39, 256F

01/23 16:39, , 257F
01/23 16:39, 257F
文章代碼(AID): #16scMZNP (WarCraft)