I'm trying to make a capture point for my map. It's a circle of power with a region over it, I want any Hero to be able to stand in it and have a timer or a graph or bar or some form of graphic display indicate it's capture status, and have it so if any other Heroes of a different type enter the region, it either starts capturing for them, or if someone is in the region already, it stops their capturing.
Here is what I have so far:
EDIT: I added a bit but it still doesn't work properly:
Here is what I have so far:
-
Capture Point
-
Events
-
Unit - A unit enters Capture Point 1 <gen>
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering unit) is A Hero) Equal to True
-
(Number of units in (Units in Capture Point 1 <gen> matching (((Triggering unit) belongs to an enemy of Player 1 (Red)) Equal to True))) Equal to 0
-
-
Then - Actions
-
Countdown Timer - Start Capture_Timer as a One-shot timer that will expire in 8.00 seconds
-
Wait 8.00 seconds
-
Unit - Change ownership of Capture Point 0345 <gen> to Player 1 (Red) and Change color
-
-
Else - Actions
-
Do nothing
-
-
-
-
EDIT: I added a bit but it still doesn't work properly:
-
Capture Point
-
Events
-
Unit - A unit enters Capture Point 1 <gen>
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering unit) is A Hero) Equal to True
-
(Number of units in (Units in Capture Point 1 <gen> matching (((Triggering unit) belongs to an enemy of Player 1 (Red)) Equal to True))) Equal to 0
-
-
Then - Actions
-
Countdown Timer - Start Capture_Timer as a One-shot timer that will expire in 8.00 seconds
-
Wait 8.00 seconds
-
Unit - Change ownership of Capture Point 0345 <gen> to Player 1 (Red) and Change color
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Remaining time for Capture_Timer) Less than or equal to 7.59
-
(Owner of (Triggering unit)) Equal to (Random player from (All enemies of Player 1 (Red)))
-
-
Then - Actions
-
Countdown Timer - Pause Capture_Timer
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-
Last edited: