Skip to content

Posts from A program for determining luck/morality in Heroes 3!

4.8 (4 ratings)
In reply to Dirty_Player
User Avatar
Auto-translated
2Senator: No one wants to be a cheater. It's shameful. Besides, even the coolest cheater won't take everything into account...
In reply to AlexSpl
User Avatar
Auto-translated
AlexSpl;189127
No one wants to be a cheater. It's shameful.
Unfortunately, that's not the case. :(
In my experience, I've had to catch players who were cheating. :(

But it's encouraging that the vast majority of players play fairly, and for them, the main thing is not winning but participating and playing well. :)
In reply to AlexSpl
User Avatar
Auto-translated
Senatоr;189113
I meant the heroes that are called Extra 1-7 in the excavator. Is it possible to add them offline, or even for online???
By the way, what are those two little creatures? I've never come across them in any campaign.
Extra heroes aren't actually heroes, but just portraits that can be assigned to any hero! The hero on the left is also a portrait (found in the Armageddon's Blade campaign as Mutara), and the hero on the right is NAGASH from VoG with the Veil of Darkness specialty; in SoD he is different!
Senatоr;189113
And if my 3-slot speed and the opponent's 2-slot speed are equal, does it mean the enemy will always go first?!
Example 1: We have an army of phoenixes and archangels, and the enemy has only two stacks of archangels. The phoenixes will move first, then the opponent's archangels who are positioned higher (further left in the hero's army), then our archangels, and only after that the second stack of the opponent's archangels.
Example 2: Phoenixes get morale and they say wait; then the other combatants, also saying wait, will force the phoenixes to move forward.
Example 3: Suppose the phoenix died, then our archangels will have the first turn, followed by both of the opponent's stacks, and in the next battle round, the opponent's first archangels will move, then ours, and then the opponent's second stack!
DARK_DRAGON;189119
and also if for example your speed is increased (by an artifact or spell) to 15, but the enemy has a base speed of 15, then he will move sooner
But that's not true!!! It doesn't matter how the speed was obtained: from a spell effect, artifact, specialty, or terrain bonus!
AlexSpl;189127
2Senator: No one wants to be a cheater. It's shameful. Besides, even the most skilled cheater won't account for everything...
I agree with this 100%!
In reply to Senatоr
User Avatar
Auto-translated
Senatоr;189122
The point is different. If the battle is difficult, but theoretically winnable, then considering the "military tricks," it's not necessarily worth spending 1-2 hours on such a battle. This is what confuses me in offline mode.
This is actually the most interesting part: if you can theoretically win the battle, then winning it and proving to yourself that you can do it is what matters. It all depends on the "military tricks." When the third game was released, I had a situation in one of the campaigns where the game didn't save, and the main hero of the campaign trapped me. His army was much stronger, but I had much more magic, and my magic power was slightly higher (I summoned about 120 Earth Spirits). I tried for four days and thought about how to defeat him (sometimes he would disappear, leaving me with only the summoned creatures, and of course, I would die too, and other things), but I managed to do it, and I didn't need to prove anything to anyone – but what a sense of SELF-SATISFACTION you get after solving such puzzles, without any cheats or bugs.
In reply to Dirty_Player
User Avatar
Auto-translated
2Andrey44_44: Yeah, a familiar situation, you know that victory is yours, but it just won't come... But when it does, you call yourself a genius and don't doubt it at all :) About morale in Heroes III... I conducted an analysis. Here's what I found: 1) The condition for morale to trigger is the same: mod(R, 24) + 1 <= m (in this case, m is the morale of the unit); 2) R is a pseudo-random number - it doesn't directly depend on the timer, but the "delay" theory IS TRUE! Let me explain: the number R is constantly changing in a certain cycle, even if the player does nothing. Furthermore, R changes quite quickly, but unevenly, in jerks. An interesting observation: the rate of change of the number R drops to one per second (approximately, of course) when viewing information about the unit (another confirmation that this number changes in the animation cycle). Sometimes, R doesn't change at all for a second or two... 3) Conclusion: predicting the morale trigger in Heroes 3, IMHO, is practically impossible. 4) The __rand() function calls operating system kernel functions, so there is still a difference depending on which OS you play on. I confirmed that R does indeed change in the animation cycle of idle units. That is, the more orcs swing their axes, the faster R changes, and when viewing information about the hero, the number R does not change at all (note that in this case, the animation of all units is paused!). I'll also add that it is practically possible to create a program that would read R from RAM and predict the remainder (if you set the animation speed to the minimum, the rate of change of R is not very large). For example, when the remainder satisfies the condition for morale to trigger, a green "morale traffic light" lights up :) and the player simply clicks the mouse. I have no doubt that he will be able to do this. Therefore, it is quite possible to achieve morale (and possibly luck) for each of your units without changing the structure of the game. There is much to think about...
In reply to Dirty_Player
User Avatar
Auto-translated
Yes, it’s a pity that it’s impossible to predict.
Одна древняя легенда гласит,
Что темный дракон весь мир покорит,
Темный дракон - безликая тень,
Теперь навсегда ночь сменит день.
Он свергнет всех местных Богов,
Ни сила, ни воля не сдержат его.
Рыцарь, король - все одно для него,
С ним в битве исчезнет и зло, и добро.

