Age of Empires 2: Age of Kings

Effect Key Sequence
Build Immutable Structure Press [Ctrl] + P in the game
Alternate Resource Menu Press [Ctrl] + T in the game
Quick Build Press [Ctrl] + Q in the game
View End Sequence Press [Ctrl] + C in the game

 While playing press [Enter], then any of the following codes, then [Enter] again:

Effect Code to type in
1000 Stone ROCK ON
1000 Wood LUMBERJACK
1000 Gold ROBIN HOOD
1000 Food CHEESE STEAK JIMMY'S
Reveal Map MARCO
Remove Shadow POLO
Fast Build AEGIS
Control Nature NATURAL WONDERS
Lose RESIGN
Destroy Yourself WIMPYWIMPYWIMPY
Get VDML I LOVE THE MONKEY HEAD
Get a Cobra car HOW DO YOU TURN THIS ON
Kill Opponent # TORPEDO#
Get a Saboteur TO SMITHEREENS
Destroy All Enemies BLACK DEATH
Win I R WINNER

Fast Resources: Use the following trick to rapidly enter the cheat codes and get resources quickly. For wood, press [Enter], type lumberjack, highlight the word, then press [Ctrl] + C to copy it. Press [Enter] to activate the cheat. Press [Enter] again, then press Ctrl + V to paste the word on the screen for activation. Repeat to get resources quickly. This may be used with the rock on, robin hood, cheese stack jimmy's, and to smithereens codes.

You may also start the game with the following command-line parameters:

 Commandline Parameter  Effect
 800  Sets the screen resolution for the game to 800 x 600 pixels
 1024  Sets the screen resolution for the game to 1024 x 768 pixels
 1280  Sets the screen resolution for the game to 1280 x 1024 pixels
 autompsave  This will cause the game to save every 5 (or so) minutes.
 Mfill  Fixes horizontal line display issues and black screen areas that may occur with some video adapter configurations.
 Msync  Fixes a problem where the computer stops responding with some SoundBlaster AWE configurations.
 NoMusic  Turns off all music.
 NormalMouse  Replaces the custom mouse pointer with a standard mouse pointer.
 NoSound  Turns off all sounds, except those played in cinematics.
 NoStartup  Skips all cinematic sequences before the game starts.
 NoTerrainSound  Turns off all terrain sounds.

Free Ally: When you build a market, there is a chance that a rival tribe will ask you to send them a certain amount of wood, stone, gold, and food. When they do, click on "Diplomacy" (or press [Alt] + D) and click "Ally" on the name of that tribe. They will become an ally free of charge. However, when you do this you will no longer be able to align yourself with any other tribes. This is especially helpful if there are four tribes in the game.