chu mi nga....
Cần các bác giúp làm 1 hero ability giống cái moonblade của Luna - DotA. Dùng F6 hoặc F4 thui nhá, tớ chưa có time học Jass với GUI.
MNinhf cần 1 cái hero skill y chang Moonblade của Luna thôi. Lên 4 level, max là nhảy qua 4 units (với thằng target chính nữa là 5).
Thì bác chơi DotA thấy đó, con Luna chưa cộng điểm cho skill thì đánh 1 target như các hero khác. Cộng rồi thì nó uýnh sẽ có thêm viên đạn nhảy qua con nữa...
Chỉnh cái attack type thid được, nhưng mà nó cố định xừ nó lại, ko úp đệt được nư DotA. Kia là lvl 1 bắn lan 2 con, lvl 2 bắn lan 3 con, v.v... Mình đang mò cái nỳ.

Moon Glaive
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Moon Glaive
Actions
Player - Set the current research level of Moon Glaives Upgrade for Hero to (Level of Moon Glaive for (Triggering unit)) for (Owner of (Triggering unit))
mọi ng cho thêm cái trigger hơi cùi này với: Khi hero chết, check xem có cầm item A không, nếu có thì xóa item A trên ng hero đó (Drop xong xóa cũng dc).
Untitled Trigger 001
Events
Unit - A unit Dies
Conditions
((Triggering unit) has an item of type[B] Item[/B]) Equal to True
Actions
Set Item = (Item carried by (Triggering unit) of type[B] Item[/B])
Item - Remove Item
mọi ng cho thêm cái trigger hơi cùi này với: Khi hero chết, check xem có cầm item A không, nếu có thì xóa item A trên ng hero đó (Drop xong xóa cũng dc).
+rep cho mình nàoMã:Untitled Trigger 001 Events Unit - A unit Dies Conditions ((Triggering unit) has an item of type[B] Item[/B]) Equal to True Actions Set Item = (Item carried by (Triggering unit) of type[B] Item[/B]) Item - Remove Item![]()
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item carried by (Dying unit) in slot (Integer A))) Equal to <item A>
Then - Actions
Item - Remove (Item carried by (Dying unit) in slot (Integer A))
Else - Actions
Do nothing
Thế trong Object có dòng drop item on death làm gì mà phải dùng trigger
- - - Updated - - -
Thế trong Object có dòng drop item on death làm gì mà phải dùng trigger

Mã:For each (Integer A) from 1 to 6, do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Item-type of (Item carried by (Dying unit) in slot (Integer A))) Equal to <item A> Then - Actions Item - Remove (Item carried by (Dying unit) in slot (Integer A)) Else - Actions Do nothing
Ông kia cần remove
quote bài mình làm cái gì vậy, sai gì sao? @@
Actions
Player Group - Add (Triggering player) to TempGroup
Game - Display to TempGroup the text: AAAAAAAAAAAAAAAAAAAAAAAAA
Player Group - Remove all players from TempGroup
...À thế à ra đọc lộn.
Thế làm đc thì làm dùm mình cái bất tử của layana và dazzle nha....
