Not every game has them (Civ 6, for example, is oddly absent of cheat codes), but plenty others do. So, you want some Medieval 2: Total War cheats? Using console commands to get a leg up in videogames is a time honoured tradition, although it seems to be more commonly associated with strategy games given their nature.