Connect with us

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

Command Description
charinfo Enables access to character info including charid
fow Toggles fog of war off and on
observe Switches to observer mode where the AI takes over
quickbuild Completes buildings in one day
neg_diplo Toggles ability to send diplomatic messages that would normally be refused
allow_laws Toggles ability to change laws freely
marry_anyone Toggles ability to marry anyone
discover_plots Toggles auto plot discovery
plots_known Toggles all plots to always be known
clear Clears the console
Command Parameter Description Example
play charid Switches you to a different character “play 1002059” would switch you to Jon Snow
move charid Moves 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
kill charid Kills a character instantly “kill 9316” would kill Joffrey Baratheon
imprison charid Imprisons character in your dungeon “imprison 2087” would imprison Ramsay Bolton
banish charid Banishes character from your realm “banish 3001” would banish Oberyn Martell
add_friend charid Makes a character your friend “add_friend 5190” would make Tyrion Lannister your friend
remove_friend charid Removes a character as your friend “remove_friend 5190” would remove Tyrion Lannister as your friend
add_rival charid Makes a character your rival “add_rival 3190” would add Jaime Lannister as your rival
remove_rival charid Removes a character as your rival “remove_rival 3190” would remove Jaime Lannister as your rival
Command Parameter 1 Parameter 2 Description Example
add_diplomacy charid # Modifies a character’s diplomacy stat “add_diplomacy 4159 10” would add 10 to Edmure Tully’s diplomacy stat
add_martial charid # Modifies a character’s martial stat “add_martial 59 5” would add 5 to Ned Stark’s martial stat
add_stewardship charid # Modifies a character’s stewardship stat “add_stewardship 94043 8” would add 8 to Littlefinger’s stewardship stat
add_intrigue charid # Modifies a character’s intrigue stat “add_intrigue 4190 12” would add 12 to Cersei Lannister’s intrigue stat
add_learning charid # Modifies a character’s learning stat “add_learning 7316 7” would add 7 to Tommen Baratheon’s learning stat
age charid # Modifies a character’s age “age 8316 4” would add 4 years to Myrcella Baratheon’s age
add_lover female charid male charid Makes the two characters lovers “add_lover 77041 1002059” would make Daenerys and Jon Snow lovers
pollinate female charid male charid Impregnates female character by male character “pollinate 77041 1002059” would impregnate Daenerys with Jon Snow’s baby
cuckoo female charid male charid Impregnates female character by male character illegitimately “cuckoo 7253 2059” would impregnate Margaery Tyrell with Robb Stark’s illegitimate baby

Adding & Removing Traits

Command Parameter 1 Parameter 2 Description Example
add_trait traitid charid Adds a trait to a character “add_trait ambitious 1002059” would add the trait ambitious to Jon Snow
remove_trait traitid charid Removes 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

Command Parameter 1 Parameter 2 Description Example
give_title titleid charid Gives a title to a character “give_title c_winterfell 1002059” would give Jon Snow the lordship of Winterfell
claim titleid charid Gives 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

Command Parameter 1 Parameter 2 Description Example
religion charid religionid Changes 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.

ReligionID Religion Name
the_seven Faith of the Seven
old_gods Old Gods
drowned_god Drowned God
rhllor R’hllor
valyrian_rel Valyrian Gods
rhoynar_pagan Mother Rhoyne
beyond_wall_old_gods Beyond the Wall Old Gods
thenn_rel Thenn Old Gods
harpy Harpy of Ghis
moonsingers Moonsingers
trios Trios
black_goat Black Goat of Qohor
many_faced_god The Many Faced God
dothraki_pagan Dothraki religion
qarth_warlocks Qartheen Warlocks
shadow_binders Shadowbinders
pirate Pirate religion

Changing A Character’s Culture

Command Parameter 1 Parameter 2 Description Example
culture charid cultureid Changes 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.

CultureID Culture Name
northman Northman
hill_clansman North Clans
crannogman Crannogman
half_southron Former Southron
skagosi Skagosi
wildling Wildling
thenn Thenn
riverlander Riverman
westerman Westerman
valeman Valeman
sisterman Sisterman
crownlander Kingslander
crackclawmen Clawman
stormlander Stormlander
reachman Reachman
stone_dornish Stone Dornish
sand_dornish Sand Dornish
salt_dornish Salt Dornish
rhoynar Rhoynar
ironborn Ironborn
pirate Pirate
high_valyrian High Valyrian
western_valyrian Westerosi Valyrian
eastern_valyrian Essosi Valyrian
braavosi Braavosi
pentosi Pentoshi
lysene Lysene
myrman Myrman
tyroshi Tyroshi
volantene Volantene
dothraki Dothraki

Changing A Character’s Ethnicity

Command Parameter 1 Parameter 2 Description Example
gfx_culture charid cultureid Changes 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

Command Parameter 1 Parameter 2 Description Example
nickname nicknameid charid Gives 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

Command Parameter 1 Parameter 2 Description Example
set_government governmentid charid Changes 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.

GovernmentID Government Name
feudal_government Feudal
merchant_republic_government Merchant Republic
theocracy_government Theocracy
tribal_government Tribal
nomadic_government Nomadic
republic_government Republic
noble_oligarchy Noble Oligarchy
triarch_merchant_republic_government Triarchy
pirate_government Pirate Fleet

