You're making this seem like I'm trying to code the entire world, but it's not that difficult.
I'm speaking for general acquisition and ability to kill, but for teamfights, you could just do a couple of things.
-
Each type of bot could have a general composition of what they should be doing in teamfights.
For example, Ashe bot would be programmed to sit in the back and kite, only engaging those closest to her.
Rengar bot would be programmed to search for a clear path to backline characters and try and kill them.
Katarina bot would be programmed to poke with Q until critical cc's have been burned OR she can instantly kill someone with a combo.
-
There could be variance by off meta (obviously), but bots aren't perfect. We're not designing 100% perfect bots here that can't be beaten, lol. Besides, there are a lot of supports that can be noted as "carrying" - Sona, Soraka, Zyra, they can all be programmed as carries. Also, they could just evaluate not the most gold, but what items they have or their damage per minute/healing per minute and use that as a vector to figure out which character is pushing the most impact.
-
You could have said bots move around a fight relative to the placement of the enemy and their ability to deal with them. For example, a clear one would be an Irelia bot searching for a way to reach an enemy carry (carries can be programmed in an array, so like Lucian, Ashe, Sivir, Viktor, Cass, etc.) The programming to get there would be complicated, but it'd be something like either:
A. Search for a flank. Use when available.
B. Try and continually refresh potential targets when Q is up, search for a low health target that is within kill threshold, dash then get to carry.
C. Directly dash onto carry.
The melee champs would be the hardest to navigate teamfights with; the ranged champs just need to dodge skillshots and fire their skillshots in areas in which they would have the highest impact. At that point, you just calculate angles in which, from where they are standing, where they can hit the most champions and/or where they can hit priority targets from safe range. This would use target aiming from my above post.
The simplest character (in my opinion) to code would be an Ashe bot. She has several key functions she needs to do in a teamfight; namely, kill whoever she can in range of her, use her ult to either peel off someone or hit someone directly in her line of sight, and dodge skillshots and area of effect abilities.
The first part would be simple. Have her attack the nearest target (this algorithm works perfectly fine for ranged champions, by the way, just the way it's coded is terrible) while moving between attacks towards an area the enemy is not. For example, if the enemy players are all shifting towards mid turret (which she is right near) she can either kite backwards or to the side.
The second part would require the Ashe to have awareness of the carry (which I said how it could be found earlier) and of the rest. She could continually refresh the carry's (and everyone else's) position,
use the vectors of moment to see if someone else that is not the carry will move into the path she can fire her ult towards the enemy carry, use the vector of the enemy carry to calculate the direction she would need to fire, and if the enemy will not intercept (assuming they don't flash), then fire it.
The third part has been coded already. Dodge scripts exist for a reason; they calculate the vector of the skillshot and move the character or flash accordingly.