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: When does AI actually pick Wisdom?
Thread: When does AI actually pick Wisdom? This thread is 3 pages long: 1 2 3 · NEXT»
phoenix4ever
phoenix4ever


Legendary Hero
Heroes is love, Heroes is life
posted March 14, 2024 04:49 PM

When does AI actually pick Wisdom?

I can't remember where, but I once saw some explanation about when AI picks certain skills.

I guess we can all agree Wisdom is a must-have skill. (Yes I know the tomes and Spellbinder's Hat exist, but you can't really rely on these.)

I have seen AI time and time again refuse to pick Wisdom, even when it's
completely free from a Seer's Hut for example. It often won't pick it, WHY?

Does anyone know when AI picks Wisdom or why it won't pick it?

AI really knows how to ruin it's heroes, when all of it's skills are filled, but none of them are Wisdom...

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


Undefeatable Hero
Therefore I am
posted March 14, 2024 05:37 PM

Maybe!

When I'm making the Puzzler (HotA) map.. Events give Summon Boat, Water Walk, Town Portal, Fly and Dimension Door to only computer AIs.. Human player can't get spells, because I banned.. Then its computer AI bonus.. I tested a game, I never seen AIs are using a TP, WW, Fly and DD.. When events give 97k experience points to computer AIs.. I removed Fly and DD, and computer AIs are using a TP and WW often.. So puzzle! Thus the same matter Quest Guards and Quest Gates.. Do you want to know? Ok, enemy Tower AIs can open a Quest Guard, if lvl 20.. Tower AIs are playing slowly, so I removed Quest Guard, but "feared" also no conquered near empty Tower, then I made a Quest Gate for only Tower AIs, but extreme fast went to adventure and conquer towns.. Ok I changed Quest Guard says 60 stats.. Now's satisfied.. You must to analyze AIs.. So the same matter is Wisdom.. Remember if AI uses scouts, so scouts are very fast, but no Wisdom.. An example of Learning, so which is Pathfinding or Logistics for human players on the large terrain penalties, so Pathfinding is better choice.. Ok you must to play the Puzzler, you can get it.. The Puzzler is coming in April..
____________
Fight MWMs - stand teach

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


Responsible
Supreme Hero
posted March 14, 2024 07:29 PM

You saw it there.

Quick explanation -

Quote:
In short, AI evaluates all 28 secondary skills first. Then picks the right offered secondary skill if it's among (8 minus number_of_already_occupied_secondary_skill_slots) of most valued skills. Otherwise AI picks the left offered secondary skill.

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


Legendary Hero
Heroes is love, Heroes is life
posted March 14, 2024 07:38 PM
Edited by phoenix4ever at 19:40, 14 Mar 2024.

Thanks Alex, I believe that was it.

I looked at the formula for Wisdom, but I don't understand it 100%, can you explain it? Seems like it also depends on AI's spell power, if it wants to pick Wisdom?

I just baffles me it denies the skill, even when offered for free. It is one of the most important skills!

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


Responsible
Supreme Hero
posted March 14, 2024 07:48 PM
Edited by AlexSpl at 19:50, 14 Mar 2024.

First of all, Wisdom is often offered in the left slot (so called Wisdom exception), so AI picks it only if the right skill isn't among (8 - n) strongest skills.

The formula is

Quote:
7. Wisdom
Value = [the_strongest_spell_efficiency_delta(1, 1, 0, 0, 0, 0, 0) * Spell_Power * 1/2]
Note: here the first 1, as an argument, means +1 to Spell Power, and the second 1 means +1 to Spell Duration. See remarks in the end of this post.


or Value = [k * Spell_Power * 1/2], where

k = the_strongest_spell_efficiency("+1 to Spell_Power, +1 to Spell_Duration") - the_current_strongest_spell_efficiency.

And this k will be relatively small number, as there is often not big increase in efficiency, so AI will probably pick the right skill.

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


Legendary Hero
Heroes is love, Heroes is life
posted March 14, 2024 07:52 PM
Edited by phoenix4ever at 19:54, 14 Mar 2024.

No, I meant if offered in a Witch Hut, scholar on the adventure map or as a reward from a Seer's Hut, it will sometimes deny it and I don't understand why.

I have considered before that all heroes should start with Wisdom, maybe it's time to implement that. It's useless when AI end up without Wisdom.

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


Responsible
Supreme Hero
posted March 14, 2024 07:55 PM
Edited by AlexSpl at 19:56, 14 Mar 2024.

Scholars, Witch's Huts, Universities skills are evaluated in the same manner. Wisdom is just not among (8 - n) strongest skills.

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


Legendary Hero
Heroes is love, Heroes is life
posted March 14, 2024 07:58 PM

So that means Wisdom has low priority to AI and that's why it rarely picks it? That is a huge mistake imo.  

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


Undefeatable Hero
Therefore I am
posted March 14, 2024 08:01 PM
Edited by Ghost at 20:02, 14 Mar 2024.

