Mình chẳng biết làm skill đẹp. Để làm cái tý ném lên thử xem

.
---------- Post added at 23:32 ---------- Previous post was at 22:32 ----------
Đây là một skill rất đơn giản nhưng khi sử dụng không phải là dễ, đặc biệt trong các pha combat thì do delay của skill cao và cả tính may rủi nên rất khó phán đoán và kẻ thù có thể tránh nếu khôn khéo.
Khi sử dụng skill sẽ taọ ra một lượng chim bay trên đầu quân địch, chúng sẽ mất 3s để xác định kẻ thù và sau đó lập tức tấn công gây damage và stun. Điểm nguy hiểm của skill là đối tượng được chọn random trong vùng cast. Nếu duy nhất có một kẻ địch toàn bộ skill sẽ đổ lên 1 đối tượng, lượng damage gây ra là rất lớn. Tuy nhiên nếu trong một vùng cast với đầy quân thù thì skill này trở thành khá vô dụng với lượng damage thấp và hiệu quả stun ngắn.
Đặc biệt hiệu quả nếu skill có thể dùng phối hợp với một skill hỗ trợ giữ kẻ thù như trói, stun, băng..v...v... khi đó thì...
[spoil]
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Hac Dieu
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tangthem Less than 500
Then - Actions
Set tangthem = (tangthem + 1)
Else - Actions
Set tangthem = 0
Set trieutap_loc = (Target point of ability being cast)
Set so_chim = (5 + ((Level of Hac Dieu for (Triggering unit)) x 5))
For each (Integer A) from 1 to (so_chim / 2), do (Actions)
Loop - Actions
Set point_goichim = (trieutap_loc offset by -100.00 towards ((Real((Integer A))) x 72.00) degrees)
Unit - Create 1 Chim Dummy for (Owner of (Triggering unit)) at point_goichim facing Default building facing degrees
Set point_goichim = (Random point in (Playable map area))
Unit - Order (Last created unit) to Move To point_goichim
Unit Group - Add (Last created unit) to group_chim[tangthem]
For each (Integer A) from 1 to so_chim, do (Actions)
Loop - Actions
Set point_goichim = (trieutap_loc offset by -200.00 towards ((Real((Integer A))) x 72.00) degrees)
Unit - Create 1 Chim Dummy for (Owner of (Triggering unit)) at point_goichim facing Default building facing degrees
Set point_goichim = (Random point in (Playable map area))
Unit - Order (Last created unit) to Move To point_goichim
Unit Group - Add (Last created unit) to group_chim[tangthem]
Wait 3.00 seconds
Unit Group - Pick every unit in (Units within 300.00 of trieutap_loc) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A structure) Equal to False
((Picked unit) is Magic Immune) Equal to False
((Picked unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True
((Picked unit) is alive) Equal to True
Then - Actions
Unit Group - Add (Picked unit) to unit_target_chim[tangthem]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(unit_target_chim[tangthem] is empty) Equal to False
Then - Actions
Unit Group - Pick every unit in group_chim[tangthem] and do (Actions)
Loop - Actions
Unit - Create 1 Dummy skill for (Owner of (Triggering unit)) at (Position of (Picked unit)) facing Default building facing degrees
Set random_target_chim = (Random unit from unit_target_chim[tangthem])
Unit - Order (Last created unit) to Neutral - Firebolt random_target_chim
Unit - Add a 0.20 second Generic expiration timer to (Picked unit)
Unit - Add a 0.20 second Generic expiration timer to (Last created unit)
Else - Actions
Game - Display to (Owner of (Triggering unit)), at offset (0.00, 0.00) the text: |cffff0000No Unit!|...
Unit Group - Remove all units from group_chim[tangthem]
Unit Group - Remove all units from unit_target_chim[tangthem]
Set random_target_chim = No unit
Custom script: call RemoveLocation (udg_trieutap_loc)
Custom script: call RemoveLocation (udg_point_goichim)
[/spoil]
http://www.mediafire.com/download.php?icwcugn6023x99r
Nhân tiện cho mình hỏi làm sao để trong game chỉ mua được một loại hero duy nhất như dota vậy? Nghĩa là không có 2 con giống nhau. Mình thử mọi cách mà 2 player vẫn mua cùng 1 hero được!