I'm trying to create AI for SCVs so that while there is no structures to repair they collect minerals / gas. If Bunker is damaged they go to repair it and then get back to harvesting job.
It would be great if any SCV (=build from CC for example - not preplaced or just specific SCV) understands to do this.
Any idea how to do this? I'm actually interested about all kind of AI improvement.
For my needs there is no need to think this for non-preplaced buildings.
- -
Brainstorming without sitting next to editor:
-any unit type structure owned by player X life is <100% -> actions
-check amount of scvs owned by player X and send 1 of these scvs to repair
- is it possible to choose random scv (from specific region?)
-all buildings in region x life=100% order scv to gather
Event:
Any unit takes damage
Conditions:
Unit is a structure
Actions:
Unit - issue order. Tell (random unit from unit group: unit in region matching condition: SCV unit in *Your_region* owned by *Your_player*) to repair triggering unit.
Something like that, I don't have the editor in front of me.
I realized that if I play my map on casual or normal computer player doesn't repair buildings. In hard and brutal they do. Any idea is there anyway to start that repair AI part somehow?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to create AI for SCVs so that while there is no structures to repair they collect minerals / gas. If Bunker is damaged they go to repair it and then get back to harvesting job.
It would be great if any SCV (=build from CC for example - not preplaced or just specific SCV) understands to do this.
Any idea how to do this? I'm actually interested about all kind of AI improvement.
For my needs there is no need to think this for non-preplaced buildings.
- -
Brainstorming without sitting next to editor:
-any unit type structure owned by player X life is <100% -> actions
-check amount of scvs owned by player X and send 1 of these scvs to repair
- is it possible to choose random scv (from specific region?)
-all buildings in region x life=100% order scv to gather
Event: Any unit takes damage Conditions: Unit is a structure Actions: Unit - issue order. Tell (random unit from unit group: unit in region matching condition: SCV unit in *Your_region* owned by *Your_player*) to repair triggering unit.
Something like that, I don't have the editor in front of me.
I realized that if I play my map on casual or normal computer player doesn't repair buildings. In hard and brutal they do. Any idea is there anyway to start that repair AI part somehow?