- Joined
- Jun 2, 2009
- Messages
- 1,233
Edit: It seems i have solved this one. Check the bottom post for leak.
Hello everyone. It has been a long time to asking help from hive but i feel hopeless. I have a risk map and after i change capture circle system, game is freezing after few minutes and still i haven't found the source. Here is my code.
This trigger adds present units into the CemberGroup. Because game tries to pick and move unit into the circle but other trigger prevents it and it was causing crash.
And this trigger prevents units moving out the circle
I will be grateful if you can find what causes this one
Hello everyone. It has been a long time to asking help from hive but i feel hopeless. I have a risk map and after i change capture circle system, game is freezing after few minutes and still i haven't found the source. Here is my code.
-
MoveKillingUnit
-
Events
-
Unit - A unit owned by Player 1 (Red) Dies
-
Unit - A unit owned by Player 2 (Blue) Dies
-
Unit - A unit owned by Player 3 (Teal) Dies
-
Unit - A unit owned by Player 4 (Purple) Dies
-
Unit - A unit owned by Player 5 (Yellow) Dies
-
Unit - A unit owned by Player 6 (Orange) Dies
-
Unit - A unit owned by Player 7 (Green) Dies
-
Unit - A unit owned by Player 8 (Pink) Dies
-
Unit - A unit owned by Player 9 (Gray) Dies
-
Unit - A unit owned by Player 10 (Light Blue) Dies
-
Unit - A unit owned by Player 11 (Dark Green) Dies
-
Unit - A unit owned by Player 12 (Brown) Dies
-
-
Conditions
-
Actions
-
Trigger - Run ordu guc cikar <gen> (checking conditions)
-
Unit - Change ownership of (Triggering unit) to Neutral Victim and Retain color
-
-------- Determine which unit is going to capture the point circle --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Unit-type of (Killing unit)) is An Ancient) Equal to True
-
(Unit-type of (Killing unit)) Not equal to Sniper // BARRACKS UNIT
-
-
Then - Actions
-
-------- Killing unit is an infantry,NOT SNIPER --------
-
-------- It can capture --------
-
Set CemberCaptureNearestUnit = (Killing unit)
-
-
Else - Actions
-
-------- Killing unit is NOT an infantry --------
-
-------- Find an infantry closest to it --------
-
Unit Group - Pick every unit in (Units within 600.00 of (Position of (Killing unit))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is alive) Equal to True
-
((Picked unit) belongs to an ally of (Owner of (Killing unit))) Equal to True
-
((Unit-type of (Picked unit)) is An Ancient) Equal to True
-
(Unit-type of (Picked unit)) Not equal to Sniper // BARRACKS UNIT
-
((Picked unit) is in CemberGroup) Equal to False
-
-
Then - Actions
-
Set CemberCaptureNearestUnit = (Picked unit)
-
-
Else - Actions
-
-
-
-
-
-
-------- greenland --------
-
If (((North Greenland <gen> contains (Triggering unit)) Equal to True) and ((((Units in North Greenland <gen> owned by (Owner of Barracks 0154 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of North Greenland <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Central Greenland <gen> contains (Triggering unit)) Equal to True) and ((((Units in Central Greenland <gen> owned by (Owner of Barracks 0166 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Central Greenland <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((East Greenland <gen> contains (Triggering unit)) Equal to True) and ((((Units in East Greenland <gen> owned by (Owner of Barracks 0165 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of East Greenland <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((South Greenland <gen> contains (Triggering unit)) Equal to True) and ((((Units in South Greenland <gen> owned by (Owner of Barracks 0167 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of South Greenland <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((North East Greenland <gen> contains (Triggering unit)) Equal to True) and ((((Units in North East Greenland <gen> owned by (Owner of Barracks 0182 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of North East Greenland <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- iceland --------
-
If (((East Iceland <gen> contains (Triggering unit)) Equal to True) and ((((Units in East Iceland <gen> owned by (Owner of Barracks 0172 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of East Iceland <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Central Iceland <gen> contains (Triggering unit)) Equal to True) and ((((Units in Central Iceland <gen> owned by (Owner of Barracks 0171 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Central Iceland <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((North Iceland <gen> contains (Triggering unit)) Equal to True) and ((((Units in North Iceland <gen> owned by (Owner of Barracks 0169 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of North Iceland <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((South Iceland <gen> contains (Triggering unit)) Equal to True) and ((((Units in South Iceland <gen> owned by (Owner of Barracks 0170 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of South Iceland <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Southwest Iceland <gen> contains (Triggering unit)) Equal to True) and ((((Units in Southwest Iceland <gen> owned by (Owner of Barracks 0168 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Southwest Iceland <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((West Iceland <gen> contains (Triggering unit)) Equal to True) and ((((Units in West Iceland <gen> owned by (Owner of Barracks 0173 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of West Iceland <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- 3 --------
-
If (((Bergen <gen> contains (Triggering unit)) Equal to True) and ((((Units in Bergen <gen> owned by (Owner of Barracks 0101 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Bergen <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Oslo <gen> contains (Triggering unit)) Equal to True) and ((((Units in Oslo <gen> owned by (Owner of Barracks 0099 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Oslo <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Trondheim <gen> contains (Triggering unit)) Equal to True) and ((((Units in Trondheim <gen> owned by (Owner of Barracks 0098 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Trondheim <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Lulea <gen> contains (Triggering unit)) Equal to True) and ((((Units in Lulea <gen> owned by (Owner of Barracks 0096 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Lulea <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Oulu <gen> contains (Triggering unit)) Equal to True) and ((((Units in Oulu <gen> owned by (Owner of Barracks 0097 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Oulu <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Helsinki <gen> contains (Triggering unit)) Equal to True) and ((((Units in Helsinki <gen> owned by (Owner of Barracks 0095 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Helsinki <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- russia --------
-
If (((Archangelsk <gen> contains (Triggering unit)) Equal to True) and ((((Units in Archangelsk <gen> owned by (Owner of Barracks 0094 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Archangelsk <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Moskou <gen> contains (Triggering unit)) Equal to True) and ((((Units in Moskou <gen> owned by (Owner of Barracks 0090 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Moskou <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Kotlas <gen> contains (Triggering unit)) Equal to True) and ((((Units in Kotlas <gen> owned by (Owner of Barracks 0093 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Kotlas <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((St Petersburg <gen> contains (Triggering unit)) Equal to True) and ((((Units in St Petersburg <gen> owned by (Owner of Barracks 0092 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of St Petersburg <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Riga <gen> contains (Triggering unit)) Equal to True) and ((((Units in Riga <gen> owned by (Owner of Barracks 0091 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Riga <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Toela <gen> contains (Triggering unit)) Equal to True) and ((((Units in Toela <gen> owned by (Owner of Barracks 0089 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Toela <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Minsk <gen> contains (Triggering unit)) Equal to True) and ((((Units in Minsk <gen> owned by (Owner of Barracks 0088 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Minsk <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Charkiw <gen> contains (Triggering unit)) Equal to True) and ((((Units in Charkiw <gen> owned by (Owner of Barracks 0086 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Charkiw <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Wolgagrad <gen> contains (Triggering unit)) Equal to True) and ((((Units in Wolgagrad <gen> owned by (Owner of Barracks 0085 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Wolgagrad <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- turkey --------
-
If (((Athene <gen> contains (Triggering unit)) Equal to True) and ((((Units in Athene <gen> owned by (Owner of Barracks 0081 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Athene <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Istanbul <gen> contains (Triggering unit)) Equal to True) and ((((Units in Istanbul <gen> owned by (Owner of Barracks 0082 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Istanbul <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Tbilisi <gen> contains (Triggering unit)) Equal to True) and ((((Units in Tbilisi <gen> owned by (Owner of Barracks 0084 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Tbilisi <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Aleppo <gen> contains (Triggering unit)) Equal to True) and ((((Units in Aleppo <gen> owned by (Owner of Barracks 0083 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Aleppo <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- england --------
-
If (((Dublin <gen> contains (Triggering unit)) Equal to True) and ((((Units in Dublin <gen> owned by (Owner of Barracks 0052 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Dublin <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Glasgow <gen> contains (Triggering unit)) Equal to True) and ((((Units in Glasgow <gen> owned by (Owner of Barracks 0053 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Glasgow <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Leeds <gen> contains (Triggering unit)) Equal to True) and ((((Units in Leeds <gen> owned by (Owner of Barracks 0054 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Leeds <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Southampton <gen> contains (Triggering unit)) Equal to True) and ((((Units in Southampton <gen> owned by (Owner of Barracks 0055 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Southampton <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((London <gen> contains (Triggering unit)) Equal to True) and ((((Units in London <gen> owned by (Owner of Barracks 0056 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of London <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- france --------
-
If (((Brussel <gen> contains (Triggering unit)) Equal to True) and ((((Units in Brussel <gen> owned by (Owner of Barracks 0057 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Brussel <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Brest <gen> contains (Triggering unit)) Equal to True) and ((((Units in Brest <gen> owned by (Owner of Barracks 0058 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Brest <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Bordeaux <gen> contains (Triggering unit)) Equal to True) and ((((Units in Bordeaux <gen> owned by (Owner of Barracks 0059 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Bordeaux <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Dijon <gen> contains (Triggering unit)) Equal to True) and ((((Units in Dijon <gen> owned by (Owner of Barracks 0060 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Dijon <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Marseille <gen> contains (Triggering unit)) Equal to True) and ((((Units in Marseille <gen> owned by (Owner of Barracks 0061 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Marseille <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- spain --------
-
If (((Zaragoza <gen> contains (Triggering unit)) Equal to True) and ((((Units in Zaragoza <gen> owned by (Owner of Barracks 0062 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Zaragoza <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Malaga <gen> contains (Triggering unit)) Equal to True) and ((((Units in Malaga <gen> owned by (Owner of Barracks 0063 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Malaga <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((La Coruna <gen> contains (Triggering unit)) Equal to True) and ((((Units in La Coruna <gen> owned by (Owner of Barracks 0065 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of La Coruna <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Lissabon <gen> contains (Triggering unit)) Equal to True) and ((((Units in Lissabon <gen> owned by (Owner of Barracks 0064 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Lissabon <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- portugal --------
-
If (((North Portugal <gen> contains (Triggering unit)) Equal to True) and ((((Units in North Portugal <gen> owned by (Owner of Barracks 0264 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of North Portugal <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((East Portugal <gen> contains (Triggering unit)) Equal to True) and ((((Units in East Portugal <gen> owned by (Owner of Barracks 0263 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of East Portugal <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((South Portugal <gen> contains (Triggering unit)) Equal to True) and ((((Units in South Portugal <gen> owned by (Owner of Barracks 0262 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of South Portugal <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((West Portugal <gen> contains (Triggering unit)) Equal to True) and ((((Units in West Portugal <gen> owned by (Owner of Barracks 0261 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of West Portugal <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- europe --------
-
If (((Amsterdam <gen> contains (Triggering unit)) Equal to True) and ((((Units in Amsterdam <gen> owned by (Owner of Barracks 0076 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Amsterdam <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Kopenhagen <gen> contains (Triggering unit)) Equal to True) and ((((Units in Kopenhagen <gen> owned by (Owner of Barracks 0102 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Kopenhagen <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Bern <gen> contains (Triggering unit)) Equal to True) and ((((Units in Bern <gen> owned by (Owner of Barracks 0074 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Bern <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Frankfurt <gen> contains (Triggering unit)) Equal to True) and ((((Units in Frankfurt <gen> owned by (Owner of Barracks 0075 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Frankfurt <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Boedapest <gen> contains (Triggering unit)) Equal to True) and ((((Units in Boedapest <gen> owned by (Owner of Barracks 0078 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Boedapest <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Warschau <gen> contains (Triggering unit)) Equal to True) and ((((Units in Warschau <gen> owned by (Owner of Barracks 0087 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Warschau <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Sarajevo <gen> contains (Triggering unit)) Equal to True) and ((((Units in Sarajevo <gen> owned by (Owner of Barracks 0079 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Sarajevo <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Triest <gen> contains (Triggering unit)) Equal to True) and ((((Units in Triest <gen> owned by (Owner of Barracks 0073 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Triest <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Boekarest <gen> contains (Triggering unit)) Equal to True) and ((((Units in Boekarest <gen> owned by (Owner of Barracks 0080 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Boekarest <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- italy --------
-
If (((Milaan <gen> contains (Triggering unit)) Equal to True) and ((((Units in Milaan <gen> owned by (Owner of Barracks 0072 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Milaan <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Rome <gen> contains (Triggering unit)) Equal to True) and ((((Units in Rome <gen> owned by (Owner of Barracks 0071 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Rome <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Napels <gen> contains (Triggering unit)) Equal to True) and ((((Units in Napels <gen> owned by (Owner of Barracks 0070 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Napels <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((East New Italy <gen> contains (Triggering unit)) Equal to True) and ((((Units in East New Italy <gen> owned by (Owner of Barracks 0257 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of East New Italy <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Palermo <gen> contains (Triggering unit)) Equal to True) and ((((Units in Palermo <gen> owned by (Owner of Barracks 0069 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Palermo <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((West New Italy <gen> contains (Triggering unit)) Equal to True) and ((((Units in West New Italy <gen> owned by (Owner of Barracks 0260 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of West New Italy <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((South New Italy <gen> contains (Triggering unit)) Equal to True) and ((((Units in South New Italy <gen> owned by (Owner of Barracks 0258 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of South New Italy <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Tetounan <gen> contains (Triggering unit)) Equal to True) and ((((Units in Tetounan <gen> owned by (Owner of Barracks 0259 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Tetounan <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- east africa --------
-
If (((Port Said <gen> contains (Triggering unit)) Equal to True) and ((((Units in Port Said <gen> owned by (Owner of Barracks 0174 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Port Said <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Baltim <gen> contains (Triggering unit)) Equal to True) and ((((Units in Baltim <gen> owned by (Owner of Barracks 0251 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Baltim <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Janaklis <gen> contains (Triggering unit)) Equal to True) and ((((Units in Janaklis <gen> owned by (Owner of Barracks 0292 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Janaklis <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Alexandria <gen> contains (Triggering unit)) Equal to True) and ((((Units in Alexandria <gen> owned by (Owner of Barracks 0175 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Alexandria <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Nasr <gen> contains (Triggering unit)) Equal to True) and ((((Units in Nasr <gen> owned by (Owner of Barracks 0295 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Alexandria <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((As Saidah <gen> contains (Triggering unit)) Equal to True) and ((((Units in As Saidah <gen> owned by (Owner of Barracks 0249 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of As Saidah <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Abu Talatt <gen> contains (Triggering unit)) Equal to True) and ((((Units in Abu Talatt <gen> owned by (Owner of Barracks 0250 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Abu Talatt <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- north africa --------
-
If (((Khoms <gen> contains (Triggering unit)) Equal to True) and ((((Units in Khoms <gen> owned by (Owner of Barracks 0253 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Khoms <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Zliten <gen> contains (Triggering unit)) Equal to True) and ((((Units in Zliten <gen> owned by (Owner of Barracks 0252 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Zliten <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Bani Waled <gen> contains (Triggering unit)) Equal to True) and ((((Units in Bani Waled <gen> owned by (Owner of Barracks 0254 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Bani Waled <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Msallata <gen> contains (Triggering unit)) Equal to True) and ((((Units in Msallata <gen> owned by (Owner of Barracks 0255 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Msallata <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Tininai <gen> contains (Triggering unit)) Equal to True) and ((((Units in Tininai <gen> owned by (Owner of Barracks 0298 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Tininai <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Tripoli <gen> contains (Triggering unit)) Equal to True) and ((((Units in Tripoli <gen> owned by (Owner of Barracks 0256 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Tripoli <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Nasmah <gen> contains (Triggering unit)) Equal to True) and ((((Units in Nasmah <gen> owned by (Owner of Barracks 0310 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Nasmah <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Mizdah <gen> contains (Triggering unit)) Equal to True) and ((((Units in Mizdah <gen> owned by (Owner of Barracks 0307 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Mizdah <gen>), facing Default building facing degrees) else do (Do nothing)
-
-------- west africa --------
-
If (((Nador <gen> contains (Triggering unit)) Equal to True) and ((((Units in Nador <gen> owned by (Owner of Barracks 0068 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Nador <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Taza <gen> contains (Triggering unit)) Equal to True) and ((((Units in Taza <gen> owned by (Owner of Barracks 0067 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Taza <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Bani Walid <gen> contains (Triggering unit)) Equal to True) and ((((Units in Bani Walid <gen> owned by (Owner of Barracks 0189 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Bani Walid <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Tangier <gen> contains (Triggering unit)) Equal to True) and ((((Units in Tangier <gen> owned by (Owner of Barracks 0066 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Tangier <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Larache <gen> contains (Triggering unit)) Equal to True) and ((((Units in Larache <gen> owned by (Owner of Barracks 0186 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Larache <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Dlalha <gen> contains (Triggering unit)) Equal to True) and ((((Units in Dlalha <gen> owned by (Owner of Barracks 0301 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Dlalha <gen>), facing Default building facing degrees) else do (Do nothing)
-
If (((Lemnassera <gen> contains (Triggering unit)) Equal to True) and ((((Units in Lemnassera <gen> owned by (Owner of Barracks 0304 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Tower))) then do (Unit - Move CemberCaptureNearestUnit instantly to (Center of Lemnassera <gen>), facing Default building facing degrees) else do (Do nothing)
-
-
This trigger adds present units into the CemberGroup. Because game tries to pick and move unit into the circle but other trigger prevents it and it was causing crash.
-
U Group ekle
-
Events
-
Time - Elapsed game time is 0.35 seconds
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is An Ancient) Equal to True)) and do (Actions)
-
Loop - Actions
-
Unit Group - Add (Picked unit) to CemberGroup
-
-
-
-
And this trigger prevents units moving out the circle
-
Leave All
-
Events
-
Conditions
-
Actions
-
For each (Integer B) from 1 to TOTAL_BARRACKS_COUNT, do (Actions)
-
Loop - Actions
-
Custom script: if IsPointInRegion(GetTriggeringRegion(), GetRectCenterX(udg_COPName[bj_forLoopBIndex]), GetRectCenterY(udg_COPName[bj_forLoopBIndex])) then
-
Set TempRegion = COPName[(Integer B)]
-
Custom script: endif
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units in TempRegion matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True)))) Less than or equal to 0
-
((Unit-type of (Leaving unit)) is An Ancient) Equal to True
-
((Unit-type of (Leaving unit)) is A Hero) Equal to False
-
-
Then - Actions
-
Unit - Move (Triggering unit) instantly to (Center of TempRegion)
-
-
-
-
-
Change owner
-
Events
-
Time - Every 0.33 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to TOTAL_BARRACKS_COUNT, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Units in COPName[(Integer A)] matching (((Owner of (Matching unit)) Equal to (Owner of Barracks[(Integer A)])) and ((((Matching unit) is alive) Equal to True) and (((Unit-type of (Matching unit)) Not equal to Command Point) and ((Unit-type of (Matching unit)) Equal to True
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units in COPName[(Integer A)] matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) is An Ancient) Equal to True)))) Greater than 0
-
-
Then - Actions
-
Unit Group - Pick every unit in (Random 1 units from (Units in COPName[(Integer A)] matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) is An Ancient) Equal to True)))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Player number of (Picked player)) Less than 13
-
-
Then - Actions
-
Unit - Change ownership of Towers[(Integer A)] to (Owner of (Picked unit)) and Change color
-
Unit - Change ownership of Barracks[(Integer A)] to (Owner of (Picked unit)) and Change color
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
I will be grateful if you can find what causes this one
Last edited: