fheroes2 icon indicating copy to clipboard operation
fheroes2 copied to clipboard

Adventure map, AI behavior, AI doesn't seem to manage correctly artifacts with condition (0.9.20 5949)

Open LeHerosInconnu opened this issue 2 years ago • 2 comments

Preliminary checks

Describe the problem requiring a solution

In fheroes2, the AI doesn't seem to manage correctly artifacts with condition (here being recognized as a "True Leader"). In the example, it is already month 2 and an artifact has still not been captured by the AI.

In fheroes2:

https://user-images.githubusercontent.com/43583994/199969513-355af929-5380-4543-a21d-33dd8514cc6c.mp4

Here is the save file: Artifact not captured 40.zip

Describe the possible solution

Ensure that AI effectively manages artifacts with condition, especially when it is a high-value artifact.

Additional info

No response

LeHerosInconnu avatar Nov 04 '22 12:11 LeHerosInconnu

Hi @LeHerosInconnu , can you please explain why this is a bug? Are you certain that AI heroes from Barbarian castle had the needed skill? To verify this please place an AI hero with this skill on any map together with an artifact.

ihhub avatar Nov 05 '22 04:11 ihhub

Hello @ihhub,

Hi @LeHerosInconnu , can you please explain why this is a bug? Are you certain that AI heroes from Barbarian castle had the needed skill? To verify this please place an AI hero with this skill on any map together with an artifact.

This is not strictly speaking a bug, that's why I put it as an improvement.

My point is that when there are artifacts with a condition like being a "True Leader" (having the secondary skill Leadership), being a "Wise Person" (having the secondary skill Wisdom), and even when it comes to paying gold and resources to acquire the artifact, the AI should take it into consideration and send a hero (or even recruit one who meets the condition) to get the artifact especially when it is an artifact that gives +3 in Attack, or +4 in Spell Power, or a gain in resources or a move bonus, etc. These are artifacts that should not be neglected. Is there already a part of the code that handles this currently?

LeHerosInconnu avatar Nov 08 '22 14:11 LeHerosInconnu

Another save for this (version 1.0.1 6629): AI no capture resource artif2.zip

LeHerosInconnu avatar Mar 06 '23 15:03 LeHerosInconnu

Version 1.0.8 7767. The save files only show that the AI did not capture the artifacts. The AI's behavior cannot therefore be observed. I close the issue and will open a new one if necessary.

LeHerosInconnu avatar Sep 23 '23 22:09 LeHerosInconnu