I actually like that alternate way. I've gone ahead and implemented it using 'priorities'.
How this will work is say you have [a1, a2, b1, b2] then have priorities in increasing order for [a, b]:
(so from your example [3, 3, 5, 7] -- b1=5 has a priority of 2 which is larger than all the other a's & b's which have a priority of 1)
- [3, 7]
- [>=5, <=5]
- [2, 8]
- [1, 9]
The highest priority is used to determine which stat to adventure for, and priorities are only used in adventuring when allowed to balance. Otherwise adventuring will fix for the stat furthest from 5.
I'm also using the highest priority and spread to determine if balancing (if allowed) is a good idea. The max highest priority starts at 4 and will be reduced if dynamic bounds are enabled. The spread checks for at least two stats above and below 5 including 5 both ways.
As always balancing will use a1 & b2 unless they are optimal, in which case a2 & b1.
This replaces the min/max stat level variables along with the max total distance variable.
The ability to set custom optimal levels has also been removed. If balancing is allowed the optimum is [4, 4, 6, 6] otherwise [5, 5, 5, 5].
EDIT: removed attachment since latest version includes all these changes
So my wife who is very mathy was looking at the choices here, and she thinks the priority should be changed to be this:
1. [3,7]
2. [2,8]
3. [>5, <5]
4. [1,9]
The reason for this is a scenario like
2,5,8,8
In this case it will be trying to balance a 2 and an 8, but then due to random events the 5 could become a 6 which is a lot harder to recover from than a 1 or a 9. She says that 5's are very dangerous when balancing.
@Captain Kirk: While those 'priority' levels are being used, they are only being used for adventuring and for determining when to adventure.
So while in your example of [2, 5, 8, 8] the 2 & 8 will be balanced, it is not because of the levels. It is because they are at the extremes of the numbers and they are both not already optimal.
Would you propose that 2 & 5 be balanced instead? Alternatively are you saying that for adventuring the 5 should be lowered instead of increasing 2 or decreasing 8?
But as xKiv said, 5 is bad for future balancing but 2&8 are worse for overnight survival.
I do like the substat guessing idea. I'll look into implementing that tomorrow/this weekend.
The probability of 2 becoming "dead" is higher (double?) than the probability of 5 becoming 7 *and* the consequence (of 2 becoming 0) is worse.Ok, so my wife says.. remember this prioritization change idea is hers. That if a 5 becomes a 7 overnight (and the stat should have been low) that you would then be spending too many adventures
Fortunately, that adventuring would already happen by default because of chibiParent_distanceTillAdventure. Unfortunately, I have not had any time to add more changes so I'll see if I get a chance this week.
I was mistaken. Adventures will only be used, if there are 3 remaining, otherwise the script will chance it with balancing. I will need to work in some better choices for these situations.Does it if you have already spent a couple of adventures moving 1's to 2's or 9's to 8's?