Jump to content

CK2 Modding Quick Question Thread


Recommended Posts

I'm back with a more subjective question from a place of relative ignorance.

 

What do you guys find to be the best practices for managing AI Decision-taking? (as in: being able to use them ocassionally, but not spamming them at every opportunity)

 

 

 

Also, as a side tangent: I forgot how time-consuming writing/editing/testing variant smut scenes could be.. Feels like I could have coded 2-3 new functional features in the time it's taken to cover all the possibilities for one event. (it's certainly given me pause in tackling the idea of dominant/submissive variations)

Link to comment
is_at_least_col1 = { # Child of Lilith stage 1 +
	AND = {
		OR = {
			trait = demon_kin
			trait = lf_demon
		}
		OR = {
			has_character_modifier = dw_lilith_stage_1
			has_character_modifier = dw_lilith_stage_2
			has_character_modifier = dw_lilith_stage_3
			has_character_modifier = dw_lilith_stage_4
			has_character_modifier = dw_lilith_stage_5
			has_character_modifier = dw_incubus_stage_1
			has_character_modifier = dw_incubus_stage_2
			has_character_modifier = dw_incubus_stage_3
			has_character_modifier = dw_incubus_stage_4
			has_character_modifier = dw_incubus_stage_5
		}
	}
}

Is AND redudant or necessary in this paragraph?

Link to comment
1 hour ago, AlexWyrmin said:

is_at_least_col1 = { # Child of Lilith stage 1 +
	AND = {
		OR = {
			trait = demon_kin
			trait = lf_demon
		}
		OR = {
			has_character_modifier = dw_lilith_stage_1
			has_character_modifier = dw_lilith_stage_2
			has_character_modifier = dw_lilith_stage_3
			has_character_modifier = dw_lilith_stage_4
			has_character_modifier = dw_lilith_stage_5
			has_character_modifier = dw_incubus_stage_1
			has_character_modifier = dw_incubus_stage_2
			has_character_modifier = dw_incubus_stage_3
			has_character_modifier = dw_incubus_stage_4
			has_character_modifier = dw_incubus_stage_5
		}
	}
}

Is AND redudant or necessary in this paragraph?

Depends.

 

As it stands, it will check for either demon_kin or lf_demon, AND also if said demons have the DWR flags.

If you are just checking for one block or the other, then remove the AND.

Link to comment
9 minutes ago, lockeslylcrit said:

Depends.

 

As it stands, it will check for either demon_kin or lf_demon, AND also if said demons have the DWR flags.

If you are just checking for one block or the other, then remove the AND.

Necessary it is, then. This way you get a more realistic power creep.

Link to comment

OK custom (catholic heresy) religion, with a religious head. This religious head has called a crusade. I can't join it, because the pope is not my religious head?

Spoiler

 

fbdshrwt5.png.162d2b3751a70f8a98f57ce64a48197e.png

 

IS their something I can do to fix this with my religion? Or a failing of the game?



use_new_crusade = yes
crusade_name = CRUSADE
can_call_crusade = yes
can_grant_invasion_cb = invasion
join_crusade_if_bordering_hostile = yes 
attacking_same_religion_piety_loss = yes
rel_head_defense = yes

 

My same-heresy vassals have pledged just fine, but I can't. Help please!

 

 

Link to comment
2 hours ago, dwjlien said:

OK custom (catholic heresy) religion, with a religious head. This religious head has called a crusade. I can't join it, because the pope is not my religious head?fbdshrwt5.png.162d2b3751a70f8a98f57ce64a48197e.png

 

IS their something I can do to fix this with my religion? Or a failing of the game?



use_new_crusade = yes
crusade_name = CRUSADE
can_call_crusade = yes
can_grant_invasion_cb = invasion
join_crusade_if_bordering_hostile = yes 
attacking_same_religion_piety_loss = yes
rel_head_defense = yes

 

My same-heresy vassals have pledged just fine, but I can't. Help please!

 

I'm gonna need to see what's in your religion file.

 

Oh, and your picture isn't displaying properly.

Link to comment

Thought i'd put the relevant bits :(

Spoiler

 


