Skip to content

A program for determining luck/morality in Heroes 3!

#26
Auto-translated
AlexSpl;188905
What about my Archangels? No matter how long I wait, morale still triggers for the moving stack!
And what about the hero's leadership skill +3?
If that's the case, then perhaps the same effect is happening as with the Amulet of Courage. That is, formally, morale cannot be greater than three, but the effect of the amulet somehow adds to the hero's own leadership. Perhaps the Archangels' own morale is also added to the hero's leadership, greatly increasing the chance of morale triggering. Maybe you're just not hitting the interval where the random number generator outputs 0? Because, for example, morale not triggering only happens with a delay of 5 or 13.5 seconds?
AlexSpl;188905

Is it possible that in Heroes 3, morale depends on a timer? But then it turns out that by choosing the "delays" correctly, you can achieve morale triggering for all stacks, which, IMHO, is nonsense. Correct me if I'm wrong.
Yes, it turns out that this is theoretically possible. The picture could be like this.
If we assume that the random number is calculated every 0.5 seconds, and the chance of a positive result is, say, 1:10, then the trigger table might look like this, for example.
0.5 sec - 0; 1.0 sec - 0; 1.5 sec - 0; ..... 6.5 sec - 1; 7.0 sec - 0; ...... 14.5 sec - 1; ... and so on.
In this case, to ensure that morale triggers for all(!) stacks every(!) turn, it is enough to know the time of the mouse click for each stack with an accuracy of 0.5 seconds.
But if we take into account that the positive result of the random number is quite spread out in time, and the "window" for the click may be not 0.5 seconds, but even less, then it is possible to calculate the complete morale map for all stacks only theoretically.