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? (started by phoenix4ever in March 2024)
When does AI actually pick Wisdom? This thread is 5 pages long: 1 2 3 4 5 · «PREV
phoenix4ever
phoenix4ever


Legendary Hero
Heroes is love, Heroes is life
posted September 03, 2026 04:58 PM

Yeah I guess Fire Wall, Force Field and Remove Obstacle, would be kinda hard "to teach" AI to use in a good way.
But let me know, if you find out how to make it cast Quicksand and Land Mine.

 View Profile
BigPig2
BigPig2


Adventuring Hero
posted September 03, 2026 07:23 PM

Technically speaking, I already do. As AlexSpl said you need to give them a value function, as all the spells AI doesnt use currently redirect to an "others" case, which gives them a value of 0. So what is needed is to change the value in the switch table for the spells you want to "activate" to direct to either:
- an existing function of another spell, in which case the question becomes: which other spell is useful in similar circumstances? I think you would maybe cast Q/LM in situations similar to when you cast slow, but likely with a somewhat lower priority. So i am thinking to take the value of slow and reduce it by some factor maybe? or;
- write up your own function that estimates the value based on battlefield situation (hard in hex), or;
- give them a flat constant value, this would work in principle but would likely not be very beneficial to the AI player as these spells are not all that powerful in many situations. Maybe if the value was small the AI could only cast them when out of better alternatives.

 View Profile
Phoenix4ever
Phoenix4ever


Legendary Hero
Heroes is love, Heroes is life
posted September 03, 2026 07:34 PM

Yeah I agree with you.
AI loves to spam Slow and Blind and damage spells and situations where you would want to use QS and LM seems similar to those of Slow yeah, but they should have lower priority, since Slow is one of the best spells in the game.

 View Profile
Jump To: Next Thread » This thread is 5 pages long: 1 2 3 4 5 · «PREV
Post New Poll   Post New Topic   Post New Reply

Page compiled in 0.0297 seconds