Skip to content

HoMM3 HD is a mod (add-on) for the game Heroes of Might and Magic 3.

#670
Auto-translated
rebellious
Did you really think that I started testing the mod for the first time today?:eek:

Well, you allowed yourself to assume that I don't know about disabling the second button :D
baratorch

Regarding one-way transfer.
Currently, in HD, when transferring
several stacks of the same type, they are combined into one stack in the recipient, even if there are empty slots in the recipient.
Here's an idea: transfer such stacks without combining them if there is no need for combining (so that you can fit the maximum number of creatures from the source) - you can make a phased transfer by holding down a [key] and clicking on the one-way transfer button - first, stacks are transferred without combining, and upon repeated pressing, the army in the recipient is compacted, and the remaining creatures are transferred.

Also, regarding the general transfer algorithm.
Currently, the algorithm for the order of stack transfer looks like this:
- the highest level
- if there are several creatures of the same level, the grade is selected
- if there are several creatures of the same level and the same 'grade', then the stack with the largest number of creatures is selected (and it must be at least twice as large - this is a strange point, it definitely needs to be changed).
- otherwise, it's simply in order from left to right.

I think we can add the so-called FightValue of the stack to the algorithm here.
We can make FightValue the first criterion, or we can take into account its own, original FightValue, for example, the one proposed in the latest "Heroes' Herald".

Yes, everything seems to work fine there; at least, I won't have time in the game to take into account such nuances when transferring. I'll dump everything, and then, if necessary, I'll change it; it will be easier for me than planning the transfer, taking into account a complex algorithm.
Награда: Лучшему игроку сезона Осень 2009 за замок Конфлюкс