Edit: New Question!
EDIT:
New question! Is the following the correct way to do the rally point system without leaks?
So, I'm getting close to finishing up my map (a spawn based strategy map) and I want to add a rally point system to make things a lot more convenient for the players.
I want to use a variable, setting it equal to the rally point so I can delete is after with a removelocation to help stop leaks. I've tried to completely do one bases spawn, as seen below, to use it as a base for others. Although its still having issues with Newgen when I save.
Was the closest I could get but, when I try to save it, the jasshelper says that both of the removelocations "Cannot Convert rect to location". I am utterly confused.
I want to use a variable, setting it equal to the rally point so I can delete is after with a removelocation to help stop leaks. I've tried to completely do one bases spawn, as seen below, to use it as a base for others. Although its still having issues with Newgen when I save.
-
Scourgeholme spawn
-
Events
- Time - Every 120.00 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 11 (Dark Green) Food used) Less than or equal to 80
-
Then - Actions
- Set Point = Scougeholme main spawn <gen>
- Unit - Create 3 Nerubian Ripper for Player 11 (Dark Green) at (Center of Point) facing Default building facing degrees
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Current research level of Offense Tier 1 for Player 11 (Dark Green)) Equal to 1
-
Then - Actions
- Unit - Create 2 Crypt Fiend for Player 11 (Dark Green) at (Center of Point) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Current research level of Offense Tier 1 for Player 11 (Dark Green)) Equal to 2
-
Then - Actions
- Unit - Create 2 Crypt Seer for Player 11 (Dark Green) at (Center of Point) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Current research level of Offense Tier 1 for Player 11 (Dark Green)) Equal to 3
-
Then - Actions
- Unit - Create 1 Crypt Lord for Player 11 (Dark Green) at (Center of Point) facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Current research level of Offense Tier 1 for Player 11 (Dark Green)) Equal to 4
-
Then - Actions
- Unit - Create 1 Crypt Lord for Player 11 (Dark Green) at (Center of Point) facing Default building facing degrees
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation(udg_Point)
- Set Point = (Region centered at (Rally-Point of Scougeholme 0179 <gen> as a point) with size (1.00, 1.00))
-
Unit Group - Pick every unit in (Units in Scougeholme main spawn <gen>) and do (Actions)
-
Loop - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of Point)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Point)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
EDIT:
New question! Is the following the correct way to do the rally point system without leaks?
- Set Point = (Rally-Point of Scougeholme 0179 <gen> as a point)
- Set Temp_Group = (Units in Scougeholme main spawn <gen> owned by Player 11 (Dark Green))
-
Unit Group - Pick every unit in Temp_Group and do (Actions)
-
Loop - Actions
- Unit - Order (Picked unit) to Attack-Move To Point
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Point)
- Custom script: call DestroyGroup (udg_Temp_Group)
- Else - Actions
Last edited: