Skip to content

Instantly share code, notes, and snippets.

@krisk0
Last active November 21, 2025 12:12
Show Gist options
  • Select an option

  • Save krisk0/9d95f935bee19397103c419f82285ad8 to your computer and use it in GitHub Desktop.

Select an option

Save krisk0/9d95f935bee19397103c419f82285ad8 to your computer and use it in GitHub Desktop.
List of bugs in Crusder Kimngs III scripts discovered by me

List of bugs in CK3 discovered by me.

Note to Paradox Development Studio

I attempted to report bugs via paradoxplaza. Unfortunately forum admin or forum robot did not let me in, presumably because of my IP address geo-location. I therefore report problems here.

How I discovered the bugs

I did not intentionally analyze base game scripts. I found some bugs when creating my mods.

List of bugs

  1. In would_attempt_to_seduce_married_trigger, honorable person is likely to attempt to seduce a married woman: ai_honor >= low_positive_ai_value. This should be reversed. Dishonorable should start seduce scheme, not honorable: ai_honor < …. Seen in version 1.18.0.2.

List of redundant/suboptimal pieces

  1. courtier_guest_management.3001 event version 1.18.0.2 checks same conditions more than once. has_trait = celibate is checked in event itself and in might_cheat_on_every_partner_trigger, too. this != scope:current_character in the event is redundant, since it is checked in can_set_relation_lover_trigger. is_attracted_to_gender_of is redundant for exactly same reason. That is 5 redundant lines.

The event complexity is square in size of court/pool, therefore deleting those lines might result in a noticeable speed-up.

  1. can_become_concubine_of_character_trigger trigger version 1.18.0.2 checks is_imprisoned_by twice. This could be done just once, by replacing trigger_if by trigger_else_if:
	trigger_else_if = { # was trigger_if, now trigger_else_if
		limit = {
			#is_imprisoned_by = $CHARACTER$ — this line no longer needed
			is_married = yes
		}
		NOT = { is_spouse_of = $CHARACTER$ }
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment