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 > Heroes 3.5 - WoG and Beyond > Thread: Heroes 3 Hacking Reference Guide (started by BTB in February 2020)
Heroes 3 Hacking Reference Guide This thread is 48 pages long: 1 2 3 4 5 ... 10 20 30 40 ... 44 45 46 47 48 · «PREV
BigPig2
BigPig2


Hired Hero
posted June 08, 2026 06:31 PM
Edited by BigPig2 at 18:41, 08 Jun 2026.

Ive been studying this function: SetSpellInfluence - starting (4)44610h and if I understand correctly it can be edited to calculate the hero specialty bonus before jumping to a specific spell case to update the corresponding value from there? this will probably also release enough space to do what i want with the duration. Its a bit of an extensive edit but I will post it when I get it done.

In the meantime I was wondering if anyone has any clues as to the following:

1) On the subject of spells, I thought the AI values in SPtraits are used when the AI decides which spell to cast but they do not appear to be mentioned in the function I understand to be responsible for making this choice (as per AlexSpl on page 116 in the "how to edit hota" thread): get_enchantment_function at (4)3B2E0h. I really have 2 questions here:

1a) Why do uncastable spells like poison, disease, age have their own value calculating functions written up if they cant ever be cast actively by heroes? This is very unlike the developers who didnt even bother implementing unused hero spell specialties despite the fact that thatd be actually more efficient.. Are these routines used elsewhere for some other purpose? IDA only shows cross-references to the above mentioned function and that one appears to only be called during active AI spellcasting (+genies use).. Could this possibly be free real estate? and;

1b) What are the AI values in SPtraits for then? I saw them mentioned in stuff like quest and similar rewards but that seems like a very niche purpose to have them for? I notice they only ever go as low as 1, never 0, why?

2) Is it correct that the AI necromancy bug is an issue with the DoVictory function at (4)76DA0h? What exactly is the problem? I vaguely remember somebody mentioning it deletes the armies before calculating the raised creatures or something similar? But isnt it the same function for both human and AI players? I appreciate any descriptive answer. This has supposedly been fixed in hota so I know the answer is out there..

3) Similar question, but I am not sure if hota fixes this or not.. The tower targetting bug, the wiki says the AI considers the tower damage to be equal to 1 for the purposes of targetting, is it an issue with the Find_AI_targets function at (4)22CA0h? I can see the arrow tower is mentioned for its own bit of code but I dont yet understand what it does.

edit: 4) This one is more general. Does AI even consider the attributes of the artifacts its heroes wear or does it just put them on as long as the slot is open? Does it share the artifacts across its heroes? There usually seems to be one carrying much much more than others. I was thinking to let the necromancy artifacts work without the skill, and I know how to fix the problem with the necro building and grail applying as well but I am worried it will hinder ai heroes with tiny skeleton stacks that will ruin their movement and morale.. Do AI heroes ever disband unneeded armies?

 View Profile
Jump To: Next Thread » This thread is 48 pages long: 1 2 3 4 5 ... 10 20 30 40 ... 44 45 46 47 48 · «PREV
Post New Poll   Post New Topic   Post New Reply

Page compiled in 0.0816 seconds