What I am trying to do is this.
Whenever the current player is controling no drones, they will get one at a drop-off point, But, some of the other players may have a drone already in use mining. So I want that player to get a drone whenever their "build" drone is used they will get a new one. I'm using StarCraft Campaign Editor.
for the first part have it if current player commands 0 drones create 1 drone at location
as for the second part i dont know yet
Current player brin 0 drones to location. Have where lack of drones not to count be outside location?
Have the mining in a seperate location from the build drone, like a place it cant get.
Center a location on the build drone and whenver the player has no drones there create 1 at teh location.
If the OTHER players have drones mining it won't be a problem. Just define witch player owns the drones in the triggers.
If you have drones mining and a builder drone consider putting the miners drones in a differant place. Or do you really need to have drones mining? probes and scvs can also mine minerals and return to the hatchury.
I need the builder and the miner drone. Its because, I'm making my life harder than I should. For what Iam doing for my map is that, when you will play it, it will be user selectable for what your main building and border will be. So that when the player will choose their race, they will choose their miner. Kinda stupid, but that's what I'm going to do, lol.
If drones are in separate locations, use Bring. Otherwise:
| Trigger |
| Conditions: |
| ¤ Current Player commands at least 2 drones at location |
| Actions: |
¤ Center location Switch on Drone at location
|
¤ Remove 1 Drone at Switch for Current Player
|
¤ Create 1 SCV or Probe at Switch for Current Player
|
| ¤ Preserve Trigger |
If you build more drones for mining, they automatically turn into SCVs or Probes.