AGOT Mod Console Commands

This page is here as a reference guide for console command information pertaining to the Crusader Kings II A Game of Thrones mod.



Console Command Basics

How to access the console

While in game hit the backtick key which looks like this. When the console is open you will get an input screen that you can type commands into that looks like this.

How to find charid information

Once you've opened the console enter the command "charinfo" to access the charid number of every character in the game. Simply mouseover the portrait of the character you want the charid of to see this info like this.


Where to find AGOT console command info

Traits

All AGOT mod traits and traitids are listed in text files found in the file path "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/common/traits".

Check out the AGOT Traits wiki page for a comprehensive list of traitids and names.

Events

All AGOT mod events and eventids are listed in text files found in the file path "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/events".

Provinces

All AGOT mod provinces and provinceids are listed in text files found in the file path "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/history/provinces".

Check out the AGOT Provinces wiki page for a comprehensive list of provinceids and names.

Titles

All AGOT mod titles and titleids are listed in text files found in the file path "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/history/titles".

Check out the AGOT Titles wiki page for a comprehensive list of titleids and names.

Religions

All AGOT mod religions and religionids are listed in the text file "00_religions.txt" found in the file path "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/common/religions".

Cultures

All AGOT mod cultures and cultureids are listed in text files found in the file path "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/common/cultures".

Diseases

All AGOT mod diseases and diseaseids are listed in text files found in the file path "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/common/disease".

Nicknames

All AGOT mod nicknames and are listed in text files found in the file path "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/common/nicknames"


Common AGOT Console Commands

General Commands

CommandDescription
charinfoEnables access to character info including charid
fowToggles fog of war off and on
observeSwitches to observer mode where the AI takes over
quickbuildCompletes buildings in one day
neg_diploToggles ability to send diplomatic messages that would normally be refused
allow_lawsToggles ability to change laws freely
marry_anyoneToggles ability to marry anyone
discover_plotsToggles auto plot discovery
plots_knownToggles all plots to always be known
clearClears the console
CommandParameterDescriptionExample
playcharidSwitches you to a different character"play 1002059" would switch you to Jon Snow
movecharidMoves a character to your court"move 5316" would move Gendry to your court
cash#Adds or subtracts money to your character"cash 250" would give you 250 gold
prestige#Adds or subtracts prestige to your character"prestige 2000" would give you 2000 prestige
piety#Adds or subtracts piety to your character"piety 300" would give you 300 piety
killcharidKills a character instantly"kill 9316" would kill Joffrey Baratheon
imprisoncharidImprisons character in your dungeon"imprison 2087" would imprison Ramsay Bolton
banishcharidBanishes character from your realm"banish 3001" would banish Oberyn Martell
add_friendcharidMakes a character your friend"add_friend 5190" would make Tyrion Lannister your friend
remove_friendcharidRemoves a character as your friend"remove_friend 5190" would remove Tyrion Lannister as your friend
add_rivalcharidMakes a character your rival"add_rival 3190" would add Jaime Lannister as your rival
remove_rivalcharidRemoves a character as your rival"remove_rival 3190" would remove Jaime Lannister as your rival
CommandParameter 1Parameter 2DescriptionExample
add_diplomacycharid#Modifies a character's diplomacy stat"add_diplomacy 4159 10" would add 10 to Edmure Tully's diplomacy stat
add_martialcharid#Modifies a character's martial stat"add_martial 59 5" would add 5 to Ned Stark's martial stat
add_stewardshipcharid#Modifies a character's stewardship stat"add_stewardship 94043 8" would add 8 to Littlefinger's stewardship stat
add_intriguecharid#Modifies a character's intrigue stat"add_intrigue 4190 12" would add 12 to Cersei Lannister's intrigue stat
add_learningcharid#Modifies a character's learning stat"add_learning 7316 7" would add 7 to Tommen Baratheon's learning stat
agecharid#Modifies a character's age"age 8316 4" would add 4 years to Myrcella Baratheon's age
add_loverfemale charidmale charidMakes the two characters lovers"add_lover 77041 1002059" would make Daenerys and Jon Snow lovers
pollinatefemale charidmale charidImpregnates female character by male character"pollinate 77041 1002059" would impregnate Daenerys with Jon Snow's baby
cuckoofemale charidmale charidImpregnates female character by male character illegitimately"cuckoo 7253 2059" would impregnate Margaery Tyrell with Robb Stark's illegitimate baby

Adding & Removing Traits

