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, optimize AI behavior of heroes during movement (1.1.0 8733) #8799

Open
1 task done
LeHerosInconnu opened this issue Jun 2, 2024 · 0 comments
Open
1 task done
Labels
AI Artificial intelligence behaviour bug Something doesn't work
Milestone

Comments

@LeHerosInconnu
Copy link

Preliminary checks

Describe the problem requiring a solution

In the example, the green AI player's hero Troyan bypasses a stack of resources to make his move.
This is often the case, from what I've observed in my games.
However, not picking up the stack of resources during the move doesn't benefit the hero's movement points.
By bypassing the stack of resources, the hero makes two diagonal steps, for a total of 2 x 150 movement points, in the case of terrain with no penalty.
A total of 300 movement points.
Collecting the stack of resources as he moves, the hero would spend 100 movement points to pick up the stack of resources, then 2 x 100 movement points to move to the same location on the adventure map.
The same total of 300 movement points as before, with the added bonus of having picked up the stack of resources, thus avoiding an additional displacement to another hero or to the same hero later to pick up the stack of resources.

In fheroes2:

2024-06-02.14-51-05.mp4

Here is the save file:
AI contourne ressource 01.zip

Describe the possible solution

In similar cases to the one presented, make the hero pick up the stack of resources instead of bypassing it.

Additional info

No response

@LeHerosInconnu LeHerosInconnu added the improvement New feature, request or improvement label Jun 2, 2024
@ihhub ihhub added bug Something doesn't work AI Artificial intelligence behaviour and removed improvement New feature, request or improvement labels Jun 9, 2024
@ihhub ihhub added this to the 1.1.1 milestone Jun 9, 2024
@ihhub ihhub modified the milestones: 1.1.1, 1.1.2 Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI Artificial intelligence behaviour bug Something doesn't work
Projects
None yet
Development

No branches or pull requests

2 participants