精華區beta WarCraft 關於我們 聯絡資訊
我又來啦~> 這次的技能是個看起來很詭異的技能 目前還沒有很相像的 硬要說的話,就是像大友宗麟的龍卷風吧 簡單來說,施展以後會在目標點創造一個巨大的門 然後把範圍內的敵軍通通綁住,並拖向中心 就算是後來才進入範圍的敵軍也一樣會抓 被拖到中心以後部隊就會消失,並且每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
akrik:真帥氣!! 59.127.201.163 09/02 15:33
sky80354:好帥XD 58.99.86.27 09/02 15:35
demonazx:帥! 140.134.227.40 09/02 15:35
cycu0315:推 61.217.168.238 09/02 15:36
MoonSkyFish:push 140.120.224.23 09/02 15:36
kevin31723:推推 我要無限斬擊~~ 140.120.226.73 09/02 15:50
BSpowerx:好長0.0123.195.135.163 09/02 15:56
RagFair:OS黑水大絕? 59.113.184.245 09/02 16:06
Simonfenix:技能名稱好像卡到了耶 219.81.226.85 09/02 16:07
Simonfenix:你上一招也叫惡夢魔王= = 219.81.226.85 09/02 16:08
驚,我居然忘記改標題 ※ 編輯: wix3000 來自: 61.62.109.88 (09/02 16:10)
gloomyangel:門的另一端 世界的真實 59.116.180.130 09/02 16:18
MrCrowley:感覺很不錯 61.230.84.122 09/02 17:00
gain:好文,好棒 211.74.255.62 09/02 17:04
wxes50608:好炫! 話說影片會閃一下閃一下,這? 218.174.206.90 09/02 17:21
A1pha:應該是作者電腦的問題吧XD 124.8.29.205 09/02 17:39
jhunfong:好帥 218.162.193.77 09/02 17:45
bigfoot:cool~ 218.211.52.88 09/02 18:15
snsn:強者 推推220.142.138.239 09/02 19:17
jeff7897:好神 203.70.6.30 09/02 19:36
kimon:好帥!! 220.133.184.21 09/02 20:08
peterlei: 門的另一端 世界的真實 ..XD 220.132.4.113 09/02 20:12
elek:太帥了 orz 140.112.251.93 09/02 20:29
larchrono:( ′▽`)-o囯囚圃 220.133.212.50 09/02 20:46
helloh:吐出來的英雄沒死可以開始練金術.... 122.122.65.5 09/02 21:42
xrdx:練金術士被抓進去會變強嗎XD 123.110.225.24 09/02 22:44
bc026057:推!!!!!!!!!!! 219.91.93.191 09/02 22:48
allen2899:GOOD!! 220.131.95.193 09/02 23:38
allen2899:選錯了XD 220.131.95.193 09/02 23:39
harakiri405:so nice 125.229.202.13 09/03 02:29
lafel: 140.114.212.2 09/04 03:04
windsinger:推一下,另外要催Final HIt阿阿阿,我要拿名刀無限斬XDD 09/22 11:30
11/16 修正被綁住的單位吸進門之前技能就結束,會造成該單位碰撞保持關閉的BUG ※ 編輯: wix3000 來自: 122.125.164.137 (11/16 19:14)