|
Thread: How to Deal with Lazy AI | |
|
LordCameron

 
   
Famous Hero
Veteran of the Succession Wars
|
posted December 17, 2023 03:37 AM |
|
|
How to Deal with Lazy AI
Trying to make my map work, part 2.
The core premise of my map is teleporters everywhere giving the AI mass access to the map while the human player/players have far less. I'm using one way portals right now.
Weirdly, about half the time the AI just seems to give up. It won't explore, it will hardly go through portals, it will just hide in its base.
Is it afraid of being attacked through nearby portals? Do too many portals break it's little brain? I switched to Explorer only AIs and it seemed to help, but still the AI isn't doing much with its turns half the time. Just leaves its heroes standing around.
Anyone know why this is and how to make the AI aggressively jump through every portal it comes across?
|
|
heymlich

 
   
Famous Hero
|
posted December 17, 2023 05:59 AM |
|
|
Finding the shortest way from point A to B is actually a difficult problem (not only in HoMM). The existence of teleporters complicates it even more. I would be very surprised if lots of teleporters in one area didn't cause issues.
|
|
Warmonger

  
     
Promising
Legendary Hero
fallen artist
|
posted December 17, 2023 09:06 AM |
|
|
Finding shortest path on a square grid is a common and simple problem, solved with A* algorithm . Portals have nothing to do with it, VCMI just searches for path through portals just as any other adjacent tiles.
But no, I don't have answer to OP's question, other than making custom AI
____________
The future of Heroes 3 is here!
|
|
|