Page 1 of 1

[Concept] Auto Assist AI (Repairs & Builds)

Posted: 31 Jul 2006, 17:38
by TheBlasphemer
Alright, here's a little concept AI, At it's current state it might be usable, but it has a few glitches that need to be fixed before it's ready for real use :)

The usage is simple, just add a few units with the "Repair" command to this AI, and if Idle they will automatically repair or build the closest unit that does not have full-health.
Basically if you keep a few builders in this group, everything that gets built automatically gets assisted by these builders, and everything that gets damaged, like laser-towers or vehicles, will automatically get repaired faster.

Downsides:
- When you try to reclaim your own buildings, the AutoRepair group starts rebuilding it while it isn't 100% reclaimed.
- If a unit is under attack you might not appreciate builders going to that scene.
- Offensive units will get healed too, which might not be what you want ;)

Anyway, you can get it at <err I can't seem to post hyperlinks :S, see bottom of post for hints ;)>
Just stick it in TASpring/aidll/, and in-game use "Select AI" to create a group of repairmen ;)
As a quick side-note, it's better to add units to an existing repair AI group, than to create a new repair AI group. This is because if they're all in the same group, the AI will optimize it's search routines...

Anyway, have fun with it, and any feedback or recommendations should be posted here :)

The URL consists of thuis <dot> hardijzer <dot> nl <slash> autorepair <dot> dll

Posted: 31 Jul 2006, 17:42
by AF
In the new version, set builders on a repeating Fight command

Posted: 31 Jul 2006, 17:43
by TheBlasphemer
AF wrote:In the new version, set builders on a repeating Fight command
What do you mean :S?
Should I constantly let it attack an empty space?

Posted: 31 Jul 2006, 17:49
by AF
The fight command in 0.73b1, or at least use patrol. And no they wont attack empty space they have no weapons so they'll just do exactly what you specified above.

Posted: 31 Jul 2006, 17:50
by TheBlasphemer
You mean that what this AI does is already in the engine :S?
bummer! :P

Posted: 31 Jul 2006, 22:30
by Dragon45
Yeah, its actually far more flexible to use a group-repair with Repeat On, as well as simpler >_>

Sorry mate >_>

Posted: 31 Jul 2006, 22:39
by TheBlasphemer
Oh well, 't was a nice practice anyway ;)