|
Thread: [HotA] Guard Calculation Script | |
|
gnollking
Supreme Hero
|
posted January 11, 2023 08:52 AM |
|
|
[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!
____________
|
|
ArdentWyrm
Famous Hero
King of the Elder Dragons
|
posted January 21, 2023 11:20 PM |
|
|
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
|
|
bloodsucker
Legendary Hero
|
posted January 06, 2024 07:18 PM |
|
|
gnollking said: Hope it's useful for anyone other than me!
It is.
____________
|
|
|
|