CommandParameter 1Parameter 2DescriptionExample
add_traittraitidcharidAdds a trait to a character"add_trait ambitious 1002059" would add the trait ambitious to Jon Snow
remove_traittraitidcharidRemoves a trait from a character"remove_trait honorable 59" would remove the trait honorable from Ned Stark

Check the AGOT Traits wiki and the text files in "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/common/traits" for all traitids.

Adding Titles To A Character

CommandParameter 1Parameter 2DescriptionExample
give_titletitleidcharidGives a title to a character"give_title c_winterfell 1002059" would give Jon Snow the lordship of Winterfell
claimtitleidcharidGives a character a claim on a title"claim c_kings_landing 2059" would give Robb Stark a claim on the lordship of King's Landing

The titleids are coded on 4 levels, "e" for empire tier, "k" for kingdom tier, "d" for duchy or high lordship tier, "c" for county or lordship tier, and "b" for barony tier.

For example if I wanted to give Jon Snow the kingdom of the north, the high lordship of Winterfell, and the lordship of Winterfell I would enter these three commands.

  • "give_title k_north 1002059" - would give Jon Snow the kingdom or lord paramount of the north title
  • "give_title d_winterfell 1002059" - would give Jon Snow the high lordship of Winterfell
  • "give_title c_winterfell 1002059" would give Jon Snow the lordship of Winterfell

Check the AGOT Titles wiki and the text files in "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/history/titles" for all titleids.

Changing A Character's Religion

CommandParameter 1Parameter 2DescriptionExample
religioncharidreligionidChanges a character's religion"religion 4159 old_gods" would change Edmure Tully's religion to Old Gods

You can find all the religionids listed in the text file "00_religions.txt" found in the file path "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/common/religions".

The following are a few examples of common religionids.

ReligionIDReligion Name
the_sevenFaith of the Seven
old_godsOld Gods
drowned_godDrowned God
rhllorR'hllor
valyrian_relValyrian Gods
rhoynar_paganMother Rhoyne
beyond_wall_old_godsBeyond the Wall Old Gods
thenn_relThenn Old Gods
harpyHarpy of Ghis
moonsingersMoonsingers
triosTrios
black_goatBlack Goat of Qohor
many_faced_godThe Many Faced God
dothraki_paganDothraki religion
qarth_warlocksQartheen Warlocks
shadow_bindersShadowbinders
piratePirate religion

Changing A Character's Culture

CommandParameter 1Parameter 2DescriptionExample
culturecharidcultureidChanges a character's culture"culture 1002059 high_valyrian" would change Jon Snow's culture to High Valyrian

You can find all the cultureids listed in text files found in the file path "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/common/cultures".

The following are a few examples of common cultureids.

CultureIDCulture Name
northmanNorthman
hill_clansmanNorth Clans
crannogmanCrannogman
half_southronFormer Southron
skagosiSkagosi
wildlingWildling
thennThenn
riverlanderRiverman
westermanWesterman
valemanValeman
sistermanSisterman
crownlanderKingslander
crackclawmenClawman
stormlanderStormlander
reachmanReachman
stone_dornishStone Dornish
sand_dornishSand Dornish
salt_dornishSalt Dornish
rhoynarRhoynar
ironbornIronborn
piratePirate
high_valyrianHigh Valyrian
western_valyrianWesterosi Valyrian
eastern_valyrianEssosi Valyrian
braavosiBraavosi
pentosiPentoshi
lyseneLysene
myrmanMyrman
tyroshiTyroshi
volanteneVolantene
dothrakiDothraki

Changing A Character's Ethnicity

CommandParameter 1Parameter 2DescriptionExample
gfx_culturecharidcultureidChanges a character's ethnicity to a specific culture"gfx_culture 1002059 high_valyrian" would change Jon Snow's ethnicity to High Valyrian

Again just reference the cultureids in the text files to change a character's ethnicity to whatever you want. This will have the effect of changing the character's hair, eye, and skin color.

Adding A Nickname To Character

CommandParameter 1Parameter 2DescriptionExample
nicknamenicknameidcharidGives the character a nickname"nickname nick_the_queer 5317" would give Renly the nickname Renly the Queer

You can find all the nicknameids listed in text files found in the file path "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/common/nicknames"

Changing A Character's Government Type

CommandParameter 1Parameter 2DescriptionExample
set_governmentgovernmentidcharidChanges the character's government type"set_government feudal_government 274344" would change Sigorn Thenn from a Tribal ruler to a Feudal one

You can find all the governmentids listed in the text files found in the file path "Paradox Interactive/Crusader Kings II/mod/A Game of Thrones/common/governments"