.
User Avatar
Auto-translated
2Dirty Player, AmberSoler:
Regarding the animation...
We probably misunderstood each other. "Thundercloud and lightning" is the animation for failure in the second Heroes game, but in the third, there is simply no procedure that implements failure. The image would probably be exactly the same as that of the spell with the same name.
In reply to AlexSpl
User Avatar
Auto-translated
AlexSpl;189338
2Dirty Player, AmberSoler:
Regarding the animation...
Perhaps we misunderstood each other. "Thundercloud and lightning" is the animation for failure in the second Heroes game, but in the third, there is simply no procedure that implements failure. The image would probably be exactly the same as the one for the corresponding castle.
Yes, everything is clear about the third Heroes game. We were asking about the second one :)

And thank you very much for the information about the database! Although we figured out a lot of this logically, including the formula, which was predictable! Now I am much more certain about many things!!! And let some others feel the moral sting :D
In reply to AlexSpl
User Avatar
Auto-translated
Good day.
AlexSpl;189276
2Andrey44_44I'd also like to add that it is practically possible to create a program that reads the R value from the RAM and predicts the remaining value (if the animation speed is set to the minimum, the rate of change of R is not very high). For example, when the remaining value meets the condition for morale to drop, a green "morale indicator" lights up, and the player simply clicks the mouse. I have no doubt that he will be able to do this. Therefore, it is quite possible to achieve a morale drop (and possibly luck) for each of your units without changing the game's structure. There is something to think about...
And if you then use such a program in online play... you will inevitably be suspected of cheating... IMHO. Best regards, K0Lb@zzeR.
:smile13: [ТУРНИР] "Гонка за Лидером" :smile13:
:smile28: [M] "Я и моя тень" - "I am and my shadow" :smile28:
:smile16: "Быстрая смерть" - "Fast Death" :smile16:
In reply to K0Lb@zzeR
User Avatar
Auto-translated
K0Lb@zzeR;189418
And if you then use such a program in online play... you will inevitably be suspected of cheating... IMHO.

Sincerely, K0Lb@zzeR.

Of course, if you create such a program, skills like luck and morale will become almost unnecessary, but it's still worth writing it.

In short, about luck and negative morale...

As you know, luck is calculated before the unit's attack, the condition remains the same. But the condition for negative morale is slightly different: mod(R, 12) + 1 < -m (m < 0). From this, it is clear that negative morale will occur twice as often as positive morale (with equal morale units).
In reply to AlexSpl
User Avatar
Auto-translated
AlexSpl;189432
Of course, if such a program is created, skills like luck and morale will become almost unnecessary, but it's still worth writing it.
If there is no luck and morale skill, it means it will be neutral, or +1 morale (if the troops are from the same city). Is it possible to achieve a positive morale and luck result with the help of a program?
In short, with a neutral setting, is it possible to get luck/morale bonuses?
In reply to wolf64
User Avatar
Auto-translated
wolf64;189433
If there is no luck or morale skill, it will be neutral, or +1 morale (if the troops are from the same city). Is it possible to achieve a positive morale and luck result using a program?
In short, if it's neutral, is it possible to get luck/morale?

+1 morale will be sufficient (higher morale simply increases the "click window").
In reply to AlexSpl
User Avatar
Auto-translated
I think creating a program that predicts morale drops is close to cheating! And for those looking for an easy way to win, I have a reliable method: before making a move, hop on your left leg 50 times, spit on the ceiling, and don't forget to say "sias'ki-masias'ki" - they say it guarantees 100% success in boosting morale ;)
But I actually have a question for Dirty.
Recently, I was wondering - who and why pays the winners? On NR, it seems like they even chip in, but here, participation is free and completely voluntary (thankfully) :) So, Dirty_Player, are you doing all this for the common good? I understand it's a delicate question, but could you explain?!

За всем следят машины благодати и любви.
In reply to WhiteLizard
User Avatar
Auto-translated
WhiteLizard;189438
Actually, I have a question for Dirty.
Recently, I was wondering - who and why pays the winners? In the NR, it seems like everyone chips in, but here, participation is free and completely voluntary (thankfully :) ). So, Dirty_Player, are you doing all this for the common good? I understand that this is a delicate question, but could you clarify?!
This tournament was held with the aim of attracting people to offline tournaments! I am not the sponsor. The sponsor wished to remain anonymous, and that is their right! If anyone wishes to be a sponsor, they can contact me, and we will organize a tournament! Easy!

Regarding the program that detects cheating! Since the idea has already matured, it is simply necessary to write it! Sooner or later, someone will write it anyway!
In reply to WhiteLizard
User Avatar
Auto-translated
WhiteLizard;189438
In my opinion, creating a program that predicts the outcome of morale is close to cheating!
Creating it isn't, what does creating a program have to do with cheating?
But using it – I don't even know, most likely if it is written, they will include it in the general rules or the organizers of the tournaments will decide.

Statistics

Welcome our newest member: Emil