Useful EventIDs

The following is a list of common and useful eventids.

Command Description
event knight.1 Gives character a knighthood
event bastard.999 Legitimizes bastard character
event 62320 Gives character event spawned troops
event 55000 Capital province changes to your culture
event dragon.1 Gives you the option to buy a dragon egg for 800 gold
event dragon.82 Spawns a custom dragon in your court of whatever size you choose
event wikid.2 Starts the Valyrian Steel Sword quest
event combat_trait.1 Improves your combat trait by 1 skill level
event 64025 Gives you the option to fall in love with your spouse
Command Parameter Description Notes
event 913 charid Your Chancellor or Master of Laws will fabricate a claim in whatever province they’re in Needs charid of Chancellor to work
event 900 charid Your Priest or Septon will convert whatever province they’re in to their religion Needs charid of Priest to work
event 925 charid Your Castellan or Hand of the King will improve holding Needs charid of Castellan to work
Command Parameter 1 Description Example
event nightswatch.2 charid Character volunteers to join the Night’s Watch “event nightswatch.2 190” would make Tywin Lannister volunteer to join the Night’s Watch
Command Parameter 1 Parameter 2 Description Example
event 24504 female charid male charid Forcefully 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.

Command Parameter Description Example
event unoccupied.4 provinceid Upgrade 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.

Command Parameter 1 Parameter 2 Description
remove_trait dishonorable1 charid Removes Dishonorable trait (-10 opinion)
remove_trait dishonorable2 charid Removes Dishonorable trait (-20 opinion)
remove_trait dishonorable3 charid Removes Dishonorable trait (-30 opinion)
remove_trait dishonorable4 charid Removes Dishonorable trait (-40 opinion)
remove_trait dishonorable5 charid Removes Dishonorable trait (-50 opinion)
remove_trait dishonorable6 charid Removes Dishonorable trait (-60 opinion)
remove_trait dishonorable7 charid Removes Dishonorable trait (-70 opinion)
remove_trait dishonorable8 charid Removes Dishonorable trait (-80 opinion)
remove_trait dishonorable9 charid Removes Dishonorable trait (-90 opinion)
remove_trait dishonorable10 charid Removes Dishonorable trait (-100 opinion)
Command Parameter 1 Parameter 2 Description
remove_trait dyn_dishonorable1 charid Removes Dynastic Stain trait (-10 opinion)
remove_trait dyn_dishonorable2 charid Removes Dynastic Stain trait (-20 opinion)
remove_trait dyn_dishonorable3 charid Removes Dynastic Stain trait (-30 opinion)
remove_trait dyn_dishonorable4 charid Removes Dynastic Stain trait (-40 opinion)
remove_trait dyn_dishonorable5 charid Removes Dynastic Stain trait (-50 opinion)
remove_trait dyn_dishonorable6 charid Removes Dynastic Stain trait (-60 opinion)
remove_trait dyn_dishonorable7 charid Removes Dynastic Stain trait (-70 opinion)
remove_trait dyn_dishonorable8 charid Removes Dynastic Stain trait (-80 opinion)
remove_trait dyn_dishonorable9 charid Removes Dynastic Stain trait (-90 opinion)
remove_trait dyn_dishonorable10 charid Removes Dynastic Stain trait (-100 opinion)
Command Parameter 1 Parameter 2 Description
remove_trait tyrant1 charid Removes Tyrant trait (-5 opinion)
remove_trait tyrant2 charid Removes Tyrant trait (-10 opinion)
remove_trait tyrant3 charid Removes Tyrant trait (-15 opinion)
remove_trait tyrant4 charid Removes Tyrant trait (-20 opinion)
remove_trait tyrant5 charid Removes Tyrant trait (-25 opinion)
remove_trait tyrant6 charid Removes Tyrant trait (-30 opinion)
remove_trait tyrant7 charid Removes Tyrant trait (-35 opinion)
remove_trait tyrant8 charid Removes Tyrant trait (-40 opinion)
remove_trait tyrant9 charid Removes Tyrant trait (-45 opinion)
remove_trait tyrant10 charid Removes Tyrant trait (-50 opinion)
remove_trait tyrant11 charid Removes Tyrant trait (-55 opinion)
remove_trait tyrant12 charid Removes Tyrant trait (-60 opinion)
remove_trait tyrant13 charid Removes Tyrant trait (-65 opinion)
remove_trait tyrant14 charid Removes Tyrant trait (-70 opinion)
remove_trait tyrant15 charid Removes Tyrant trait (-75 opinion)
remove_trait tyrant16 charid Removes Tyrant trait (-80 opinion)
remove_trait tyrant17 charid Removes Tyrant trait (-85 opinion)
remove_trait tyrant18 charid Removes Tyrant trait (-90 opinion)
remove_trait tyrant19 charid Removes Tyrant trait (-95 opinion)
remove_trait tyrant20 charid Removes Tyrant trait (-100 opinion)

And finally Tyrannical Stain.

Command Parameter 1 Parameter 2 Description
remove_trait tyrannical_stain charid Removes 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.

Advertisement

Copyright © 2017 Zox News Theme. Theme by MVP Themes, powered by WordPress.