- Joined
- May 20, 2009
- Messages
- 822
So, I have this trigger:
However, it is not MPI compatible. To make it such, I'd have to make a new trigger for each player. What makes this challenging to come up with a solution for is there's no way to find out what player is actually generating the buff, to my knowledge.
-
Sense Calc
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Set UnitsOnMap = (Units in (Playable map area))
-
Unit Group - Pick every unit in UnitsOnMap and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
((Picked unit) has buff Sense ) Equal to False
-
-
-
-
Then - Actions
-
Custom script: call DestroyGroup(udg_UnitsOnMap)
-
Custom script: call RemoveLocation(udg_UnitPositionP1)
-
Custom script: call DestroyGroup(udg_CreatedUnit)
-
-
Else - Actions
-
Set UnitPositionP1 = (Position of (Picked unit))
-
Unit - Create 1 Dummy Sense Unit for ArcherSightP1 at UnitPositionP1 facing UnitPositionP1
-
Set CreatedUnit = (Last created unit group)
-
Unit - Kill (Random unit from CreatedUnit)
-
Custom script: call DestroyGroup(udg_UnitsOnMap)
-
Custom script: call DestroyGroup(udg_CreatedUnit)
-
Custom script: call RemoveLocation(udg_UnitPositionP1)
-
-
-
-
-
-
However, it is not MPI compatible. To make it such, I'd have to make a new trigger for each player. What makes this challenging to come up with a solution for is there's no way to find out what player is actually generating the buff, to my knowledge.