- Joined
- May 20, 2008
- Messages
- 433
Apparently there is something wrong when the variables "CapturePoint_Human/Alien" are set. While one should be set to 2 (because there are 2 'circle of power (medium)' owned by gray on the map), it gets set to 0. It worked until I added the unit group stuff. What went wrong?
PS: Those who are going to complain about the leaks, I'll fix them after this is fixed.
-
Income
-
Events
- Game - The in-game time of day becomes Equal to 0.00
- Game - The in-game time of day becomes Equal to 12.00
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Owner of (Picked unit)) Equal to Player 9 (Gray)) and ((Unit-type of (Picked unit)) Equal to Circle of Power (medium)))) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to Income_UnitGroup
-
Loop - Actions
- Set CapturePoints_Human = (Number of units in Income_UnitGroup)
- Unit Group - Remove all units from Income_UnitGroup
-
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Owner of (Picked unit)) Equal to Player 10 (Light Blue)) and ((Unit-type of (Picked unit)) Equal to Circle of Power (medium)))) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to Income_UnitGroup
-
Loop - Actions
- Set CapturePoints_Alien = (Number of units in Income_UnitGroup)
- Unit Group - Remove all units from Income_UnitGroup
- Set Income[0] = (CapturePoints_Human x 84)
- Set Income[1] = (CapturePoints_Alien x 86)
- Game - Display to (All players) for 15.00 seconds the text: />: Income Recieved
-
For each (Integer A) from 1 to 8, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Player((Integer A))) slot status) Equal to Is playing
- (Integer A) Less than or equal to 4
-
Then - Actions
- -------- Humans --------
- Player - Add Income[0] to (Player((Integer A))) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Player((Integer A))) slot status) Equal to Is playing
- (Integer A) Greater than or equal to 5
-
Then - Actions
- -------- Aliens --------
- Player - Add Income[1] to (Player((Integer A))) Current lumber
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Owner of (Picked unit)) Equal to Player 9 (Gray)) and ((Unit-type of (Picked unit)) Equal to Circle of Power (medium)))) and do (Actions)
-
Events