Jump to content

Help character creation


Untolddead

Recommended Posts

Posted

Alright I've been trying to get this to work with same sex. It seems to work strange where the "father" will make the child part of the dynasty but won't be seen as part of the blood line. and the "mother" will do vice versa. Also only the correct gender will show up as parent in childs menu. I think this is just a gui thing as the child shows up in both parents children section.

I've tried dynasty = scope:actor.dynasty among other combinations but nothing has worked. Any thoughts on how I can designate this better? Anyone else messing with this?
create_character = {
                location = scope:actor.location
                culture = scope:actor.culture
                faith = scope:actor.faith
                gender_female_chance = {
                                value = 0
                        }
                age = {
                    value = 0
                }
                father = scope:recipient 
                mother = scope:actor 
                dynasty = inherit
                save_scope_as = child
            }
    }
 

Posted

I've been working on something like this for my own mod, maybe take a look at the "set_parent_house_effect" effect.  It seems to be called in the birth events, and for me, calling it after set_father to set the desired father of my character sorted out the dynasties.

 

I should say though, I'm not using create_character for the child, I'm relying on the normal pregnancy behavior for that, so it may be different for me.

Posted
33 minutes ago, Adroit said:

I've been working on something like this for my own mod, maybe take a look at the "set_parent_house_effect" effect.  It seems to be called in the birth events, and for me, calling it after set_father to set the desired father of my character sorted out the dynasties.

 

I should say though, I'm not using create_character for the child, I'm relying on the normal pregnancy behavior for that, so it may be different for me.

Perhaps there is some way to use it but I can't figure it out. I need the child to be the dynasty of the mother or blood related to the father. Looking at the birth section makes my brain hurt... lol

Posted

Ahh, yeah, it's kind of complex down there.  I think I misunderstood what you're doing, maybe something about the genders you're passing as mother and father are confusing it.

 

The code for set_parent_house_effect seems to call set_house = father/mother.house directly, have you tried that?  Just spitballing.

Posted

create_character = {
                location = scope:actor.location
                culture = scope:actor.culture
                faith = scope:actor.faith
                gender_female_chance = {
                                value = 0
                        }
                age = {
                    value = 0
                }
                father = scope:recipient 
                mother = scope:actor
                set_house = mother.house
                save_scope_as = child
scope:child {set_house = mother.house
        }
So I've tried both. Unless some one has an idea I think it's being broken by same sex characters. I have some other ideas on how I can do birth for my mod. 

1 hour ago, Adroit said:

Ahh, yeah, it's kind of complex down there.  I think I misunderstood what you're doing, maybe something about the genders you're passing as mother and father are confusing it.

 

The code for set_parent_house_effect seems to call set_house = father/mother.house directly, have you tried that?  Just spitballing.

Thanks for the help. Yeah not quite sure how it works or whether it can be used this way. Have you been able to set the house to mother through birth?

Posted

In a way I have.  My scenario is that I've created a new random character with create_character, impregnated the mother with him, then used "set_assumed_father" to make it clear to the game that her husband isn't the father.  This, combined with calling the set_parent_house_effect effect in the birth on_action allowed me to make sure the child was born to the right dynasty, but I'd have to double check if she's in the right house (I imagine the child is).

 

One thing you might want to check out if you haven't is the \Paradox Interactive\Crusader Kings III\logs\error.log file.  In your example, I'm betting set_house isn't valid in the create_character scope, and the log file would probably tell you that.   It might also give you hints as to if any other incorrectly scoped thing is causing issues.  No guarantee it lets you figure out if this is possible, but it's been huge for me in debugging.

Posted

 

21 minutes ago, Adroit said:

In a way I have.  My scenario is that I've created a new random character with create_character, impregnated the mother with him, then used "set_assumed_father" to make it clear to the game that her husband isn't the father.  This, combined with calling the set_parent_house_effect effect in the birth on_action allowed me to make sure the child was born to the right dynasty, but I'd have to double check if she's in the right house (I imagine the child is).

 

One thing you might want to check out if you haven't is the \Paradox Interactive\Crusader Kings III\logs\error.log file.  In your example, I'm betting set_house isn't valid in the create_character scope, and the log file would probably tell you that.   It might also give you hints as to if any other incorrectly scoped thing is causing issues.  No guarantee it lets you figure out if this is possible, but it's been huge for me in debugging.

set_house: target: Value 'actor.house' is invalid: scope type none, expected dynasty house
[12:45:07][jomini_effect.cpp:122]: PostValidate of effect 'set_house' returned false at  file: common/character_interactions/MY_lay_with_lover.txt line: 24 rip but I don't know how to fix it.

Archived

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

  • Recently Browsing   0 members

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