Auto-translated
But the second one just won't work. I found a script !!MP:S#, which allows you to replace the standard in-game melody, but I can't figure out how to make it play immediately when visiting an object. When I use !!MP:P, the game gives an error. What could be the reason for this?
And another question - is it possible to disable the ability to enter cheats by editing files or using scripts? Or to disable the chat altogether?
If you get an error on the !!MP:P receiver, then most likely you either have an old version of ERA or a regular WoG. Because the ability to expand the functionality of working with sound files was added somewhere in version 2.8.8 or later.
Clarification: the MP3 file itself must physically be present in your mod, and the mod must be enabled in the mod manager.
Example of file location: HoMM3 ERA\Mods\Stalker\MP3\guitar.mp3 Here, the Stalker directory is the name of the mod (you will have your own), enabled in the mod manager.
Regarding disabling cheat input: it is possible to change/add your own reaction to input using scripts. As an example, when any cheat is entered, activate a loss, or prescribe some other "punitive" measure. You can completely disable the use of chat (add your own script reaction to the TAB key).
Example:
!?FU(OnChat)&x1=1;
!!SN:X?t/?z2;
!VRz100:S^WOGSARUMAN^; cheat for all spells on the adventure map
!!UN&z2=z100:Q0/1; loss for the active player
-------------------------------------------
This script will only work on ERA; on WoG, it will most likely give an error.
-------------------------------------------
If you need any other scripts, you can look at the examples in my Stalker map-mod.
A little lower in this section, there is a subsection with this mod, with links for download.