@LeoNguyen: Leak cheaker xem bác
@darkman: Scenario > Forces Properties > Use Custom Force
Thanks nhưng tại sao lúc test thử mình lại có thể điều khiển unit của computer zậy?
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.
@LeoNguyen: Leak cheaker xem bác
@darkman: Scenario > Forces Properties > Use Custom Force

vào Scenario \ Map Size And Camera Bounds đánh dấu Modify Map Bounds (ở góc dưới bên trái) rồi chỉnh
hồi nào thế?
một unit khi chết, sau thời gian "decay" nó sẽ tự bị remove
với dummy lúc nào "Death Type" của nó lúc nào cũng phải có "Does not Decay", vì thế, chết xong nó sẽ bị remove luôn,
lấy đâu ra "trạng thái sống trong bộ nhớ"![]()

Vậy nếu addexpiretimer cho một hero thì hero đó có bị remove luôn hay vẫn tồnt ại dưới dạng reviveable
:( chưa thấy bao giờ, chắc tại animation hảdummy có model dùng add expire timer khi chết hắn vẫn văng máu tứ tung vậy

Cụ thể là:
Bug Blink
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Bug Blink
Actions
Set TempPoint = (Target point of ability being cast)
Wait 0.50 seconds
Unit - Move (Triggering unit) instantly to TempPoint
Custom script: call RemoveLocation( udg_TempPoint )
sau wait thì không còn Target point of ability being cast nữa, phải đặt vào biến trước khi wait
BlinkCast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Blink
Actions
Set BlinkCaster = (Triggering unit)
Set BlinkTarget = (Target point of ability being cast)
Countdown Timer - Start BlinkTimer as a One-shot timer that will expire in 0.00 seconds
BlinkAct
Events
Time - BlinkTimer expires
Conditions
Actions
Unit - Move BlinkCaster instantly to BlinkTarget
Custom script: call RemoveLocation( udg_BlinkTarget )
Envenomous Knives
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Envenomed Knives
Actions
Set KnivesCaster = (Casting unit)
Set KnivesCasterLoc = (Position of KnivesCaster)
Set KnivesLevel = (Level of Envenomed Knives for KnivesCaster)
If ((Level of Envenomed Knives for KnivesCaster) Equal to 1) then do (Set KnivesGroup = (Units within 300.00 of KnivesCasterLoc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of KnivesCaster)) Equal to True))))) else do (Do nothing)
If ((Level of Envenomed Knives for KnivesCaster) Equal to 2) then do (Set KnivesGroup = (Units within 350.00 of KnivesCasterLoc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of KnivesCaster)) Equal to True))))) else do (Do nothing)
If ((Level of Envenomed Knives for KnivesCaster) Equal to 3) then do (Set KnivesGroup = (Units within 400.00 of KnivesCasterLoc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of KnivesCaster)) Equal to True))))) else do (Do nothing)
If ((Level of Envenomed Knives for KnivesCaster) Equal to 4) then do (Set KnivesGroup = (Units within 500.00 of KnivesCasterLoc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of KnivesCaster)) Equal to True))))) else do (Do nothing)
Unit Group - Pick every unit in KnivesGroup and do (Actions)
Loop - Actions
Unit - Create 1 EnvenomedKnivesDummy for (Owner of KnivesCaster) at KnivesCasterLoc facing Default building facing degrees
Unit - Set level of Envenomed Knives (dummy) for (Last created unit) to KnivesLevel
Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Picked unit)
Unit - Add a 0.10 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_KnivesCasterLoc)
Custom script: call DestroyGroup(udg_KnivesGroup)
cho hỏi mình làm spell dưới đây có gì sai sót ko mà cast vào quái là lag như chưa bao h được lag :( .Mô tả : hero tung ra nhưng con dao độc vào những kẻ thù xung quanh , gây dam và slow.
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Integer A) (cái Integer A ko phải là Point vì nó chỉ mang tính ví dụ cho các bạn hiểu thôi) using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Special Effect - Destroy (Last created special effect)
cho hỏi mình làm spell dưới đây có gì sai sót ko mà cast vào quái là lag như chưa bao h được lag :( .Mô tả : hero tung ra nhưng con dao độc vào những kẻ thù xung quanh , gây dam và slow .
Mã:Envenomous Knives Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to Envenomed Knives Actions Set KnivesCaster = (Casting unit) Set KnivesCasterLoc = (Position of KnivesCaster) Set KnivesLevel = (Level of Envenomed Knives for KnivesCaster) If ((Level of Envenomed Knives for KnivesCaster) Equal to 1) then do (Set KnivesGroup = (Units within 300.00 of KnivesCasterLoc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of KnivesCaster)) Equal to True))))) else do (Do nothing) If ((Level of Envenomed Knives for KnivesCaster) Equal to 2) then do (Set KnivesGroup = (Units within 350.00 of KnivesCasterLoc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of KnivesCaster)) Equal to True))))) else do (Do nothing) If ((Level of Envenomed Knives for KnivesCaster) Equal to 3) then do (Set KnivesGroup = (Units within 400.00 of KnivesCasterLoc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of KnivesCaster)) Equal to True))))) else do (Do nothing) If ((Level of Envenomed Knives for KnivesCaster) Equal to 4) then do (Set KnivesGroup = (Units within 500.00 of KnivesCasterLoc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of KnivesCaster)) Equal to True))))) else do (Do nothing) Unit Group - Pick every unit in KnivesGroup and do (Actions) Loop - Actions Unit - Create 1 EnvenomedKnivesDummy for (Owner of KnivesCaster) at KnivesCasterLoc facing Default building facing degrees Unit - Set level of Envenomed Knives (dummy) for [B](Last created unit)[/B] to KnivesLevel Unit - Order [B](Last created unit)[/B] to Night Elf Warden - Shadow Strike [B](Picked unit)[/B] Unit - Add a 0.10 second Generic expiration timer to [B](Last created unit)[/B] Custom script: call RemoveLocation(udg_KnivesCasterLoc) Custom script: call DestroyGroup(udg_KnivesGroup)
Nhìn qua thì ko thấy gì sai cả, bạn up demo lên xem sao.
Tiện thể hỏi luôn câu này
Làm như vậy thì Trigger có destroy cả 10 cái effect ko hay chỉ 1 ?Mã:For each (Integer A) from 1 to 10, do (Actions) Loop - Actions Special Effect - Create a special effect at (Integer A) (cái Integer A ko phải là Point vì nó chỉ mang tính ví dụ cho các bạn hiểu thôi) using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl Special Effect - Destroy (Last created special effect)