That is basically how you make the AI, by polling things periodically and making it do something if the conditions are met.
For mechanics such as ganking you want to some global state that sets possible gank targets. The AI then react to this with another test in the polling loop. Targeting low health heroes should be automatically part of the standard AI.
Yeah, I've been experimenting with different health levels. I did figure out how to command it to attack a hero low on health, or return to base, or learn a skill set after getting experience. I can even command it to support an ally if its nearby and low on health, but getting it to stay behind auto spawning minions has been more difficult for me. (I.E, knowing when to charge a tower and when not to).
I know its a long shot and you all are very busy with your own projects, but does anyone want to write me a MOBA AI BOT script? Or help me out?
It would very basic stuff, nothing advanced.
I've been working on this for a while and have hit the peak of my abilities and time.
Some general things I need help with.
1. General creep farming in appropriate lane, without suiciding into enemy towers.
2. Initiating a Gank or attacking on enemy hero low on HP.
3. Attacking enemy base/towers when appropriate. (I.E minions are attacking and take brunt of the force)
Don't worry about abilities or skill trees, I haven't even gotten that far yet.
What I've figured out so far:
I figured out how to setup the Bots into relative position and return to base to heal.
I'm running an action definition through one of my periodic loops in the map so it checks conditions and issues orders every now and then.
That is basically how you make the AI, by polling things periodically and making it do something if the conditions are met.
For mechanics such as ganking you want to some global state that sets possible gank targets. The AI then react to this with another test in the polling loop. Targeting low health heroes should be automatically part of the standard AI.
Yeah, I've been experimenting with different health levels. I did figure out how to command it to attack a hero low on health, or return to base, or learn a skill set after getting experience. I can even command it to support an ally if its nearby and low on health, but getting it to stay behind auto spawning minions has been more difficult for me. (I.E, knowing when to charge a tower and when not to).
Measure the total health of allied units nearby. If it is below a threshold order it to retreat until it is not.