Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Library of Enlightenment > Thread: How to Deal with Lazy AI
Thread: How to Deal with Lazy AI
LordCameron
LordCameron


Known 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?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
heymlich
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Warmonger
Warmonger


Promising
Legendary Hero
fallen artist
posted December 17, 2023 09:06 AM
Edited by Warmonger at 09:07, 17 Dec 2023.

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!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0280 seconds