Auto-translated
I decided to provide cheat codes for Heroes 4, since there are similar topics in the sections about Heroes 3 and Heroes 5.
nwcValhalla - win the scenario
nwcRagnarok - lose the scenario
nwcGoSolo - the computer plays against itself (also makes moves for you)
nwcPrometheus - reveal the entire map and remove the "fog of war"
nwcSphinx - reveal the Puzzle Map (you must visit at least one Oracle beforehand)
nwcAmbrosia - gives +200,000 gold and +300 of each other resource
nwcHermes - gives the selected army unlimited movement on the map for 1 turn
nwcExcalibur - takes a screenshot of the ENTIRE map and saves it in the Heroes IV directory as entire_map.bmp
-----------------------------
Codes for leveling up a hero (the hero must be in the first slot of the selected army)
----------------
nwcAthena - allows you to choose any skill of any level for the hero
nwcThoth - increases the hero's level
nwcIsis - learn all available skills (the hero must possess the corresponding magic skill of the required level)
--------------------------------
Artifacts for the hero (the hero-leader of the specified army receives the artifact)
-------------------
nwcEtTuBrute - gives the artifact Tynan's Dagger of Despair
nwcNibelungenlied - gives the artifact Ring of Great Negation
------------------------------------
Adds monsters to the selected army (there must be a free slot or a slot with the same monsters)
--------------------
nwcTristram - crusaders
nwcLancelot - champions
nwcStMichael - angels
nwcSevenLittleGuys - dwarves
nwcMerlin - magi
nwcCronus - titans
nwcBlahBlah - vampires
nwcHades - devils
nwcUnderTheBridge - trolls
nwcKingMinos - minotaur
nwcXanthus - nightmares
nwcFafnir - black_dragons
nwcDoYouSmellBrownies - sprites
nwcFenrir - wolves
nwcFixMyShoes - elves
nwcTheLast - unicorn
nwcRa - phoenix
nwcValkyries - ogre_magi
nwcGrendel - behemoth
nwcPoseidon - sea_monster
-------------------------------------
Entered on the battle screen
------------------------
nwcAres - win the battle
nwcAchilles - lose the battle
nwcOldMan - turns the selected hero into an old man, reducing movement range by -4
--------------------------------------
Entered on the town screen
------------------------
nwcCityOfTroy - build all buildings in the town