There are multiple ways to do an AI, but the one that most people would like to do is editing the default AI directly.
The AI uses several script files found in the game's archives. You can access them via Window -> Console -> enter "browse" -> search for ".galaxy" and then just select them, right click and export.
There are several files and I believe it starts with "Computer.galaxy" and then includes other script files.
To override the AI, you would place edited files in your map/mod at the exact same location.
I've only tinkered with the AI a tiny bit a long time ago, but this is a proper way to do it.
Btw, in the data editor, you will find other kinds of AI scripts that alter micro of units as the AI scripts mostly only edit build orders and unit compositions.
I am aware of the many threads on this topic.
I am also aware of the disregard of them, as well.
Very simply: How can I make the A.I use custom units as if they were normal units?
Thanks for any future replies,
- Bvanseghi
@bvanseghi: Go
What do you mean by "use?"
Cast spells? Build? Micro back damaged units?
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
@Bilxor: Go
By "use" I mean, the A.I can build and use buildings. Whether it be using their abilities or making their units.
@bvanseghi: Go
bump. Anyone?
@bvanseghi: Go
Just execute the orders with Issue Order
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
1st. Create the new custom unit that you want. Including custom unit icon, custom unit frame, custom unit stats etc.
2nd. Create ability of train unit (see barracks / hive abilities) and link that ability to your custom unit.
3rd. Open AI tab and link the tech tree of your unit and your ability to which ever race that you want (terran / zerg / protoss).
4th. You can use triggers to execute order to train your custom unit.
5th. Done.
My projects : The Hammer of Dawn, Noir : Automata, Noir : Evolution, Noir : Ascension, Hammer of Dawn Revamp
Many awesome projects : Custom Campaign Initiative
Something for the community : A Small Letter of Thanks, SC2mapster Classic Skin - Alevice
If the problem is solved please consider changing the topic's name by adding
[Solved]
infront of it.
My projects : The Hammer of Dawn, Noir : Automata, Noir : Evolution, Noir : Ascension, Hammer of Dawn Revamp
Many awesome projects : Custom Campaign Initiative
Something for the community : A Small Letter of Thanks, SC2mapster Classic Skin - Alevice
@EDHRIANO: Go
A.I tab?
Also, how would I issue the order? It takes a unit as a param, could I just put triggering unit? Would a triggering unit be considered a barracks?
Basically I want the A.I to train units such as the HERC alongside their normal armies.
There are multiple ways to do an AI, but the one that most people would like to do is editing the default AI directly.
The AI uses several script files found in the game's archives. You can access them via Window -> Console -> enter "browse" -> search for ".galaxy" and then just select them, right click and export.
There are several files and I believe it starts with "Computer.galaxy" and then includes other script files.
To override the AI, you would place edited files in your map/mod at the exact same location.
I've only tinkered with the AI a tiny bit a long time ago, but this is a proper way to do it.
Btw, in the data editor, you will find other kinds of AI scripts that alter micro of units as the AI scripts mostly only edit build orders and unit compositions.