Crusader Kings III

Crusader Kings III

View Stats:
Is it possible to apply an effect to a specific character through the console?
Is it possible to apply an effect to a specific character through the console?
< >
Showing 1-6 of 6 comments
WoJo © Jul 25, 2023 @ 8:38pm 
As far as I know there is no such thing as "effects" neither directly in the game nor in the code. The only things that mention "effect" and have a console command are these:
add_realm_law_skip_effects LAW-NAME effect start_cat_story_cycle_effect effect start_dog_story_cycle_effect effect create_artifact_HISTORICAL-ARTIFACT-NAME_effect = { OWNER = this }
Last edited by WoJo ©; Jul 25, 2023 @ 8:39pm
@WoJo © effect is the command but what comes after is the input. There are a bunch of effects you can put but I'm not sure how to apply them to a character other than myself through the console.
https://ck3.paradoxwikis.com/Effects
WoJo © Jul 26, 2023 @ 6:41am 
Ah, so you just meant an effect of something. I see now. I misunderstood your question because in the code it's simply a clause [hidden_]effect = { ... } which applies anything you put there, such as add_trait or marry. To apply any command to anybody you have to specify their ID eg:
effect start_cat_story_cycle_effect 82235
this will give a pet cat to Siemowit Piast (although I think the new in-game IDs are now randomly generated and are not the same as historical IDs).
@WoJo © specifically this:
effect = { add_trait_xp = { trait = lifestyle_mystic value = { integer_range = { min = medium_lifestyle_random_xp_low max = medium_lifestyle_random_xp_high } } } }

I've tried adding a character ID to it in various places but it doesn't work.
WoJo © Jul 26, 2023 @ 9:35am 
What you wrote is a scripting command not a console command.
Try:
add_trait lifestyle_mystic ID effect add_trait_xp lifestyle_mystic VALUE ID or add_trait_xp lifestyle_mystic VALUE ID
but I don't think this is possible to do via the console.
For scripting you would have to add a scope, eg.:
scope:recipient = { effect = { add_trait_xp = { trait = lifestyle_mystic value = { integer_range = { min = medium_lifestyle_random_xp_low max = medium_lifestyle_random_xp_high } } } } }
Last edited by WoJo ©; Jul 26, 2023 @ 9:36am
Sorry for late ping and maybe you don't play ck3 at all but solution is
1:Press tilde to enter debug mode
2:Type "explorer" to get the explorer window up
3:Select "Living Characters" in the dropdown
4:Enter part of the name to find the character ID who you want to change
5:Click the character's name/tag under the "Key" column
6:A new window called "Object Inspector" should appear
Expand "Script Runner" and then "Effect", for example:

effect character = { add_trait_xp = {trait = lifestyle_blademaster value=50}}

You should see hover me for tooltip and the xp added to the trait.
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Jul 25, 2023 @ 1:29pm
Posts: 6