Age of Wonders III

Age of Wonders III

Community Made Maps & Campaigns
Welcome to the Age of Wonder III Workshop. The place on Steam to get and share handcrafted scenarios, epic campaigns and mods that implement little tweaks to full game overhauls.
Learn More
Ayalin 12 12 Jan, 2023 @ 4:35pm
Information demand to dev- exact delta being applied to defender strength during map generation
So I have been running a lot of tests to understand the way waves are being generated from a simple list of unit, because there are several variables in the game file, and so far this how I got it :

- The most important variable is the "Defender strength"; this is the variable which seems to command all the others
- This variable is presented under the form of a simple string, aka "very weak", "strong" etc. Behind each of these options there is actually a number, which represents the max strength of the wave. It can be considered as a bucket of points.
- The max strength of the wave is simply the total of all mana & gold costs from units which composed the wave, and this total cannot exceed the amount given by the defender strength variable
- Now, the "Boss variable". If at least one boss unit is supposed to be there, the system will first consume its bucket by adding any units from the highest tiers existing in the unit list (in this case it seems that the total of mana+gold is not taken into account to determine who is the boss, just the tiers). This boss unit will take the first spot in the wave.
- After that, it will try to reach the "ideal max of units" with the remaining points it has, by using the weakest unit of the list (in this case, it's using the gold+mana score to determine who is the weakest). If not enough points are left in its bucket, it will simply stop before reaching it.
- On the other hand, once the ideal max count of units has been reached and if some points remain in its bucket, it will start "upgrading" the weakest unit to a stronger one (it seems to me that it's starting from the left, trying to reach the second highest tiers in the list for the first unit after the boss). If some points are left, it will continue, up to the point where it can overcome the ideal max of units which was setup (by going above).

I think that's more or less how it's done, but I have noticed during my test that there is still one last unknow variable, which is some kind of delta being applied to the original bucket of the wave : something which seems to be like +/-33%. I would have enjoyed if someone (dev or not to be honest), have more information about this; any relevant resource or info would be welcome !:)

Thank you very much in advance