Tom_Kazansky
<b><font color="RoyalBlue"><font face="Lucida Cons
- 28/12/06
- 3,454
- 462
- Thread starter
- #761
Ann Tom cho em hỏi
group đã destroy
point đã destroy
special effect cũng thế? Sao lại leak?
đọc cho kỹ vào
3/ vì lệnh unhide đặt trong "Else" nếu IF đúng thì THEN sẽ chạy và IF của cái ELSE kia thì luôn luôn đúng, số unit trong group lớn hơn hoặc bằng 0, làm sao số unit trong group âm được mà đòi unhide
4/ trong Loop - Actions của Unit Group - Pick... KHÔNG ĐƯỢC dùng wait, nếu có wait thì cái loop đó sẽ bị dừng ngay lập tức => chỉ có một unit bị (thậm chí ở đây, special effect còn không được destroy)
If - Conditions
(đúng) chạy Then - Actions
(sai) chạy Else - Actions
xem:
Mã:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
[COLOR="#FF0000"]If - Conditions
[B](Number of units in Temp_Group2) Greater than or equal to 0[/B]
Then - Actions[/COLOR]
Unit Group - Pick every unit in Temp_Group2 and do (Actions)
Loop - Actions
[COLOR="#FF0000"]Else - Actions[/COLOR]
EGUI Leak - Destroy Temp_Group
Unit - Unpause Caster
Unit - Make Caster Vulnerable
Unit - Unhide Caster
EGUI Leak - Remove Temp_Loc
EGUI Leak - Destroy Temp_Group2
thấy in đỏ chưa?
thấy in đậm chưa?
in đậm ở đây luôn đúng, Then - Actions lúc nào cũng chạy, không chạy Else thì sao mà "remove leak" được?
Mã:
Unit Group - Pick every unit in Temp_Group2 and do (Actions)
Loop - Actions
Unit - Create 1 Dummy Omniattack for (Owner of Caster) at (Position of (Picked unit)) facing (Position of (Picked unit))
Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 65.00% transparency
Animation - Play (Last created unit)'s attack animation
Special Effect - Create a special effect attached to the chest of (Last created unit) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
[COLOR="#0000FF"]Unit - Cause (Last created unit) to damage (Picked unit), dealing 250.00 damage of attack type Spells and damage type Normal[/COLOR]
[COLOR="#FF0000"][B]Wait 0.65 seconds[/B][/COLOR]
[COLOR="#FF0000"]Special Effect - Destroy (Last created special effect)[/COLOR]
Unit Group - Add (Last created unit) to Temp_Group3
Unit Group - Pick every unit in Temp_Group3 and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
tạo effect, wait, destroy effect
như đã nói, wait không được dùng, dùng là dừng cho nên chỉ còn: tạo effect => leak chưa?


với lại map xài GUI cho dù deprotect ra cũng thấy hết các trigger một cách dễ dàng hơn là jass

Mà phần 1 thì làm kiểu gì vậy