Hey guys.
I'm looking for an efficient way to make a bonus armor system.
My map is about attacking controllpoints.
When 1 team has less CP's than the other, the team gets + armor.
The problem is that my system is very slow. It checks the controllpoints and then adds a abilty to the HQ which will add the +armor.
Fhgiket = ability (Bonus armor)
HQT2 = all headquarters in team 2 that will get the ability
The biggest problem I'm having at the moment is to detect all units in team2 (Team2_PlayerGr is the var where i stored the players) i tried this trigger:
You know what's wrong with it?
I'm looking for an efficient way to make a bonus armor system.
My map is about attacking controllpoints.
When 1 team has less CP's than the other, the team gets + armor.
The problem is that my system is very slow. It checks the controllpoints and then adds a abilty to the HQ which will add the +armor.
-
Bonus Level 1
-
Ereignisse
-
Zeit - Every 0.50 seconds of game time
-
-
Bedingungen
-
Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
Bonus_Level Gleich 1.00
-
-
'THEN'-Aktionen
-
Spiel - Display to (All players) the text: bonus=1
-
Einheitengruppe - Pick every unit in HQT2 and do (Actions)
-
Schleifen - Aktionen
-
Einheit - Remove Fhigkeit from (Picked unit)
-
Spiel - Display to (All players) the text: REMOVED (T2)
-
-
-
Set Fhigkeit = Bonus [Level 1]
-
Spiel - Display to (All players) the text: SET BONUS1
-
Einheitengruppe - Pick every unit in (Units owned by (Random player from (All players matching (((Matching player) is in Team2_PlayerGr) Gleich True))) matching ((Owner of (Picked unit)) Gleich (Random player from (All players matching (((Matching player) is in Team2_PlayerGr) Gleich True))))) and do (Actions)
-
Schleifen - Aktionen
-
Spiel - Display to (All players) the text: Players picked
-
Einheit - Remove Alle buffs from (Picked unit)
-
Spiel - Display to (All players) the text: buffs removed
-
-
-
Einheitengruppe - Pick every unit in HQT2 and do (Actions)
-
Schleifen - Aktionen
-
Einheit - Add Fhigkeit to (Picked unit)
-
Spiel - Display to (All players) the text: ADDED (T2)
-
-
-
-
'ELSE'-Aktionen
-
-
-
Fhgiket = ability (Bonus armor)
HQT2 = all headquarters in team 2 that will get the ability
The biggest problem I'm having at the moment is to detect all units in team2 (Team2_PlayerGr is the var where i stored the players) i tried this trigger:
-
Einheitengruppe - Pick every unit in (Units owned by (Random player from (All players matching (((Matching player) is in Team2_PlayerGr) Gleich True))) matching ((Owner of (Picked unit)) Gleich (Random player from (All players matching (((Matching player) is in Team2_PlayerGr) Gleich True))))) and do (Actions)
-
Schleifen - Aktionen
-
Spiel - Display to (All players) the text: Players picked
-
Einheit - Remove Alle buffs from (Picked unit)
-
Spiel - Display to (All players) the text: buffs removed
-
-
You know what's wrong with it?