I don't understand Fly and DD between TP and WW.. So I can't think knowledge is right..
____________
Fight MWMs - stand teach

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


Responsible
Supreme Hero
posted March 14, 2024 08:01 PM

Yes, also depends on which spells AI knows at the time it decides to pick Wisdom (the strongest spells it has, the higher chance it picks Wisdom).

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


Legendary Hero
Heroes is love, Heroes is life
posted March 14, 2024 08:06 PM
Edited by phoenix4ever at 20:08, 14 Mar 2024.

Okay, but when it only has access to level 1 and 2 spells, what spells would it then consider strong?
I know it likes to spam Blind and Slow, so AI perhaps considers them a reason to pick Wisdom?

It's just really bad, cause AI will never be able to cast important adventure spells like Town Portal, Dimension Door, Fly and Water Walk. Not to mention a lot of the other skills rely on Wisdom, for example Scholar, Eagle Eye, Sorcery etc.

Wisdom, Earth Magic and Logistics should have been top priority for the AI, as it is to us humans, but I guess they were afraid of making the game too hard...

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


Responsible
Supreme Hero
posted March 14, 2024 08:13 PM
Edited by AlexSpl at 20:15, 14 Mar 2024.

Quote:
Okay, but when it only has access to level 1 and 2 spells, what spell would it then consider strong?

The one with the highest AI Value. Without Wisdom it would be one of the 2nd level spells. I know, it's dumb. AI should evaluate at least all spells it could learn from its Mage Guild, but alas.

Also, I think, Wisdom is not intented for Might heroes, and, indeed, they often lack in Spell Power and Knowledge department (still, they are happy to cast 1st and 2nd level spells).

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


Legendary Hero
Heroes is love, Heroes is life
posted March 14, 2024 08:20 PM
Edited by phoenix4ever at 20:24, 14 Mar 2024.

I can understand that might heroes would not be that interested in high level spells, but they still NEED Wisdom for TP, DD, Fly and WW. Without those spells, they are just useless sitting ducks.

Well thanks for enlightening me Alex, I will think about what/if I should do...  

Edit: I think if AI does'nt have Wisdom, it will also build up it's Mage Guild very slowly or maybe just to level 1 or 2. So that might be another issue with not having Wisdom?

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


Responsible
Supreme Hero
posted March 14, 2024 08:24 PM
Edited by AlexSpl at 20:27, 14 Mar 2024.

You can multiply Spell_Power by 2 in the formula, for example. Or remove 1/2 multiplier. Probably it could be done in hex even.

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


Legendary Hero
Heroes is love, Heroes is life
posted March 14, 2024 08:25 PM

Yeah maybe, thanks.
I will think about it for a while.

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


Responsible
Supreme Hero
posted March 14, 2024 09:02 PM

To remove 1/2 multiplier for Wisdom skill AI efficiency, go to 124D01 and write there 90 90, then go to 124CE6 and write there 90 90. See if it's enough to boost Wisdom efficiency for AI.

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


Legendary Hero
Heroes is love, Heroes is life
posted March 14, 2024 09:15 PM

Thank you, I will probably test that soon.

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


Legendary Hero
Heroes is love, Heroes is life
posted March 21, 2024 02:17 PM
Edited by phoenix4ever at 14:21, 21 Mar 2024.

Hi Alex

I don't know if you read this, but I just wanted to say that I tested your Wisdom hack today, but sadly AI still won't pick Wisdom from Witch Huts, adventure scholars or Seer's Huts.
I guess the only way to make sure AI gets Wisdom, is to let it start with it.
I have been considering giving all heroes +1 starting skill.
For might heroes (except Rashka) and Necromancers (except Aislinn), this would then be Wisdom.
For heroes specialising in a spell, it would be the appropriate magic school.
For other heroes it could be Offense, Archery, Sorcery etc. depending on their specialty.
Or else I will just have to accept that AI really does'nt like Wisdom for might heroes.
I guess I will go back to the drawing board now...  

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


Responsible
Supreme Hero
posted March 21, 2024 02:41 PM
Edited by AlexSpl at 14:45, 21 Mar 2024.

Quote:
I don't know if you read this, but I just wanted to say that I tested your Wisdom hack today, but sadly AI still won't pick Wisdom from Witch Huts, adventure scholars or Seer's Huts.

It's probably due to heroes not having a spell book. No spell book - no spells, hence Wisdom efficiency is around 0. Try to equip heroes with spell books. And give them some strong lvl2 spells. Decent Spell Power is also a factor.

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


Legendary Hero
Heroes is love, Heroes is life
posted March 21, 2024 03:14 PM

Maybe, but Witch Hut, adventure scholar and Seer's Hut are located right next to their starting town, so unless they don't want to buy a spell book for their might heroes either, I really don't know what's going on...

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 3 pages long: 1 2 3 · NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0405 seconds