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 > MapHaven Guild > Thread: [HotA] Guard Calculation Script
Thread: [HotA] Guard Calculation Script
gnollking
gnollking


Supreme Hero
posted January 11, 2023 08:52 AM
Edited by gnollking at 18:25, 13 Jan 2023.

[HotA] Guard Calculation Script

One of the most important parts of creating a map is to determine the guards for all of the objectives (such as resources, artifacts, mines, etc). This can be something that completely makes or breaks the map, if the guards are too easy or too strong. The official random map generator has a pretty good algorithm for this, so I have made a simple python script that allows everyone to easily use the logic for placing guards in their custom maps.

h3_guard_calc

(Obviously, being a python script, you will need to configure that for your own environment.)



Usage:

You input the strength of the zone and the monsters, plus an optional multiplier, then start a loop of entering the "treasure value" for a specific reward. The script tells you the AI value you should have for that specific guard. Until the next version of HotA blesses us with its presense, we cannot directly place a guard with "22500 AI value" on the map, so the script also asks you for the level of the creature you want to place. In the example above, the amount of level 4 guards on a 10000 value reward is about 40, so we go with that:



The calculation for this is just based on the average AI value of each tier of creatures, so it is not perfect, but it's better than nothing. The "custom multiplier" you input at the beginning will directly affect the output "guard value", so if you're making a zone where you expect the player to have hundreds of creatures, you can change that to '10' or something and you will get consistent guards for that specific area.

Hope it's useful for anyone other than me!
____________

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


Famous Hero
King of the Elder Dragons
posted January 21, 2023 11:20 PM
Edited by ArdentWyrm at 23:21, 21 Jan 2023.

I hope so too, but I don't play HoTA yet , it looks good though.
____________
Torment is blinding. It lies. Its pollution steals my sense. It promises: destroy everything and the pain will cease.
- Kralkatorrik
https://dragcave.net/user/ArdentWyrm

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


Legendary Hero
posted January 06, 2024 07:18 PM

gnollking said:
Hope it's useful for anyone other than me!
It is.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0173 seconds