??? SKill cho "Gà" hả..Có ngay

Sau đây là một skill phải gọi là cực kì đơn giản :
Blade Storm(tạm dịch là cơn bão...dao

)
Spell name : Blade Storm
MUI : No ngại làm lắm...Với lại nếu là newbie không lên dùng MUI làm gì dễ nản :(
GUI or Jass:GUI,tất nhiên,Newbie mà(E cũng chỉ mới học Jass thôi :( )
Biến sử dụng :
+Caster[Unit] : để gắn là Hero cast skill
+CasterPoint[Point]: Để gắn vị trí cast skil
Sau đây là Skill
Trigger 1
Mã:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Blade Storm
Actions
Set Caster = (Casting unit)
Set CasterPoint = (Position of Caster)
Set Int = 0
Animation - Change Caster's animation speed to 225.00% of its original speed
Trigger - Turn on BladeStormEffect <gen>
Trigger này cũng khá dễ hiểu thôi:
----
Unit - A unit Starts the effect of an ability : Một unit nòa đó bắt đầu hiệu ứng của 1 skill thì Trigger sẽ khiểm tra xem đó có đúng là skill
Blade strom không.Nếu đúng thì thực hiên Action :
Set Caster = (Casting unit) : Đặt Biến Caster là hero cast skill(hoặc là unit)
Set CasterPoint = (Position of Caster) : Đặt biến CasterPoint là vị trí của Hero cast skill.
Animation - Change Caster's animation speed to 225.00% of its original speed : chuyển tốc độ thực hiện hành đông lên 225%.
Trigger - Turn on BladeStormEffect <gen> : Dừn nói không biết
Trigger 2
Mã:
Events
Time - Every 0.05 seconds of game time
Actions
Set Int = (Int + 1)
Unit - Order Caster to Stop
Animation - Play Caster's attack animation
Special Effect - Create a special effect attached to the origin of Caster using Abilities\Spells\Other\Doom\DoomDeath.mdl
Special Effect - Destroy (Last created special effect)
Unit - Create 1 Caster for (Owner of Caster) at CasterPoint facing Default building facing degrees
Unit - Turn collision for (Last created unit) Off
Unit - Add Blade to (Last created unit)
Unit - Set level of Blade for (Last created unit) to (Level of Blade Storm for Caster)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (CasterPoint offset by 400.00 towards (Random real number between 1.00 and 360.00) degrees)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Int Greater than or equal to 60
Then - Actions
Trigger - Turn off (This trigger)
Animation - Change Caster's animation speed to 100.00% of its original speed
Custom script: call RemoveLocation(udg_CasterPoint)
Else - Actions
Tiếp theo là trigger 2 :
Time - Every 0.05 seconds of game time:cứ mỗi 0.5 giây thì nó lại làm các action trong trigger này
Unit - Order Caster to Stop
Animation - Play Caster's attack animation : lẹnh thứ nhất để cứ 0.5 giây thì Caster(Hero cast skill lại dừng lại) còn lệnh thứ 2 thì lại bắt Caster thực hiên hành động tấn đông(chỉ là hành động biểu diễn chứ không phải tấn công gây dame)...
Special Effect - Create a special effect attached to the origin of Caster using Abilities\Spells\Other\Doom\DoomDeath.mdl
Special Effect - Destroy (Last created special effect) : Cái này để creat effect ở hero(nhìn cho hoành) sau đó del đi luôn để không tốn ổ nhớ :)
Unit - Create 1 Caster for (Owner of Caster) at CasterPoint facing Default building facing degrees
Unit - Turn collision for (Last created unit) Off
Unit - Add Blade to (Last created unit)
Unit - Set level of Blade for (Last created unit) to (Level of Blade Storm for Caster)
Tạo 1 Dummy,cho mất khả năng va chạm của unit nit đó đi.Tiếp tục cho unit đó skill Blade(Thực chất là skill ShockWave đã đổi Missle và Icon).Đặt cho level của Blade của Dummy = với level Blade Storm của Caster.
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (CasterPoint offset by 400.00 towards (Random real number between 1.00 and 360.00) degrees)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit) : cho Dummy cast skill đó vào 1 điểm random xung quanh CasterPoint :) rồi cho nó 1 giây để sống trên trái đất này
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Int Greater than or equal to 60
Then - Actions
Trigger - Turn off (This trigger)
Animation - Change Caster's animation speed to 100.00% of its original speed
Custom script: call RemoveLocation(udg_CasterPoint)
Else - Actions
Lềnh if này dùng để kiểm tra khi biến Int > 60 thi tắt trigger này ,chuyển tốc đọ hành động về bt và remove cai Location CasterPoint để khỏi Leak.(Tôi chọn 60 vì bạn hãy nghĩ : trigger này cứ 0.05 giây thì hoạt động 1 lần-> lênh
Set Int = (Int + 1) lại đc lặp lại 1 lần trong 0.05 giây-> khi Int> 60 lần tức là lênh này đã được thực hiên 60 lần-> 6 x0.05 = 3 giây -> Trigger kéo dài 3 giây)
Trigger tuy đơn giản nhưng nhìn cũng hoành tá tràng :)..Nếu có ai lấy nó vào map thì nhớ đề tên người sản xuất nó là e nhe :MrTanh..Thank:*
Link download map :
http://www.mediafire.com/file/gnzwmutjkmj/Skill Map(Aura)-Blade Storm.w3x