Cheat Codes
Codes
Similar to H3, VCMI provides cheat codes to make testing game more convenient.
To use cheat code, press Tab
key or click/tap on status bar to open game chat and enter code. Most cheat codes have several alternative names, including name of this cheat code in H3:SoD, H3:AB and H3:RoE
Spells
nwcthereisnospoon
,nwcmidichlorians
,nwctim
,vcmiistari
orvcmispells
- give a spell book, all spells and 999 mana to currently selected hero. Also allows casting spell up to 100 times per combat round
Secondary Skills
vcmiskill <skillID> <mastery>
- give a secondary skill to currently selected hero
Examples:
vcmiskill learning
- give expert level learning skillvcmiskill leadership 2
- give advanced level leadership skillvcmiskill wisdom 0
- remove wisdom skillvcmiskill every
- give all skills on expert levelvcmiskill every 0
- remove all skills
Army
nwctrinity
,nwcpadme
,nwcavertingoureyes
,vcmiainur
orvcmiarchangel
- give 5 Archangels in every empty slot (to currently selected hero)nwcagents
,nwcdarthmaul
,nwcfleshwound
orvcmiangband
orvcmiblackknight
- give 10 black knight in every empty slotvcmiglaurung
orvcmicrystal
- give 5000 crystal dragons in every empty slotvcmiazure
- give 5000 azure dragons in every empty slot-
vcmifaerie
- give 5000 faerie dragons in every empty slot -
Alternative usage:
vcmiarmy <creatureID> <amount>
Gives specific creature in every slot, with optional amount. Examples:
vcmiarmy imp
- give 5, 50, 500... 500k imps in every free slotvcmiarmy grandElf 100
- gives 100 grand elves in every free slot
Town buildings
nwczion
,nwccoruscant
,nwconlyamodel
,vcmiarmenelos
orvcmibuild
- build all buildings in currently selected town
Artifacts
nwclotsofguns
,nwcr2d2
,nwcantioch
,vcminoldor
orvcmimachines
- give ballista, ammo cart and first aid tentvcmiforgeofnoldorking
orvcmiartifacts
- give all artifacts, except spell book, spell scrolls and war machines. Artifacts added via mods includedvcmiscrolls
- give spell scrolls for every possible spells
Movement points
nwcnebuchadnezzar
,nwcpodracer
,nwccoconuts
,vcminahar
orvcmimove
- give unlimited (or specified amount of) movement points and free ship boarding- Alternative usage:
vcmimove <amount>
- gives specified amount of movement points
Resources
nwctheconstruct
,nwcwatto
,nwcshrubbery
,vcmiformenos
orvcmiresources
- give resources (100000 gold, 100 of wood, ore and rare resources)- Alternative usage:
vcmiresources <amount>
- gives specified amount of all resources and x1000 of gold
Fog of War
nwcwhatisthematrix
,nwcrevealourselves
,nwcgeneraldirection
,vcmieagles
orvcmimap
- reveal Fog of Warnwcignoranceisbliss
,vcmiungoliant
orvcmihidemap
- conceal Fog of War
Experience
nwcneo
,nwcquigon
,nwcigotbetter
,vcmiglorfindel
orvcmilevel
- advances currently selected hero to the next level-
Alternative usage:
vcmilevel <amount>
- advances hero by specified number of levels -
vcmiolorin
orvcmiexp
- gives selected hero 10000 experience - Alternative usage:
vcmiexp <amount>
- gives selected hero specified amount of experience
Luck and morale
nwcfollowthewhiterabbit
,nwccastleanthrax
orvcmiluck
- the currently selected hero permanently gains maximum lucknwcmorpheus
,nwcmuchrejoicing
orvcmimorale
- the currently selected hero permanently gains maximum morale
Puzzle map
nwcoracle
,nwcprophecy
,nwcalreadygotone
orvcmiobelisk
- reveals the puzzle map
Finishing the game
nwcredpill
,nwctrojanrabbit
,vcmisilmaril
orvcmiwin
- player winsnwcbluepill
,nwcsirrobin
,vcmimelkor
orvcmilose
- player loses
Misc
nwctheone
orvcmigod
- reveals the whole map, gives 5 archangels in each empty slot, unlimited movement points and permanent flightnwcphisherprice
orvcmicolor
- change game color palette to Heroes II like until game restartvcmigray
- change game color palette to grayscale until game restart
Using cheat codes on other players
By default, all cheat codes apply to current player. Alternatively, it is possible to specify player that you want to target:
- Specific players:
red
/blue
/green
... - Only AI players:
ai
- All players:
all
Examples
vcmieagles blue
- reveal FoW only for blue playervcmieagles ai
- reveal FoW only for AI playersvcmieagles all
- reveal FoW for all players on mapvcminahar ai
- give 1000000 movement points to each hero of every AI player
Multiplayer chat commands
Following commands can be used in multiplayer only by host player to control the session:
!exit
- finish the game!save <filename>
- save the game into the specified file!kick red/blue/tan/green/orange/purple/teal/pink
- kick player of specified color from the game!kick 0/1/2/3/4/5/6/7/8
- kick player of specified ID from the game (zero indexed!) (0: red, 1: blue, tan: 2, green: 3, orange: 4, purple: 5, teal: 6, pink: 7
)
Following commands can be used by any player in multiplayer:
!help
- displays in-game list of available commands!cheaters
- lists players that have entered cheat at any point of the game!vote
- initiates voting to change one of the possible options:!vote simturns allow X
- allow simultaneous turns for specified number of days, or until contact!vote simturns force X
- force simultaneous turns for specified number of days, blocking player contacts!vote simturns abort
- abort simultaneous turns once this turn ends!vote timer prolong X
- prolong base timer for all players by specified number of seconds
Client Commands
Client commands are set of predefined commands that are supported by VCMI, but unlike cheats they perform utility actions that do not alter state of the gameplay. As of release 1.2 client commands can work by typing them in-game like cheats, preceded by symbol / (for example /controlai blue
)
Alternative way, the only one working for older releases is typing them in console: Console is separated from game window on desktop versions of VCMI Client. Windows builds of VCMI run separate console window by default, on other platforms you can access it by running VCMI Client from command line.
Below a list of supported commands, with their arguments wrapped in <>
Game Commands
die, fool
- quits gamesave <filename>
- saves game in given file (at the moment doesn't work)mp
- on adventure map with a hero selected, shows heroes current movement points, max movement points on land and on waterbonuses
- shows bonuses of currently selected adventure map object
Extract commands
translate
- save game texts into json filestranslate missing
- save untranslated game texts into json filestranslate maps
- save map and campaign texts into json filesget config
- save game objects data into json filesget scripts
- dumps lua script stuff into files (currently inactive due to scripting disabled for default builds)get txt
- save game texts into .txt files matching original heroes 3 filesdef2bmp <.def file name>
- extract .def animation as BMP filesextract <relative file path>
- export file into directory used by other extraction commandsgenerate assets
- generate all assets at once
AI commands
setBattleAI <ai name>
- change battle AI used by neutral creatures to the one specified, persists through game quitgosolo
- AI takes over until the end of turn (unlike original H3 currently causes AI to take over until typed again)controlai <[red][blue][tan][green][orange][purple][teal][pink]>
- gives you control over specified AI player. If none is specified gives you control over all AI playersautoskip
- Toggles autoskip mode on and off. In this mode, player turns are automatically skipped and only AI moves. However, GUI is still present and allows to observe AI moves. After this option is activated, you need to end first turn manually. Press[Shift]
before your turn starts to not skip it
Settings
set <command> <on/off>
- sets special temporary settings that reset on game quit. Below some of the most notable commands:autoskip
- identical toautoskip
optiononlyAI
- run without human player, all players will be default AIheadless
- run without GUI, impliesonlyAI
is setshowGrid
- display a square grid overlay on top of adventure mapshowBlocked
- show blocked tiles on mapshowVisitable
- show visitable tiles on maphideSystemMessages
- suppress server messages in chatantilag
- toggles network lag compensation in multiplayer on or off
Developer Commands
crash
- force a game crash. It is sometimes useful to generate memory dump file in certain situations, for example game freezegui
- displays tree view of currently present VCMI common GUI elementsactivate <0/1/2>
- activate game windows (no current use, apparently broken long ago)redraw
- force full graphical redrawscreen
- show value of screenBuf variable, which prints "screen" when adventure map has current focus, "screen2" otherwise, and dumps values of both screen surfaces to .bmp filestell hs <hero ID> <artifact slot ID>
- write what artifact is present on artifact slot with specified ID for hero with specified ID. (must be called during gameplay)