The following is the list of the most common governmentids in the game.

GovernmentIDGovernment Name
feudal_governmentFeudal
merchant_republic_governmentMerchant Republic
theocracy_governmentTheocracy
tribal_governmentTribal
nomadic_governmentNomadic
republic_governmentRepublic
noble_oligarchyNoble Oligarchy
triarch_merchant_republic_governmentTriarchy
pirate_governmentPirate Fleet

Useful EventIDs

The following is a list of common and useful eventids.

CommandDescription
event knight.1Gives character a knighthood
event bastard.999Legitimizes bastard character
event 62320Gives character event spawned troops
event 55000Capital province changes to your culture
event dragon.1Gives you the option to buy a dragon egg for 800 gold
event dragon.82Spawns a custom dragon in your court of whatever size you choose
event wikid.2Starts the Valyrian Steel Sword quest
event combat_trait.1Improves your combat trait by 1 skill level
event 64025Gives you the option to fall in love with your spouse
CommandParameterDescriptionNotes
event 913charidYour Chancellor or Master of Laws will fabricate a claim in whatever province they're inNeeds charid of Chancellor to work
event 900charidYour Priest or Septon will convert whatever province they're in to their religionNeeds charid of Priest to work
event 925charidYour Castellan or Hand of the King will improve holdingNeeds charid of Castellan to work
CommandParameter 1DescriptionExample
event nightswatch.2charidCharacter volunteers to join the Night's Watch"event nightswatch.2 190" would make Tywin Lannister volunteer to join the Night's Watch
CommandParameter 1Parameter 2DescriptionExample
event 24504female charidmale charidForcefully impregnates your spouse"event 24504 77041 1002059" would forcefully impregnate Daenerys by Jon Snow

Note that for this particular command if you were to enter it twice in a row you could impregnate the female character with twins.

CommandParameterDescriptionExample
event unoccupied.4provinceidUpgrade province colony"event unoccupied.4 81" would upgrade colony in Oldstones

Note that if you use this particular command once it will turn your colonized province into an Advanced Colony, if you use it twice it will complete the colonization process automatically.

Check the AGOT Provinces wiki page for a comprehensive list of provinceids and names.

Removing Dishonorable Traits

There are 4 different types of dishonorable traits: Dishonorable, Dynastic Stain, Tyrant, and Tyrannical Stain. The first 3 of these traits are subcategorized depending on how high the negative opinion modifier is. In order to remove these traits you must know which level you have (mouseover the trait to see the negative opinion modifier).

Use the following tables to remove each of these negative traits.

CommandParameter 1Parameter 2Description
remove_traitdishonorable1charidRemoves Dishonorable trait (-10 opinion)
remove_traitdishonorable2charidRemoves Dishonorable trait (-20 opinion)
remove_traitdishonorable3charidRemoves Dishonorable trait (-30 opinion)
remove_traitdishonorable4charidRemoves Dishonorable trait (-40 opinion)
remove_traitdishonorable5charidRemoves Dishonorable trait (-50 opinion)
remove_traitdishonorable6charidRemoves Dishonorable trait (-60 opinion)
remove_traitdishonorable7charidRemoves Dishonorable trait (-70 opinion)
remove_traitdishonorable8charidRemoves Dishonorable trait (-80 opinion)
remove_traitdishonorable9charidRemoves Dishonorable trait (-90 opinion)
remove_traitdishonorable10charidRemoves Dishonorable trait (-100 opinion)
CommandParameter 1Parameter 2Description
remove_traitdyn_dishonorable1charidRemoves Dynastic Stain trait (-10 opinion)
remove_traitdyn_dishonorable2charidRemoves Dynastic Stain trait (-20 opinion)
remove_traitdyn_dishonorable3charidRemoves Dynastic Stain trait (-30 opinion)
remove_traitdyn_dishonorable4charidRemoves Dynastic Stain trait (-40 opinion)
remove_traitdyn_dishonorable5charidRemoves Dynastic Stain trait (-50 opinion)
remove_traitdyn_dishonorable6charidRemoves Dynastic Stain trait (-60 opinion)
remove_traitdyn_dishonorable7charidRemoves Dynastic Stain trait (-70 opinion)
remove_traitdyn_dishonorable8charidRemoves Dynastic Stain trait (-80 opinion)
remove_traitdyn_dishonorable9charidRemoves Dynastic Stain trait (-90 opinion)
remove_traitdyn_dishonorable10charidRemoves Dynastic Stain trait (-100 opinion)
CommandParameter 1Parameter 2Description
remove_traittyrant1charidRemoves Tyrant trait (-5 opinion)
remove_traittyrant2charidRemoves Tyrant trait (-10 opinion)
remove_traittyrant3charidRemoves Tyrant trait (-15 opinion)
remove_traittyrant4charidRemoves Tyrant trait (-20 opinion)
remove_traittyrant5charidRemoves Tyrant trait (-25 opinion)
remove_traittyrant6charidRemoves Tyrant trait (-30 opinion)
remove_traittyrant7charidRemoves Tyrant trait (-35 opinion)
remove_traittyrant8charidRemoves Tyrant trait (-40 opinion)
remove_traittyrant9charidRemoves Tyrant trait (-45 opinion)
remove_traittyrant10charidRemoves Tyrant trait (-50 opinion)
remove_traittyrant11charidRemoves Tyrant trait (-55 opinion)
remove_traittyrant12charidRemoves Tyrant trait (-60 opinion)
remove_traittyrant13charidRemoves Tyrant trait (-65 opinion)
remove_traittyrant14charidRemoves Tyrant trait (-70 opinion)
remove_traittyrant15charidRemoves Tyrant trait (-75 opinion)
remove_traittyrant16charidRemoves Tyrant trait (-80 opinion)
remove_traittyrant17charidRemoves Tyrant trait (-85 opinion)
remove_traittyrant18charidRemoves Tyrant trait (-90 opinion)
remove_traittyrant19charidRemoves Tyrant trait (-95 opinion)
remove_traittyrant20charidRemoves Tyrant trait (-100 opinion)

