Hello everyone! I want to add the ability to call the "Marketplace" window in Heroes 2 using the hotkey "M" in the "Kingdom Overview Screen" mode, similar to how it's done in Heroes 4.
As I understand it, the "Marketplace" is a separate, fully functional module. By default, it's called in the "Town Screen" module by clicking with the left mouse button.
Those who develop mods for Heroes, maybe you know how to add an additional key press event or how to replace an existing event (which causes the hero to move on the map when "M" is pressed). An event that would call the "Marketplace" module when "M" is pressed in the "Kingdom Overview Screen" mode?
Perhaps there's a place in the code where the keys are defined, and you can assign or add the necessary functions to them without rebuilding a new version of Heroes2.exe. Since the game was developed for MS-DOS, and I don't have the source code, I won't be able to edit it.
(I'm thinking of searching for the key press event for the "M" key in the heroes2.exe file using a debugger and then replacing the address of the called function with the address of the "Marketplace" module. I would like to do this in a simpler way. The difficulty is also that I play through DOSBox).