So I'm trying to make the computer follow a particular build order. I have the computer making everything that it needs to make, but I don't know how to do four simple things. I want to move some drones to the expansion when it comes up. I want to change the rally point for the first hatch to the second hatchery. I want to move the first queen to the expansion after its first spawn larvae, and I want to do the extractor trick at 10 drones.
Could anyone walk me through the syntax for the scripting that would do these things? I'm having trouble since I don't know the functions and parameters I need to do these things.
abilcmd AbilityCommand (string inAbil, int inCmdIndex)
order Order (abilcmd inAbilCmd)
void OrderSetPlayer (order inOrder, int inPlayer)
void OrderSetTargetPoint (order inOrder, point inPoint)
void OrderSetTargetUnit (order inOrder, unit inUnit)
void UnitIssueOrder (unit inUnit, order inOrder, int inQueueType)
The string in the ability command constructor is the specific order. This can be "move" but also "Rally" or "ZergBuild". "BuildInProgress" is used to cancel a constructing building. If you check UnitData.xml, you can find all possible ability commands a unit can receive.
So I'm trying to make the computer follow a particular build order. I have the computer making everything that it needs to make, but I don't know how to do four simple things. I want to move some drones to the expansion when it comes up. I want to change the rally point for the first hatch to the second hatchery. I want to move the first queen to the expansion after its first spawn larvae, and I want to do the extractor trick at 10 drones.
Could anyone walk me through the syntax for the scripting that would do these things? I'm having trouble since I don't know the functions and parameters I need to do these things.
You need the following to give units orders:
abilcmd AbilityCommand (string inAbil, int inCmdIndex)
order Order (abilcmd inAbilCmd)
void OrderSetPlayer (order inOrder, int inPlayer)
void OrderSetTargetPoint (order inOrder, point inPoint)
void OrderSetTargetUnit (order inOrder, unit inUnit)
void UnitIssueOrder (unit inUnit, order inOrder, int inQueueType)
The string in the ability command constructor is the specific order. This can be "move" but also "Rally" or "ZergBuild". "BuildInProgress" is used to cancel a constructing building. If you check UnitData.xml, you can find all possible ability commands a unit can receive.
@MTops: Go
I made a maynard function, and it works. Thanks for the help. It was very useful.