1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-08 22:26:51 +02:00
Go to file
Ivan Savenko 3479ec9651 Per-hero artifact scoring for NKAI
AI now has better (but not perfect) system for scoring artifacts.

All artifacts now have their base score, based on bonuses provided by
the artifact. For composite artifacts, AI will also consider bonuses
from its components.

When exploring, AI will now weight artifacts as min(base score, price /
5), meaning even artifacts that AI can't score will still have some
priority, if only to sell them or deny them to enemy

AI will now also consider what to equip when trading with heroes or on
the end of AI pass. When considering what to equip, hero will use base
score of an artifact, adjusted by how relevant particular bonus /
artifact for a hero. Some examples:
- Morale-bonusing artifacts have their score reduced based on percentage
of undeads in the army, all the way to 0 for undead-only troops
- Artifacts that give spells (books, hat) will have score reduced based
on how many of these spells are already known by hero
- Land movement artifacts have zero score while on water and vice versa
- Necromancy artifacts will have zero score if hero does not have
necromancy
- Archery artifacts are scaled by amount of ranged troops, and only used
if hero has archery skill

AI may still equip 'bad' artifact, however this should only happen if
hero has no other artifacts to equip into said slot.

TODO's for future PR's (although not sure if / when I will work on
these):
- avoid equipping duplicates of the same artifact. Most notably with
scrolls, but may happen with other misc artifacts or rings.

- consideration for various spell-immunity neclaces

- consideration for birectional artifacts, like Shackles of War, or some
Spheres - since these artifacts need consideration on what our expected
enemy is to correctly estimate whether

- equipping artifacts based on immediate need - for example, equipping
recovery artifacts before end of day, equipping legion pieces only in
town on day 7, preparing for strong / weak enemies (or even preparing
for specific enemy in advance)

- transferring resource-generating artifacts and such to scout heroes,
allowing main hero to focus on combat

- ensure that AI can equip combined artifacts even if non-primary slots
are in use - by considering whether score of combined artifact is higher
than score of all used slots
2025-01-18 13:14:24 +00:00
2025-01-06 21:18:28 +00:00
2025-01-18 13:14:24 +00:00
2025-01-12 12:19:27 +00:00
2025-01-12 12:19:27 +00:00
2025-01-12 12:19:27 +00:00
2025-01-10 18:58:46 +00:00
2025-01-12 12:19:27 +00:00
2025-01-11 12:49:21 +01:00
2025-01-11 12:57:08 +01:00
2020-05-05 18:44:42 +10:00
2025-01-08 07:24:43 +01:00
2025-01-08 15:37:20 +03:00
2022-09-24 10:53:09 +03:00
2023-09-07 11:04:01 +03:00
2024-07-15 20:32:16 +02:00
2024-08-02 15:09:48 +00:00
2024-07-10 12:49:53 +02:00
2024-10-26 19:15:12 +08:00
2025-01-09 12:19:08 +00:00
2025-01-08 15:22:21 +03:00
2024-12-21 22:06:27 +01:00
2024-10-14 13:23:48 +00:00
2025-01-10 18:58:46 +00:00
2022-09-24 15:55:25 +03:00

VCMI Project

VCMI Github Downloads Github Downloads Github Downloads Github Downloads

VCMI is an open-source recreation of Heroes of Might & Magic III engine, giving it new and extended possibilities.

Vanilla town siege in extended window Vanilla town view with radial menu for touchscreen devices Large Spellbook with German translation New widget for Hero selection, featuring Pavillon Town

Latest release

Latest release can be found in Github Releases page. As of right now we plan to have major releases around 3 times per year. Daily builds are still available at builds.vcmi.download but they are not guaranteed to be stable. So we encourage everybody to use them and report found bugs so that we can fix them. Loading saves made with different major version of VCMI is usually not supported, so you may want to finish your ongoing games before updating. Please see corresponding installation guide articles for details for your platform.

Installation guides

See also installation guide for Heroes Chronicles.

Forge Town in battle Asylum town with new creature dialog Ruins town siege Map editor

Documentation and guidelines for players

Documentation and guidelines for translators

Documentation and guidelines for game modders

Documentation and guidelines for developers

Development environment setup instructions:

Engine documentation: (NOTE: may be outdated)

Documentation and guidelines for maintainers

VCMI Project source code is licensed under GPL version 2 or later. VCMI Project assets are licensed under CC-BY-SA 4.0. Assets sources and information about contributors are available under following link: https://github.com/vcmi/vcmi-assets

Copyright (C) 2007-2024 VCMI Team (check AUTHORS file for the contributors list)

Description
Open-source engine for Heroes of Might and Magic III
Readme 142 MiB
Languages
C++ 67.1%
JSON-with-Comments 24.5%
Inno Setup 3.4%
Java 1.5%
CMake 1.4%
Other 1.8%