Results 1 to 13 of 13

Thread: Heirs only with foreign princesses

  1. #1

    Default Heirs only with foreign princesses

    Is there a way for the game to create more princesses?

    I want to increase the importance of them so that a kingdom might fall to another faction if a faction leader dies.
    Is there such a script?

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,126
    Blog Entries
    35

    Default Re: Heirs only with foreign princesses

    You can spawn them like any agent, but that doesn't make them a family member. For that you need the 'family' entry like in the Mongol spawn, but I have my doubt it will work.

    Code:
    ; --- original army spawn ---
            spawn_army 
                faction mongols
                character    Jebe, named character, age 30, x 292, y 166, family
                traits EasternWarlord 3 , GoodCommander 2 , Bloodthirsty 2 , BattleDread 4 , StrategyDread 2 , PublicFaith 1 , Loyal 2 , ContentGeneral 3    ;command 8, dread 9, loyalty 7, piety 1
                unit        Mongol Bodyguard        exp 6 armour 0 weapon_lvl 0
                unit        Mongol Infantry            exp 6 armour 0 weapon_lvl 0
            end
    
    ; --- suggested agent\princess spawn ---
            spawn_character    mongols, random_name, princess, age 40, x 340, y 170, family










  3. #3

    Default Re: Heirs only with foreign princesses

    I have doubts too. It has been a long while since I tried to spawn princesses, but I am almost sure they caused crashes when trying to marry, even with the 'family' reference. Or do I mistake with trying to make them recruitable agents? I can't remember, just that I forgot the idea after failures, but I was beginning then so, who know? I might have differents results now.

    Never played it but the Bellum Crucis mod seem to have pulled off one of the two, spawning or recruiting so it might be worth to check how they did in the files if you have troubles.

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,126
    Blog Entries
    35

    Default Re: Heirs only with foreign princesses

    Just checked by adding this to the grand campaign:

    Code:
            monitor_event FactionTurnStart FactionType england
                spawn_character    england, random_name, princess, age 40, x 107, y 145, family
                terminate_monitor
            end_monitor
    Result: Script failure with "Unrecognised character data string (family)"

    Tried without the 'family' entry and had a regular princess with all the special functions, just isn't connected to the family tree. All as expected.

    Believe it or not, this works with the princess being added to the family tree (provided there is an open slot) with the traits. Ancillaries cannot be added to agents, when tried it ended as 'Script Failure'

    Code:
            spawn_army 
                faction england
                character    random_name, princess, age 40, x 105, y 145, family
                traits IAmPrincess 1 , NaturalPrincess 2 , GoodPrincess 1 
                unit    NE Bodyguard    exp 6 armour 0 weapon_lvl 0
            end
    Last edited by Gigantus; January 04, 2018 at 09:22 AM.










  5. #5
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,126
    Blog Entries
    35

    Default Re: Heirs only with foreign princesses

    Here is one for giggles: the first, fully functional family merchant with traits and custom portrait (he won't marry or have children, being a merchant). Can be used to add princesses to the family tree complete with traits and custom portrait or to spawn agents (remove 'family') with traits and custom portraits. As long as the unit is in the EDU it doesn't matter which one you use as it doesn't appear in the game.

    Code:
        monitor_event FactionTurnStart FactionType england
            spawn_army 
                faction england
                character    random_name, merchant, age 40, x 105, y 145, family, portrait mansfeld
                traits IAmPrincess 1 , NaturalPrincess 2 , GoodPrincess 1 
                unit    NE Bodyguard    exp 6 armour 0 weapon_lvl 0
            end
            terminate_monitor
        end_monitor
    Last edited by Gigantus; January 04, 2018 at 09:57 AM.










  6. #6
    Ngugi's Avatar TATW & Albion Local Mod
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    10,687

    Default Re: Heirs only with foreign princesses

    Quote Originally Posted by Gigantus View Post
    Here is one for giggles: the first, fully functional family merchant with traits and custom portrait
    Well, I hope he trades in fine and expensive silks then, and not just petty whool

    Kingdom of Lindon preview video out





    DCI: Last Alliance
    - WIP Second Age mod | DCI: Tôl Acharn - mighty Dúnedain Counter Invasions |
    Additional Mercenary Minimod - more mercs; for TATW and DCI | Family Tree minimods - lore improvements | Remade Event Pictures - enhance cultures trough images |
    Favorite TATW compilation: Withwnars Submod Collection
    Patron of Mank, Kiliç Alì, FireFreak111, MIKEGOLF & Arachir Galudirithon, Earl of Memory

  7. #7

    Default Re: Heirs only with foreign princesses

    Gigantus, my old friend... You never know what could come in handy, thanks. I will have to re-try the princess spawn one of these days then. But one question, did you try to marry the spawned princess? No crash then?

    Did, euh, Santa brought you what you ordered?

  8. #8
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,126
    Blog Entries
    35

    Default Re: Heirs only with foreign princesses

    Married the princess to a non family named character of the same faction (England) without problems. Tried to marry her to a French guy but there was only a 33% chance and he dumped her

    I then married her to the French via diplomacy initiated by her.

    Fully functional, spawned, princess I would say.

    Try yourself by simply adding this script to the vanilla campaign. She will appear North of Angers, the town has an eligible French bachelor. Note that I didn't add a custom portrait.

    Code:
        monitor_event FactionTurnStart FactionType england
            spawn_army 
                faction england
                character    random_name, princess, age 20, x 102, y 129, family
                traits IAmPrincess 1 , NaturalPrincess 2 , GoodPrincess 1 
                unit    NE Bodyguard    exp 6 armour 0 weapon_lvl 0
            end
            terminate_monitor
        end_monitor










  9. #9

    Default Re: Heirs only with foreign princesses

    I tried and it seem to work alright, marriage or not, in the family tree or not. Well I sort of don't want princesses running around everywhere these days, but it might be useful for special situations, a other possibility to be creative with, will see.

    I must have been confused with a other problem back when I wanted a lot of on-map princesses.

    Ah, to give ancillaries to agents: console_command give_ancillary this (or whatever his name if you can predict it for a other event than CharacterSelected) work of course.

  10. #10
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,126
    Blog Entries
    35

    Default Re: Heirs only with foreign princesses

    The major thing I am carrying away from this is the spawning of agents with traits and custom portraits. Traits needed to be done via console_command and custom portraits just weren't possible.

    Not sure why I tried to spawn ancillaries, that obviously doesn't work










  11. #11

    Default Re: Heirs only with foreign princesses

    So to resume: it's only possible if I add them one by one before starting a campaign to the family tree.

  12. #12
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,126
    Blog Entries
    35

    Default Re: Heirs only with foreign princesses

    If by that you mean that you have to have the script in place at the start of the game then you are correct. It shouldn't be too difficult as long as you know what conditions you want to use as triggers and if those conditions are possible to be tested in the script.










  13. #13
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,126
    Blog Entries
    35

    Default Re: Heirs only with foreign princesses

    Late caveat to the 'family agent' principle: the character will die on game reload, apparently due to lack of a body guard unit (BG units do not attach to agents).










Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •