colobot-data/help/generic/E/cheats.txt

56 lines
3.6 KiB
Plaintext

\b;Cheats
Great, you have found this secret page. We hope you will use informations contained here only for other than cheating purposes. Like testing the game or recording a cool video about Colobot.
\b;Console
You can open the console by pressing the \key;\c;~\n;\norm; button on your keyboard. Press \key;\c;ENTER\n;\norm; to hide it or pass one of the commands below.
\t;Missions
o \c;winmission \n;Immediately win the current mission
o \c;lostmission \n;Immediately lose the current mission
o \c;allmission \n;All missions are unlocked, works also in main menu
o \c;showsoluce \n;All solutions are unlocked, works also in main menu
\t;Gameplay
o \c;allresearch \n;All researches are done
o \c;allbuildings \n;All buildings are enabled
o \c;all \n;\c;allbuildings\n; + \c;allresearch\n;
o \c;fullenergy \n;Restore energy in the currently selected bot
o \c;fullshield \n;Restore shield in the currently selected object
o \c;fullrange \n;Flying reactor is cold
o \c;fullpower \n;\c;fullenergy\n; + \c;fullshield\n; + \c;fullrange\n;
o \c;selectinsect \n;You can select and control aliens, works also in main menu, type again to disable
o \c;fly \n;You can fly even if flying is disabled in the current mission
o \c;invradar \n;Mini-map works like you would have built a \l;radar\u object\radar;, works also in main menu, type again to disable
o \c;addfreezer \n;Flying reactor heats more slowly
o \c;addhusky \n;You take less damage than usual
o \c;nolimit \n;You can fly higher
o \c;trainerpilot \n;You can drive robots which could be previously controlled only by programs
o \c;noclip \n;The currently selected object can pass through objects
o \c;clip \n;Disable \c;noclip\n; on the currently selected object
o \c;speed \n;Set the speed of the game to the given number, for example \c;speed 2\n; - two times faster, \c;speed 0.5\n; - two times slower, works also in main menu
\t;Debug
These commands work also in main menu. Type them again to set them off.
o \c;showstat \n;Show debug statistics on the screen, \key;F12\norm; keyboard key has the same effect
o \c;debugmode \n;Enable debug mode (useful for the game developers): the verbose debugging of events and other things; make sure you run the game with \c;-loglevel trace\n; to see the effect; see also \c;-debug\n; commandline parameter
\t;Aesthetic
o \c;photo1 \n;Free camera, you can change angle with \key;\c;+\n;\norm; and \key;\c;-\n;\norm; keys, type again to set it off
o \c;photo2 \n;Same as \c;photo1\n;, except it hides interface, type again to set it off
\b;CBOT
There are hidden commands in CBOT that are not even highlighted in the editor. They are considered cheating, so do not use them for "legal" programs. It should be fine to use them for level creation though if there is no other way.
Numbers mean order of parameters.
o \c;\l;produce\u cbot\produce; \n;Immediately creates an object
o \c;ipf \n;Sets the number of instructions per frame, \c;1\n;: the number, default is \c;100\n;
o \c;delete \n;Damages the object, \c;1\n;: object's ID, \c;2\n;: magnifyDamage multiplier, without \c;2\n; the object explodes
o \c;setbuild \n;Sets buildings bitmask, \c;1\n;: new bitmask
o \c;setresearchenable \n;Sets researches bitmask, \c;1\n;: new bitmask
o \c;setresearchdone \n;Sets done researches bitmask, \c;1\n;: new bitmask
o \c;getbuild \n;Returns buildings bitmask
o \c;getresearchenable \n;Returns researches bitmask
o \c;getresearchdone \n;Returns done researches bitmask
o \c;playmusic \n;Plays music, \c;1\n;: file name, \c;2\n;: repeat
o \c;stopmusic \n;Stops music