Connection ErrorBad RequestThis page went staleSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
Error Details:
Share Link
Random Monsters Map Patcher – diverse neutral armies.
I envision the table as follows:
Monster ID
Array of link IDs with weights (the sum of the weights should be 1).
Example for two stacks:
(1, {{1,2}{0.04,0.96}
Also, it is necessary to calculate the maximum number of link repetitions based on coordinates with approximately the same strength values.
After reaching this value, redistribute the weight of the link among the remaining ones, depending on their already existing usage on the map.
Added 9 minutes ago
RedHeavenHero
Are armies supposed to consist of only two units, or is a larger number of units possible?
Until fully populated (even in 7 stacks).
The first stack with ID1 is added, then the second stack with ID2 is found based on weight, then the third is found for both, based on the total maximum weight of links ID3 to ID2 and ID3 to ID1, the fourth is found from the total maximum possible two weights from ID1 to ID3... (I think it is possible to allow a huge priority for double links in battle over all others). Everything is calculated until there are 7 creatures in the squad or the average weight from the links is lower than the previous iteration.
Then, distribute as efficiently as possible based on strength values (for now, you can simply divide equally by strength).
Added 36 seconds ago
RedHeavenHero
Added 5 minutes ago
If there will be too much trouble with the table, then everything can be left to chance.