Trying to make a decision to acknowledge bastards

For specific technical issues and questions.

Trying to make a decision to acknowledge bastards

PostPosted by Nocan » Mon Jul 10, 2017 11:23

I've been trying to make a targeted decision to make characters who are your unknown children be acknowledged but I can't get it working. It would be used on characters who are actually yours and either have a "fake" father or no father. Does anyone know how this could be done?

What I have so far:
Spoiler: show
Code: Select all
targetted_decisions = {
   hidden_bastard = {
      is_high_prio = yes
      filter = all
      ai_target_filter = realm
      
      from_potential = {
         ai = no
      }
      
      potential = {
         AND = {
            real_father = { FROM }
            NOT = { father = FROM }
         }
      }
      allow = {
         #Conditions for the decision to be enabled
      }
      effect = {
         set_father = FROM
         dynasty = FROM
      }
      revoke_allowed = {
         always = no
      }
      ai_will_do = {
         factor = 0
      }
   }
}


I also want it to make the "fake" father your rival, to add the cuckolded opinion to him, and to add the acknowledged bastard opinion to relevant characters (negative for your trueborn kids and wife, positive to bastard's mother)
Last edited by Nocan on Tue Jul 11, 2017 12:52, edited 1 time in total.
Nocan
 
Posts: 66
Joined: Mon May 11, 2015 16:10

Re: Trying to make a decision to acknowledge bastards

PostPosted by blackninja9939 » Mon Jul 10, 2017 17:38

You don''t need the AND, AND is the default wrapper.
real_father = { FROM } does not mean anything, real_father is a scope and so is FROM, you want to do something like real_father = { character = FROM }
Graduate Content Designer on Crusader Kings 2

If a post is edited in this colour then it was done by me for moderation.

My Sub-Mods:
Bloodlines Sub-Mod
More Decisions Sub-Mod
Colonise Valyiria and Challenge to Duel
Duel Recorder
More Bookmarks
User avatar
blackninja9939
Moderator
 
Posts: 5606
Joined: Tue Oct 01, 2013 10:50
Location: England

Re: Trying to make a decision to acknowledge bastards

PostPosted by Nocan » Mon Jul 10, 2017 17:55

blackninja9939 wrote:You don''t need the AND, AND is the default wrapper.
real_father = { FROM } does not mean anything, real_father is a scope and so is FROM, you want to do something like real_father = { character = FROM }

Okay, changed that. How do I go about making it work and the rest then?
Nocan
 
Posts: 66
Joined: Mon May 11, 2015 16:10

Re: Trying to make a decision to acknowledge bastards

PostPosted by Widowmaker94 » Tue Jul 11, 2017 05:00

Once you get the decision working... Could you post a copy of the file?

I'd love to use that in my games.:D
User avatar
Widowmaker94
 
Posts: 351
Joined: Mon Nov 30, 2015 18:57

Re: Trying to make a decision to acknowledge bastards

PostPosted by Nocan » Tue Jul 11, 2017 12:52

http://www.moddb.com/mods/acknowledge-hidden-bastard/

Found a mod that already does this, though I can't get it working

EDIT. The mod does work, but only with children who have a fake father. Still don't know how to make it work with child you've previously denounced
Nocan
 
Posts: 66
Joined: Mon May 11, 2015 16:10


Return to Technical Discussion

Who is online

Users browsing this forum: No registered users and 0 guests