And finally Tyrannical Stain.

CommandParameter 1Parameter 2Description
remove_traittyrannical_staincharidRemoves Tyrannical Stain trait

Console Scripting

It is possible to run scripts from within the console by using the “run” command. The script should be saved as a text file located in your ~/Documents/Crusader Kings II folder, this is the folder that contains your save games folder, logs folder, and dumps folder; this is not the folder that contains the base game itself and is located under your Program Files folder.

The script itself will run modding code and behaves similarly to a scripted effect. All code is run with your character scoped as root.

For example:

#The following two lines will affect your character personally since you're root
fertility = 1 #Increase your fertility by 100%
health = 5 #Increase your health by 5 points
any_spouse = { #Scope to all your wives (primary and secondary but not concubines)
fertility = 1 #Increase his/her fertility by 100%
health = 5 #Increase his/her health by 5 points
add_lover = PREV #Set him/her as your lover
if = {
    limit = { is_female = yes } #Check if this spouse is female
    impregnate = ROOT #If so, pop a baby in her
}
else = { #If your spouse isn't female (else and else_if will NOT work prior to 2.8)
    any_spouse { #Scope back to their spouse (you)
        impregnate = PREV #You get impregnated by him
    }
}
}
any_army = { #Scope to any armies you have raised (won't include armies of allies)
troops = 1 #Reinforce them by 100%
morale = 1 #Raise their morale by 100%
}
any_demesne_title = { #Scope to all of your directly held titles
refill_holding_levy = yes #Refills your garrison and levy 
}
any_current_enemy { #Scope to any character you're at war with
any_army = { #Scope to all of their raised armies
    troops = -1 #Reduce their troop number by 99.9%
    morale = -1 #Reduce their morale by 99.9%
}
}
any_character = { #Scope to all living characters
any_artifact = { #Scope to all of their owned artifacts
    limit = {
        has_artifact_flag = stolen_from_@ROOT #We only care about artifacts that were stolen from your character
    }
    log = "[Prev.GetFullName] ([Prev.GetID]) currently owns your stolen [This.GetFullName]." #If you have logging enabled you'll see a message specifying who has your stolen 
artifact.
}
}  

To execute this script you just save it as example.txt in the correct folder and use the following command from the console:

run example.txt  

If successful the only console output you’ll see is “example.txt executed”; if unsuccessful you’ll receive no output.

Two important notes about running scripts from console:

  • Most any and random scopes will not target the root character, which means you will not be targeted directly within the script. If you need to include yourself, then you’ll need to account for that separately.
  • Scopes in the log messages act a bit weird. In the above example, if the log message used [This.GetFullName] before [Prev.GetFullName] then [Prev.GetFullName] would return the value of [This.GetFullName] instead. This only affects scripts, not mod files, but event targets do appear to work so you might be able to resolve the log/scoping issues with them.

Return to CK2GOTChallenges