- Joined
- Aug 14, 2007
- Messages
- 66
The issues have been resolved.
Thanks for your time.
Thanks for your time.
Last edited:
Environment - Remove Normal creep at (Center of (Entire map)), with radius 999999995904.0
Player Group - Pick each player in (All players) and do (Actions)
Actions
General - For each integer ForEachCount[6] from 1 to 88 with increment 1, do (Actions)
Actions
Tech Tree - Set AllUpgrades[ForEachCount[6]] upgrade level to 0 for player (Picked player)
Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Remove (Picked unit) from the game
Break this into a function and then call it repetitivly passing it the variables that change. This would reduce procedural coupling and make editing the code easier.General - If (Conditions) then do (Actions) else do (Actions)
If
(Unit type of (Picked unit)) == Destructible Rocks - 2x6 Vertical
Then
Variable - Set ResourceCount[13] = (ResourceCount[13] + 1)
Variable - Set DestructibleRocks2x6VPoint[ResourceCount[13]] = (Position of (Picked unit))
Like the above, you could reduce procedural coupling my outsourcing this to a function and just changing the arguments.General - For each integer ResourceCount[12] from 1 to ResourceCount[12] with increment 1, do (Actions)
Actions
Unit - Create 1 Destructible Rocks - 2x6 Horizontal for player 0 at DestructibleRocks2x6HPoint[ResourceCount[12]] using default facing (Ignore Placement)
Unit Group - Add (Last created unit) to NeutralUnits
<Setup Teams>
**Creates starting units for selected players and launches the match**
Player Group - Reset PlayerBatch to have no players