Code: Select all
//* Template commander *//Tree(CTEMPCOM){
SetSolar("SOLAR")
SetWind("WIND")
BuildTree(5){
Add("METAL EXTRACTOR");
Add("FACTORY");
Add("METAL MAKER")
Add(energy);
Add("METAL EXTRACTOR");
Add("BASIC DEFENCE");
SetCommander
}
}
If there's only 1 energy facility and not oenf or solar/wind you cna use SetEnergy("Energy producer");
BuildTree(5){ starts the build tree off, the 5 represents how many frames after the unti si built that tig ets the order. For a commander it's near instant so it's 5. A construction kbot would have 150, because that would be 150/30 = 5 seconds after it was created, which is enough time for ti to walk out of the kbot lab.
If it's a unit not a commander then you'd put SetUnit at the end and not SetCommander.
And that's all there is to adding to the build tree in NTAI 0.29, just remember to keep a list of all the attack/scouters unitnames you're going to build and which ones are factories and I'll fill in the rest.