• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

unmerged(229997)

Corporal
1 Badges
Oct 6, 2010
44
0
  • Rome Gold
i attempted to make a character is it possible to add in a historical character to the game to rule egypt
i attempted to add in Caesarion
this is as far as i got

name = "Caesarion"
military = 10
charisma = 10
finesse = 10
birth_province = 225
wealth_change = 1500
loyalty_change = 100
popularity_change = 50
culture = greek
religion = egyptian_pantheon
employer_country = EGY
family_name = "Ptolemy"

# 705-725 - King

father = {
id = 100390
idtype = 44
}

mother = {
id = 110028
idtype = 44
}

704.1.1 = { birth = 458.1.1 }
725.1.1 = { death = 725.1.1 }

i had his mother as cleopatra vii
but is it possible for a character to have parents from 2 different countrys in this game?

i had his father as Gaius Julius Caesar
but would i have to make an event for him to go to egypt at a date or what plz help lol
 
i i had his mother as cleopatra vii
but is it possible for a character to have parents from 2 different country's in this game?

Yes, this shouldn't be a problem

i had his father as Gaius Julius Caesar
but would i have to make an event for him to go to egypt at a date or what plz help lol

Yes, but it will take a bit of work. Here is an example decision from Epigoni Mod where you can release Epirus as a nation with one of the Aecidae as the ruler. It is done by using titles, in this case two, one inherited from the father, title_aeacidae_family, and one granted title_ruler_to_be. This second title is granted so that you can point it to a specific individual,ie, if their were two Aecidae family members in your country Note the code "move_character = EPI" is used to move them to Epirus. Then event 185421 fires an appoints the character as ruler.

Code:
country_decisions = {
    instal_aeacidae_monarch = {
        potential = {
            and = {
                OR = {
                    culture = greek 
                    culture = macedonian 
                    ruler = {    
                        or = {    
                            character_culture = macedonian
                            character_culture = greek
                        }
                    }
                }
                any_character = { has_title = title_aeacidae_family }
                has_country_flag = releasegreekstates_decisions_open 
            }
        }
        allow = {
 
            AND = {
                not = { exists = EPI }
                owns = 139        # Epirus
                controls = 139 
                any_character = {
                    AND = {
                        has_title = title_aeacidae_family
                        has_title = title_ruler_to_be             
                    }
                }
                OR = {
                    ai = no
                    AND = { 
                        ai = yes
                        num_of_cities = 3
                        NOT = { num_of_allies = 3 }    
                    }
                    AND = {
                        ai = yes
                        num_of_cities = 3
                        NOT = { stability = 0 }
                    }
                    AND = {
                        ai = yes
                        num_of_cities = 3
                        badboy = 15
                    }
                }
            }
        }
 
        effect = {
            stability = 1
            badboy = -1
            treasury = 50
            any_character = {
                limit = { 
                    AND = {
                        has_title = title_aeacidae_family
                        has_title = title_ruler_to_be
                    }
                }
                set_character_flag = aeacidae_king_to_be
                move_character = EPI
            }
            relation = { who = EPI value = 175 }
            139 = { secede_province = EPI }
            EPI = {
                add_core = 139
                country_event = 185421
                heavy_infantry = 139
            }        
        }
        revoke_allowed = {
            always = no
        }
        ai_will_do = {
            factor = 0
        }
    }
}

In the event, just to confuse matters, I have doubled up on the code "move_character = EPI" and added another line "employer_country = EPI". I dont think this is necessary as I have already included "move_country = EPI" in the previous decision.

Code:
country_event = {
 
    id = 185421
 
    is_triggered_only = yes
 
    title = "EVTNAME185421"
    desc = "EVTDESC185421"
 
    option = {
        country = {
            any_character = {
                limit = { has_character_flag = aeacidae_king_to_be }
                move_character = EPI
                employer_country = EPI
                set_ruler = THIS
                clr_character_flag = aeacidae_king_to_be
            }
        }
    }
}
 
The best place to learn is by looking at what other modders have done to introduce events, etc

Assuming you are creating a mod, if you are just creating an event you would:

1) Create a new .txt file
2) Place your event code into the .txt file
3) Save it to the mod/events directory
4) Create a localisation file to show the event related text (optional)