Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adventure map, AI should not capture bottle objects on the ocean #8433

Open
1 task done
LeHerosInconnu opened this issue Feb 26, 2024 · 5 comments
Open
1 task done
Labels
improvement New feature, request or improvement

Comments

@LeHerosInconnu
Copy link

LeHerosInconnu commented Feb 26, 2024

Preliminary checks

Describe the problem requiring a solution

In fheroes2, AI should not capture bottle objects on the ocean.

In scenarios, bottle objects are generally used to give information to the human player, either to give life to the scenario as in campaigns, or to suggest things.
These objects are of no value to the AI, and it can "ruin" a scenario if the bottle objects are captured.
In the original game, I think the AI avoids capturing bottle objects.

In fheroes2:

2024-02-26.14-13-35.mp4

Here is the save file:
AI bottle 01.zip

Describe the possible solution

Make sure the AI doesn't capture bottle objects.

Additional info

No response

@LeHerosInconnu LeHerosInconnu added the improvement New feature, request or improvement label Feb 26, 2024
@oleg-derevenetz
Copy link
Collaborator

oleg-derevenetz commented Feb 26, 2024

While these objects has no value for AI by themselves, AI currently still can collect them to clear path to other objects or for the purpose of fog discovery.

@ihhub
Copy link
Owner

ihhub commented Feb 27, 2024

I agree with @oleg-derevenetz that the AI needs to collect them and sometimes must do this to clear a path. This improvement should be overcome by a map designer.

@ihhub
Copy link
Owner

ihhub commented Mar 11, 2024

I would classify bottles as passable action objects for AI. If a shortest path is through a bottle an AI hero will go though it.

@zenseii
Copy link
Collaborator

zenseii commented Mar 11, 2024

Hi, everyone. To me it seems like the AI sometimes goes out of its way just to pick up a bottle? Like in this video:
https://www.youtube.com/watch?v=jVZCs36lQeg&t=5624s

@oleg-derevenetz
Copy link
Collaborator

Hi, everyone. To me it seems like the AI sometimes goes out of its way just to pick up a bottle? Like in this video: https://www.youtube.com/watch?v=jVZCs36lQeg&t=5624s

For AI, bottles have zero value (literally). As for this video, based on the typical zigzag-like movements of the boat, I would say that this hero is performing the fog discovery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement New feature, request or improvement
Projects
None yet
Development

No branches or pull requests

4 participants