Im not talking about your standard FPS Game AI. Im talking about AI in RTS/Management type games. Example the AI in Off World Trading Company. Or Planetary annihilation. Anyone know how I can replicate this or have any links to tutorials on how to script something like this?
There’s probably a whole host of scripts for AI on the asset store. AI is generally a big undertaking so I’d recommend you’re confident with coding before starting
I’ve never attempted a RTS style of AI since I tend to focus on turn-based AI.
But some algorithims that may help are:
Depth-First-Search / Breadth-First-search, A-Star and MinMax algorithms
Before digging into implementation-level algorithms, familiarize yourself with general AI techniques. One of the simplest is the Finite State Machine (FSM). Matt Buckland has a good intro here. PlayMaker is a good choice for FSMs.
The Asset Store also has some excellent Behavior Tree implementations, such as Behavior Designer. Behavior Trees are slightly more complicated than FSMs but still approachable. Gamasutra has a good intro here, and there’s a more in-depth discussion for RTSes here.