christian = {
	
	haremaic = {
		color = { 1.0 0.5 0.0 }
		icon = 46 	  #These are the Nestorian Icons #18 is aztec for customisation 
		heresy_icon = 47
		alternate_start = { has_alternate_start_parameter = { key = religion value = full_random } } #HIP
		
		graphical_culture = westerngfx
		interface_skin = { taoist_interface indian_interface christian_interface }
		#interface_skin = { zoroastrian_interface muslim_interface }

		parent = catholic 							
		piety_name = haremaicpiety					#delete this line to just use Piety.
		scripture_name = THE_BIBLEharemaic
		priest_title = haremaicPRIEST
		
		high_god_name = GOD_GOD
		god_names = {
			GOD_GOD	 
			GOD_JESUS
			GOD_THE_LORD
			GOD_THE_BLESSED_VIRGIN
		}
		evil_god_names = {
			SATAN 
			LUCIFER 
			THE_DEVIL
		}
		
		character_modifier = {						#(+30 ) 20 when same &+10 for christians. 
			same_religion_opinion = 20				#Keep it local so to speak, stresses religion
			christian_opinion = 10					#Approves
			zoroastrian_group = 5					#Divine marriers
			build_cost_modifier = -0.1				#Many Hands make light work
			levy_reinforce_rate = 0.15  			#Breed well, understand need to defend beliefs
			global_supply_limit = -0.2				#Not supported on long war efforts
			tech_growth_modifier_economy = 2  #0.3	#many hands, unified
			tech_growth_modifier_culture = 2  #0.3	#Fucking woke y'all
			tech_growth_modifier_military=-1  #0.2	#Less committed to military
			retinuesize_perc = 0.1
			retinue_maintenence_cost = -0.15
			build_cost_castle_modifier =0.2 		#Don't be a war-mongering Imperialist. 	
			demesne_size = 3						#<3 home
		}
		
		unit_modifier = {							#MILITARY EVERYWHERE MODIFIERS
			levy_size = -0.2						#stay at home not go to war 
			galleys_perc = -0.1
			key = "DEF_RELIGION"
		}
		
		unit_home_modifier = {						#Militarty in home province modifiers
			garrison_size = 0.3						#Breed well, stay at home not go to war
			siege_defence = 0.1						#Resist the heathens, camradre from grp fucking
			land_morale = 0.2						#The Devoted = comitted 
			key = "DEF_RELIGION_HOME_TERRITORY"
		}
	
		#feminist = yes								#Cultural Tech Bonus to move to wokeness
		#can_have_antipopes = yes					#Not in keeping with the brotherly love spirit
		#pacifist = yes
		
		ai_peaceful = yes 
		allow_looting = no
		has_heir_designation = yes
		peace_piety_gain = 2.5 						# Gain 2.5 piety monthly while at peace
		landed_kin_prestige_bonus = yes		
		short_reign_opinion_year_mult = 0			# No short reign penalty
		
		max_consorts = 7							#One for each day of the week
		divine_blood = yes							#God the Father man the son, preach
		pc_marriage = yes 							#parent/child 		#Divine Down the Line
		bs_marriage = no 							#bro/sis      		#Not across the tracks
		cousin_marriage = yes						#kin
		psc_marriage = yes 							#Aunt/Nephew  	
		hard_to_convert = yes	
		use_new_crusade = yes
		crusade_name = CRUSADE
		can_call_crusade = yes
		can_grant_invasion_cb = invasion
		join_crusade_if_bordering_hostile = yes 
		attacking_same_religion_piety_loss = yes
		rel_head_defense = yes
		can_excommunicate = yes
		can_grant_claim = yes						# Mans domain, some things are RIGHTFULLY his
		can_grant_divorce = no  					# Fuck anyone you want, but marriage is sacred
		
		
		can_retire_to_monastery = yes   			# all should be devoted
		priests_can_inherit = no					# to God not money
		priests_can_marry = yes						# we're still about the b'donk-a-donk though.
		religious_clothing_head = 9						
		religious_clothing_priest = 12		
        INTER MARRY CRAP
    }
}

Pic re-attached. Thanks

fbdshrwt5.png

 

 

Requested info above, but I've done some digging and 03_crusades.txt in SCRIPTED TRIGGERS seems to require you to be pope/frat for the NEW crusade view. Adding my rel_head title to the OR bracket, makes it work just fine. I did want to share this mod, whats the best way to do this please? Will copying and editing that scripted trigger into my mod be safe? Or is there a better way? Simply not use the "new" crusade interface, is that doable?

pledge_crusade_trigger = {
	#age = 16
	NOT = { trait = incapable }
	custom_tooltip = {
		text = recent_crusade_unpledge_TT

		NOT = {
			has_character_modifier = recently_unpledged_to_crusade_cooldown
		}
	}
	custom_tooltip = {
		text = crusade_no_antipope_TT

		rightful_religious_head_scope = {
			OR = {
				has_landed_title = k_papal_state
				has_landed_title = d_fraticelli
			}
		}
	}
	rightful_religious_head_scope = {
		NOT = {
			war_with = ROOT
		}
	}
	custom_tooltip = {
		text = pledge_crusade_alternate_crusades

		check_if_alternate_crusades_trigger = yes
	}
}

 

Link to comment
6 hours ago, Canaris said:

Anyone knows why i suddenly have the ability to take concubines as a christian feudal ruler ? Im using pre-split DWF and CK2 3.1.0 version with few other mods and its a first time i ever saw something like that.. 

I dunno about mods, but have you been doing raiding? Picked up a bloodline that allows certain things? Just spitballing as I refresh the page. Ironic you should post really, my custom religion above is basically just because I wanted concubines as a Christian, and here you go achieving it without even trying!

Link to comment
41 minutes ago, lockeslylcrit said:

Yeah, that's pretty much what's wrong. The trigger is only looking for catholic/frat

Was just editing my post:

Adding my rel_head title to the OR bracket, makes it work but, I did want to share this mod, whats the best way to do this please?

 

Ive tried just pasting the entire trigger to my mod,in common>scripted_triggers but it wont overwrite for me (I added HIP which i use as a dependency for my mod)

Some shenanigans ADD/merge it, but ofc that still fails as while I meet the new criteria I fail to meet the old criteria still.

ck2_30.png

Link to comment
32 minutes ago, dwjlien said:

Was just editing my post:

Adding my rel_head title to the OR bracket, makes it work but, I did want to share this mod, whats the best way to do this please?

 

Ive tried just pasting the entire trigger to my mod,in common>scripted_triggers but it wont overwrite for me (I added HIP which i use as a dependency for my mod)

Some shenanigans ADD/merge it, but ofc that still fails as while I meet the new criteria I fail to meet the old criteria still.

ck2_30.png

Yeah, that's the current problem with DWR/LF right now. Merging duplicate scripted triggers appends the triggers together in an AND block rather than an OR block. What this means is that it is looking for BOTH your trigger and the original trigger. The only known way of overwriting a scripted trigger from vanilla or another mod is to overwrite the entire file.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use