DarkKing2828
Youtube Master Race
- 20/3/09
- 69
- 0
Theo như mình nghĩ thì cái dòng Priority for Spell Steal có nghĩa là ưu thế của Spell Steal ( cái Vampiric Aura là một dạng spell steal thì phải ) 



Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.


vì thế nên mới nhờ mọi người làm giúp :P 
. Chả ai rảnh rỗi ngồi hướng dẫn cho bạn từng nấy vấn đề đâu, nhất là bây giờ còn đang là kỳ thi. Phải tự tìm hiểu, tự làm, chỗ nào thắc mắc thì hẵng hỏi chứ (hoặc là bây giờ dùng chức năng tìm kiếm search trên 4rum. Chả thiếu đâu, cái vấn đề đấy thì hỏi đi hỏi lại tới chục lần chả ít)
.
Ko sinh ra creep
Các bác giúp vụ kiểm tra xác cái, còn mỗi vụ xác..
Yêu
:-*(Number of units in (Units in (Playable map area))) Equal to 0
((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True



Revive Creeps
Events
Unit - A unit Dies
Conditions
Acticons
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in (Playable map area))) Equal to 0
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to False
Then - Actions
Phần này cho tạo units, thế thôi.
Else - Actions
Else - Actions
Thì Else- action để DO NOTHING hảThen - Actions
Phần này cho tạo units, thế thôi.
Else - Actions
Else - Actions


P/s : À có vấn đề này nữa , tớ có skill shockwave, vậy tớ muốn khi hero cast skill đó, tạo ra 3 shockwave bắn 3 hướng khác nhau (tuy khác nhau nhưng nó cách nhau 1 chút thôi) thì làm sao ?
Tạo 1 trigger như sau:
Mã:Revive Creeps Events Unit - A unit Dies Conditions Acticons Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Number of units in (Units in (Playable map area))) Equal to 0 Then - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Picked unit) is alive) Equal to False Then - Actions Phần này cho tạo units, thế thôi. Else - Actions Else - Actions
thử đi rồi biết



Revive Creeps
Events
Unit - A unit Dies
Conditions
Acticons
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is alive) Equal to True)) and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to Groups
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Groups) Equal to 0
Then - Actions
Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees //Phần này thích làm gì thì làm.
Else - Actions
) thì sẽ thực hiện Then - Acticons. Else - Acticons thì kệ nó, thêm dòng Do Nothing vào chỉ tổ thêm nặng map chứ chẳng đc cái gì (kô làm gì cả = kô có gì cả
).
Nhìn cho pro chăng ? 


Đây đây, sửa lại 1 tý, làm theo kiểu của shark vẫn chưa ổn lắm đâu (cái đó chỉ là revive creeps đã dies chứ kô phải tạo 1 loạt units mới, như vậy là nó sẽ tạo units khi có thằng decays):
Mã:Revive Creeps Events Unit - A unit Dies Conditions Acticons Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is alive) Equal to True)) and do (Actions) Loop - Actions Unit Group - Add (Picked unit) to Groups If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Number of units in Groups) Equal to 0 Then - Actions Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees //Phần này thích làm gì thì làm. Else - Actions
Giải thích: Ở đây khi một unit dies thì sẽ thực hiện Pick tất cả unit trong region A và điều kiện là unit pick đó là unit còn sống. If ở dưới để khi kiểm tra nếu tất cả unit còn sống trong region 1 = 0 (tức là đã chết hết) thì sẽ thực hiện Then - Acticons. Else - Acticons thì kệ nó, thêm dòng Do Nothing vào chỉ tổ thêm nặng map chứ chẳng đc cái gì (kô làm gì cả = kô có gì cả
).
..
