Crusader Kings III

Crusader Kings III

Advanced Cheat Menu
colin Jul 27, 2021 @ 9:09pm
Want to cheat even faster using this awesome mod for scripting?
First, mad props to mrtats, thank you

The scripts this mod uses are really easy to read, and using them as a reference, with additional reference to the links mentioned bellow, I made some scripts that hook on this mod's Mark For Edit identifier. Hopefully you'll find them helpful for cheating county control, batch juicing characters, etc.

The examples I'm pasting use bdwyer85's Inheritable Traits+ mod, so that's the values of 5 stuff explained.

These go (in Windows) in
~/Documents/Paradox Interactive/Crusader Kings III/run
, which is a directory you'll have to make if it's not already there, with the same .txt name used for running them. For other platforms, I reckon the path is similar.

These scripts are executed by entering the debug console (
~
with
-debug_mode
entered in the launch options in the game prefs) by typing
run {script_name.txt}
. There's no tab-completion, unfortunately. You can edit the scripts locally without restarting the game as you make changes for yourself, which is convenient.

Here's the script I execute with
run magic.txt
to set the traits I want:

every_living_character = { hidden_effect = { remove_trait = cancer remove_trait = typhus remove_trait = flagellant remove_trait = depressed_1 remove_trait = depressed_genetic remove_trait = lunatic_1 remove_trait = lunatic_genetic remove_trait = possessed_1 remove_trait = possessed_genetic remove_trait = disfigured remove_trait = clubfooted remove_trait = stuttering remove_trait = lisping remove_trait = dwarf remove_trait = giant remove_trait = hunchbacked remove_trait = wheezing remove_trait = spindly remove_trait = bleeder remove_trait = drunkard remove_trait = ill remove_trait = gout_ridden remove_trait = sickly remove_trait = scaly remove_trait = bubonic_plague remove_trait = smallpox remove_trait = great_pox remove_trait = pneumonic remove_trait = impotent remove_trait = infirm remove_trait = maimed remove_trait = blind remove_trait = leper remove_trait = wounded_1 remove_trait = wounded_2 remove_trait = wounded_3 remove_trait = scarred remove_trait = drunkard remove_trait = lovers_pox remove_trait = paranoid remove_trait = consumption remove_trait = irritable } } every_living_character = { limit = { has_character_flag = marked_for_edit } hidden_effect = { remove_trait = beauty_bad_1 remove_trait = beauty_bad_2 remove_trait = beauty_bad_3 remove_trait = intellect_bad_1 remove_trait = intellect_bad_2 remove_trait = intellect_bad_3 remove_trait = physique_bad_1 remove_trait = physique_bad_2 remove_trait = physique_bad_3 remove_trait = beauty_good_1 remove_trait = beauty_good_2 remove_trait = beauty_good_3 remove_trait = intellect_good_1 remove_trait = intellect_good_2 remove_trait = intellect_good_3 remove_trait = physician_good_1 remove_trait = physician_good_2 add_trait = beauty_good_5 add_trait = intellect_good_5 add_trait = physique_good_5 add_trait = administrator add_trait = aggressive_attacker add_trait = architect add_trait = athletic add_trait = august remove_trait = education_diplomacy_1 remove_trait = education_martial_1 remove_trait = education_stewardship_1 remove_trait = education_intrigue_1 remove_trait = education_learning_1 remove_trait = education_martial_prowess_1 remove_trait = education_diplomacy_2 remove_trait = education_martial_2 remove_trait = education_stewardship_2 remove_trait = education_intrigue_2 remove_trait = education_learning_2 remove_trait = education_martial_prowess_2 remove_trait = education_diplomacy_3 remove_trait = education_martial_3 remove_trait = education_stewardship_3 remove_trait = education_intrigue_3 remove_trait = education_learning_3 remove_trait = education_martial_prowess_3 add_trait = education_diplomacy_4 add_trait = education_martial_4 add_trait = education_stewardship_4 add_trait = education_intrigue_4 add_trait = education_learning_4 add_trait = education_martial_prowess_4 add_trait = physicial_3 add_trait = blademaster_3 add_trait = hunter_3 add_trait = mystic_3 add_trait = family_first add_trait = lifestyle_herbalist remove_trait = chaste add_trait = lustful remove_trait = lazy add_trait = diligent remove_trait = vengeful add_trait = forgiving remove_trait = greedy add_trait = generous remove_trait = deceitful add_trait = honest remove_trait = arrogant add_trait = humble remove_trait = arbitrary add_trait = just remove_trait = impatient add_trait = patient remove_trait = gluttonous add_trait = temperate remove_trait = callous remove_trait = sadistic add_trait = compassionate add_trait = pure_blooded remove_trait = ill remove_trait = sickly remove_trait = wrathful add_trait = calm add_trait = shrewd add_trait = strong add_trait = diplomat add_trait = gallant add_trait = overseer add_trait = strategist add_trait = scholar add_trait = whole_of_body add_trait = flexible_leader add_trait = unyielding_defender set_character_faith = root.faith set_sexuality = bi add_trait = witch clear_all_marks_effect } }

You'll want to mix up the traits for the religion you're playing, remove what you don't want, etc. The way it's set up, when a character falls unwell, you can run this without marking them, and it sure keeps lovers pox outbreaks down.

Here's the script I use to enforce county control from the console with
run control.txt
:
every_living_character = { limit = { has_character_flag = marked_for_edit } every_sub_realm_county = { set_county_faith = root.faith set_county_culture = root.culture change_county_control = 100 } every_vassal_or_below = { set_character_faith_with_conversion = root.faith } set_character_faith = root.faith clear_all_marks_effect }

This is all copy & paste from mrtats' mod here, with changes.

After granting titles, I use this mod to mark the character for edit, then
run control.txt
in the console, and all the hard work my council would have to do, they're spared.

So again, huge ups to mrtats for this mod and the Mark for Edit hook we can script from, and thanks also for writing your stuff in a way that's easy to read and crib.

You'll want to edit these for your own playing prefs, obviously

Here are the sources other than this awesome mod I used as reference:

A forum thread with other scripting examples[forum.paradoxplaza.com]
Paradox scripting effects docs[ck3.paradoxwikis.com]
Paradox scripting commands docs[ck3.paradoxwikis.com]
this handy list of trait ids[gamerant.com]
Last edited by colin; Jul 27, 2021 @ 9:18pm
< >
Showing 1-1 of 1 comments
mrtats  [developer] Aug 15, 2021 @ 7:56pm 
It is really nice seeing that this mod inspires others in their creativity and you gave me a few ideas I might add to the mod later.
< >
Showing 1-1 of 1 comments
Per page: 1530 50