You've probably "overwritten" existing units (like you renamed the "Stalker" a "Dragoon" and gave him a different model, etc) so the AI will think he's building a stalker, while he's actually building a Dragoon.
Well, it's possible, but you can't copy them, you have to overwrite them, thus if you want the AI to use a dragoon, you will have to overwrite the stalker and not change the place it's trained at and then the AI will use the dragoon; but it won't use the stalker (because you overwrote it it doesn't exist anymore) so it's possible if you only want to swap out one or two units, but for anything more you'd want to use other methods.
You can try to mess around with some of the AI/AI Advanced triggers; I believe you can instruct it to train units with "Train"; but it won't actually use abilities (though this is quite easily circumvented by making them autocast) and I'm not sure if they will use it to attack. Try messing around with them I've never actually used them.
Also, I have not made use of it but I often notice AI-notify flags on data objects. Those may help the AI understand the context of use for any abilities on the new units.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
As I add new units to my mod like Firebats, Medics, Protoss Scouts, and so on, it seems the AI never uses these units against human players.
How do you make the AI use new units? Can someone point me to some tutorials?
My friend and I were considering making a mod with WoW models, but new units using AI will be important.
Thanks ahead!!
I believe you have to use triggers (All the AI actions). Will take a LOT of time to set up i believe, so gl
I'm not sure, but I'd look in the campagin missions where you fight the protoss, specificly the terrazine one.
all the AI is done in galaxy script in the triggerlibs folder you have to MPQ extract this from the games MPQ files.
it's pretty straight forward. simple scripting language. but it's a hell of alot of work. i started doing it for my sc1 map but gave up.
Strange, I have a mod with SC1 units and the computers sometimes build those units. They only fail to use their abilities.
@shardfenix: Go
You've probably "overwritten" existing units (like you renamed the "Stalker" a "Dragoon" and gave him a different model, etc) so the AI will think he's building a stalker, while he's actually building a Dragoon.
So, would a feasible way to make a group of units work with AI be to use copies of other units with similar roles?
Shard, I used part of your SC+ mod in mine, but I have not seen the new units spawn ever so far.
Well, it's possible, but you can't copy them, you have to overwrite them, thus if you want the AI to use a dragoon, you will have to overwrite the stalker and not change the place it's trained at and then the AI will use the dragoon; but it won't use the stalker (because you overwrote it it doesn't exist anymore) so it's possible if you only want to swap out one or two units, but for anything more you'd want to use other methods.
You can try to mess around with some of the AI/AI Advanced triggers; I believe you can instruct it to train units with "Train"; but it won't actually use abilities (though this is quite easily circumvented by making them autocast) and I'm not sure if they will use it to attack. Try messing around with them I've never actually used them.
Thanks!
Also, I have not made use of it but I often notice AI-notify flags on data objects. Those may help the AI understand the context of use for any abilities on the new units.