Jump to content

[CK2] Seduction modding question


grifterrik

Recommended Posts

Posted

I'm currently trying to customize seduction a little bit, things like remove the limit on seducing wife/concubines and the religion limitation.  I don't have a lot of experience with code outside of ancient basic and pascal as a kid, but this is pretty simple stuff so I've been playing around with it.  So far I've been able to make the adjustments I've wanted and it (seems to) work.

 

Then I came across this part of the way_of_life_decisions.txt file and it gave me an idea:

OR = {
				AND = {
					FROM = { NOT = { trait = homosexual } }
					NOT = { trait = homosexual }
					NOT = { same_sex = FROM }
				}
				AND = {
					FROM = { trait = homosexual }
					trait = homosexual
					same_sex = FROM
				}

What I would like to do here is make it so that the player can seduce anyone who is interested in their current ruler's sex.  So a male ruler, homosexual or not, can seduce straight women and homosexual men (but not straight men or homosexual women) and the reverse for female rulers.  But I haven't been able to make it work.  I managed to make it so that a straight man could seduce only homosexual men and homosexual women and another attempt made it so that only homosexual's could seduce at all.  I seem to be getting lost in the and's and or's and from's.  

 

I was hoping someone with more experience might be able to help me out.  I'd really appreciate it.

 

Thanks!

Posted

I've only dabbled in modding CK2 -- I've been poking at making a Joan of Arc equivalent sequence for Dark World's Lilithian religion, but put it on hold until Dewguru reinstates the religion in a future version.  But from what I do know, it looks like there'd be a very simple solution: simply remove the two lines in your sample that begin with FROM.  Those are the ones that check what orientation the seducing character is.  If you remove them, it would only check the target character, and you'd be able to seduce them if they were your own sex and homosexual, or the opposite sex and non-homosexual.

 

On the other hand, it could be that I've missed something.  If that doesn't work, it'll take someone with more experience than me to figure it out -- Dewguru and genericlogin are the two most experienced CK2 modders around here, but there are others, too.

Posted

Hey, thanks for the reply!

 

That sort-of worked, but not really  :D

 

It allowed me to select seduce on a same-sex homosexual target, but then the seduction never started (no event windows, etc).  Also at that point seduction was "broken" for that character, in that I couldn't stop the seduction, and therefore couldn't seduce anyone else.

 

Still, I appreciate the input, I'll keep messing with it and if nothing else I might shoot a pm to one of the guys you mentioned.  I've actually used their mods, and poked around in the files to see how they accomplished certain things.

 

Thanks again

 

Edit: Ok, I bungled something.  Now ALL of the changes I made (which I had working previously) are doing the thing where the seduction option is there, but it never starts.  I think I messed up something in the tool-tip code, so I'm gonna start over.  So basically your suggestion may be correct, I'll check it again tomorrow after some sleep!

Posted

I've only dabbled in modding CK2 -- I've been poking at making a Joan of Arc equivalent sequence for Dark World's Lilithian religion, but put it on hold until Dewguru reinstates the religion in a future version.  But from what I do know, it looks like there'd be a very simple solution: simply remove the two lines in your sample that begin with FROM.  Those are the ones that check what orientation the seducing character is.  If you remove them, it would only check the target character, and you'd be able to seduce them if they were your own sex and homosexual, or the opposite sex and non-homosexual.

 

On the other hand, it could be that I've missed something.  If that doesn't work, it'll take someone with more experience than me to figure it out -- Dewguru and genericlogin are the two most experienced CK2 modders around here, but there are others, too.

 

 

Final update:  That totally worked.  I think I deleted too many }'s and got it all messed up last night.  I started again after some sleep and it's all working as I hoped.

 

Thanks for your help!

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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