Bạn đã thêm ability Select Hero chưa???
[B]Horrify[/B]
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Horrify
Actions
Set Fearer[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
For each (Integer FearLevel) from 1 to ((Level of Horrify for (Triggering unit)) + 1), do (Actions)
Loop - Actions
Set FearUnit[FearLevel] = (Random unit from (Units within 512.00 of (Position of (Triggering unit)) matching (((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Level of Invulnerable (Neutral) for (Matching unit)) Equal to 0) and (((Matching unit) is magic immune) Equal to False) and ((Matching unit) is in FearUnits[(Player Number of (Owner of (Triggering unit))) Equal to False)
Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
Unit - Add Fear Fake buff (Neutral Hostile) to (Last created unit)
Unit - Order (Last created unit) to Undead Banshee - Curse FearUnit[FearLevel]
Unit Group - Add FearUnit[FearLevel] to FearUnits[(Player number of (Owner of (Triggering unit)))]
Selection - Remove FearUnit[FearLevel] from selection for (Owner of FearUnit[FearLevel])
Unit - Order FearUnit[FearLevel] to Move To ((Position of FearUnit[FearLevel]) offset by 650.00 towards (Random angle) degrees)
Trigger - Add to Fear Dispel <gen> the event (Unit - FearUnit[FearLevel] Takes damage)
[B]Fear[/B]
Events
Time - Every 0.90 seconds of game time
Conditions
Actions
For each (Integer Fear) from 1 to 10, do (Actions)
Loop - Actions
Unit Group - Pick every unit in FearUnits[Fear] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Fear ) Equal to True
Then - Actions
Unit - Order (Picked unit) to Move To ((Position of (Picked unit)) offset by 650.00 towards (Random angle) degrees)
Else - Actions
Unit Group - Remove (Picked unit) from FearUnits[Fear]
Unit - Order (Picked unit) to Stop
[B]Fear Dispel[/B]
Events
Conditions
((Triggering unit) has buff Fear ) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Damage taken) Greater than or equal to 1.00
Then - Actions
Unit - Remove Fear buff from (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
Anti Selection
Events
Player - Player 1 (Red) Selects a unit
Player - Player 2 (Blue) Selects a unit
Player - Player 3 (Teal) Selects a unit
Player - Player 4 (Purple) Selects a unit
Player - Player 5 (Yellow) Selects a unit
Player - Player 6 (Orange) Selects a unit
Player - Player 7 (Green) Selects a unit
Player - Player 8 (Pink) Selects a unit
Player - Player 9 (Gray) Selects a unit
Player - Player 10 (Light Blue) Selects a unit
Player - Player 12 (Brown) Selects a unit
Conditions
((Triggering unit) has buff Fear ) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to (Triggering player)
Then - Actions
Selection - Clear selection for (Triggering player)
Else - Actions
23213123123123123213123123123Ông Tom có biết cách nào để chạy file MIDI trong map không????
chuyển màu thì dùng lệnh này
P/s: nói từ "cha nội" hơi bị điên đó , muốn người ta giúp thì đừng nói mấy cái từ ngữ đóMã:Unit - Change color of (Casting unit) to Brown![]()