Page 1 of 5 12345 LastLast
Results 1 to 20 of 81

Thread: Making a Family Tree With an Under Age Faction Heir or Leader

  1. #1

    Icon1 Making a Family Tree With an Under Age Faction Heir or Leader

    Take a look at this example. As you can see, Philip Capet is the faction leader and his brother Hugues Capet is the faction heir. But Philip Capet has a son, Louis Capet, and he should be the faction heir:
    Code:
    character	Philip Capet, named character, male, leader, age 27, x 131, y 198
    traits Factionleader 1 , GoodCommander 2 , Intelligent 2 , Austere 1 , PublicFaith 1 , BattleChivalry 1 , StrategyChivalry 3 , ReligionStarter 1 						
    army						
    unit		NE Bodyguard				exp 1 armour 0 weapon_lvl 0
    unit		Dismounted Mailed Knights		exp 1 armour 0 weapon_lvl 0	
    unit		Dismounted Mailed Knights		exp 1 armour 0 weapon_lvl 0	
    unit		Mailed Knights				exp 1 armour 0 weapon_lvl 0
    unit		Mailed Knights				exp 1 armour 0 weapon_lvl 0
    
    ;DIJON						
    
    character	Hugues Capet, named character, male, heir, age 22, x 143, y 184
    traits Factionheir 1 , NaturalMilitarySkill 3 , Intelligent 2 , Energetic 1 , BattleDread 1 , LoyaltyStarter 1 , StrategyDread 3 , ReligionStarter 1 						
    army						
    unit		NE Bodyguard				exp 1 armour 0 weapon_lvl 0
    unit		Dismounted Mailed Knights		exp 0 armour 0 weapon_lvl 0	
    unit		Dismounted Mailed Knights		exp 0 armour 0 weapon_lvl 0	
    unit		Mailed Knights				exp 0 armour 0 weapon_lvl 0
    unit		Mailed Knights				exp 0 armour 0 weapon_lvl 0
    
    ;RHEIM						
    
    character	Raoul Poton, named character, male, age 40, x 140, y 201
    traits NaturalMilitarySkill 2 , LoyaltyStarter 1 , Energetic 1 , Drink 1 , ReligionStarter 1 						
    army						
    unit		NE Bodyguard				exp 1 armour 0 weapon_lvl 0
    unit		Town Militia				exp 0 armour 1 weapon_lvl 0
    unit		Town Militia				exp 0 armour 1 weapon_lvl 0
    unit		Crossbow Militia			exp 0 armour 1 weapon_lvl 0
    unit		Crossbow Militia			exp 0 armour 1 weapon_lvl 0
    
    ;ANGERS						
    
    character	Guillaume de Lyon, named character, male, age 32, x 115, y 190
    traits LoyaltyStarter 1 , NaturalMilitarySkill 2 , Drink 1 , Bloodthirsty 1 , ReligionStarter 1 						
    army						
    unit		NE Bodyguard				exp 1 armour 0 weapon_lvl 0
    unit		Sergeant Spearmen			exp 0 armour 1 weapon_lvl 0	
    unit		Sergeant Spearmen			exp 0 armour 1 weapon_lvl 0
    unit		Mailed Knights				exp 0 armour 0 weapon_lvl 0
    unit		Mailed Knights				exp 0 armour 0 weapon_lvl 0
    
    ; Clermont
    
    character	Pierre de Beauvais, named character, male, age 32, x 130, y 175
    traits LoyaltyStarter 1 , ContentGeneral 2
    army						
    unit		NE Bodyguard				exp 0 armour 0 weapon_lvl 0
    unit		Town Militia				exp 0 armour 0 weapon_lvl 0
    unit		Town Militia				exp 0 armour 0 weapon_lvl 0
    unit		Crossbow Militia			exp 0 armour 0 weapon_lvl 0	
    unit		Crossbow Militia			exp 0 armour 0 weapon_lvl 0
    
    character	Etienne Tristan, priest, male, age 37, x 128, y 170
    traits NaturalPriestSkill 2 , GoodDenouncer 2 , PriestLevel 1 						
    
    character	Aubert Febre, spy, male, age 20, x 131, y 198
    traits GoodSpy 3 										
    
    character	Yves Dupuy, merchant, male, age 25, x 138, y 178
    traits GoodMerchant 1						
    
    character	Regnault Chabot, merchant, male, age 32, x 140, y 201
    traits GoodMerchant 1	
    
    character	Alain de Montfort, diplomat, male, age 29, x 131, y 198
    traits GoodDiplomat 2													
    
    character_record		Henri Capet, 	male, age 85, dead, 20, never_a_leader										
    character_record		Anne, 		female, age 75, dead, 5, never_a_leader					
    character_record		Bertha, 	female, age 25, alive, never_a_leader					
    character_record		Constance, 	female, age 2, alive, never_a_leader
    character_record		Louis Capet, 	male, age 1, alive, never_a_leader					
    
    relative 	Henri Capet, 	Anne,		Philip Capet,	Hugues Capet,	end
    relative 	Philip Capet, Bertha,		Constance,	Louis Capet,	end
    To make Louis Capet the faction heir, you need to do only two things:

    1. Hugues Capet’s character entry:
    Code:
    character	Hugues Capet, named character, male, age 22, x 143, y 184
    traits NaturalMilitarySkill 3 , Intelligent 2 , Energetic 1 , BattleDread 1 , LoyaltyStarter 1 , StrategyDread 3 , ReligionStarter 1 						
    army						
    unit		NE Bodyguard				exp 1 armour 0 weapon_lvl 0
    unit		Dismounted Mailed Knights		exp 0 armour 0 weapon_lvl 0	
    unit		Dismounted Mailed Knights		exp 0 armour 0 weapon_lvl 0	
    unit		Mailed Knights				exp 0 armour 0 weapon_lvl 0
    unit		Mailed Knights				exp 0 armour 0 weapon_lvl 0
    2. Louis Capet’s character record:
    Code:
    character_record		Louis Capet, 	male, age 1, alive, current_heir
    You can even replace ‘never_a_leader’ with ‘current_leader’ on a character record and have a boy king. Now if you want to list former faction leaders in a faction's family tree, just replace ‘never_a_leader’ with ‘past_leader’ in the character record, and they will be listed as past faction leaders in their factions’ family tree:
    Code:
    character_record		Henri Capet, 	male, age 85, dead, 20, past_leader
    
    character_record		Louis Capet, 	male, age 1, alive, current_leader	
    
    character_record		Louis Capet, 	male, age 1, alive, current_heir
    
    character_record		Louis Capet, 	male, age 1, off_map, current_leader, label louis1	
    
    character_record		Louis Capet, 	male, age 1, off_map, current_heir, label louis1
    [Tutorial] Advanced Family Trees by GrnEyedDvl
    Last edited by TNZ; May 03, 2010 at 04:35 PM.

  2. #2
    Caesar Clivus's Avatar SS Forum Moderator
    Join Date
    May 2007
    Location
    Australia
    Posts
    12,693

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    This should certainly add some interesting prospects to family tree creation
    Last edited by Caesar Clivus; September 17, 2009 at 03:29 AM.

    BftB2 UPDATED 22nd DECEMBER. Member of the Complete Byzantine Unit Roster team

  3. #3
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    This looks really interesting and will certainly solve a lot of problems we have in setting up proper family trees. But could you please explain a bit closer what happens to Louis Capet:

    - When he comes of age? He is not on the map, right? So I need to spawn a new one by script. Will this spawned Louis take the proper place of the heir Louis in the family tree and be facion heir?

    - The father dies before Louis comes of age? Will he be made faction leader and keep this position (or the spawned Louis) when coming of age?

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  4. #4

    Icon1 Re: Making a Family Tree With an Under Age Faction Heir or Leader

    konny: No, because characters age when a winter turn ends. Therefore the Louis Capet in the family tree was placed on the map at the end of the last turn. So he is sent off map and replaced on the same turn the player gets the message that Louis Capet has come of age.

    The attached screenshots may be of some help:

    Faction heir Age 14: Euric is the faction heir.

    Faction Leader Age 15: With his father death Euric becomes the faction leader.

    Faction Leader Age 16: Euric has come of age and is the faction leader.
    Last edited by TNZ; April 03, 2010 at 11:06 PM.

  5. #5
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    Thank you, now I got it. I hadn't worked with the off_map command before.



    Two more things:

    Amazing that the faction is not considered destroyed even though the last character of age died.

    Another thing I see on pic#2: Euric does have the Rex Gothorum Trait despite being underage? Did you somehow gave by script or did he acquire it from EDCT the normal way?

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  6. #6

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    No. Scripting the game just makes him the faction leader.
    Last edited by TNZ; September 18, 2009 at 05:34 PM.

  7. #7

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    Very interesting. Thanks for laying this out.
    Son of PW

  8. #8
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    Quote Originally Posted by TNZ View Post
    No. Scripting the game just makes him the faction leader.
    No, I was talking about the trait "Rex Gothorum" which the engine gave to him even though he is underage.

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  9. #9

    Icon1 Re: Making a Family Tree With an Under Age Faction Heir or Leader

    konny: ‘Rex Gothum’ is what that faction calls its faction leader in the expanded file and it is also the trait that the faction gives to its leader.
    So in screenshots two the game has only made Euric the faction leader.

    If Philip Capet were to die before his son Louis Capet comes of age the son would became the faction leader. When he does, however, he will not get the faction leader trait. So you will want to add two new triggers, one for the faction leader trait and one for the faction heir trait.
    Code:
    ;------------------------------------------
    Trigger factionleader_2
       WhenToTest CharacterTurnStart
        Condition IsFactionLeader
        and Trait Factionleader = 0
    
        Affects Factionleader  1  Chance  100
    
    ;------------------------------------------
    Trigger Factionheir_2
        WhenToTest CharacterTurnStart
    
        Condition IsFactionHeir
        and Trait Factionheir = 0
    
        Affects Factionheir  1  Chance  100
    Last edited by TNZ; September 19, 2009 at 05:44 PM.

  10. #10
    Senator
    Join Date
    May 2005
    Location
    Rochester, Michigan
    Posts
    1,104

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    this is very good, question is there a way to make this work for characters who aren't born yet? not the become faction leader part, but to send a character off map when they come of age and bring them back? is there a way to make a label for characters who aren't created yet, say if their father has a trait?

  11. #11

    Icon1 Re: Making a Family Tree With an Under Age Faction Heir or Leader

    this is very good, question is there a way to make this work for characters who aren't born yet? not the become faction leader part, but to send a character off map when they come of age and bring them back? is there a way to make a label for characters who aren't created yet, say if their father has a trait?
    Saladin: No, I tried it.

  12. #12
    Caesar Clivus's Avatar SS Forum Moderator
    Join Date
    May 2007
    Location
    Australia
    Posts
    12,693

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    Just got a quickquestion about this. When you move an underage heir off the map, and then spawn a copy of that character on the map when he comes of age, does the family tree not get stuffed up? Does the game know that the heir that has been spawned on the map is the same heir in the family tree? Surely traits etc will get messed
    Last edited by Caesar Clivus; September 23, 2009 at 06:54 AM.

    BftB2 UPDATED 22nd DECEMBER. Member of the Complete Byzantine Unit Roster team

  13. #13

    Icon1 Re: Making a Family Tree With an Under Age Faction Heir or Leader

    Caesar Clivus: When the under age character comes of age the game places him on the map, so you are not sending an under age heir off the map. The script that sends him off the map and bring him back works just like the script in the Britannia campaign, the one that sends Edward to the crusades and returns him home.
    Last edited by TNZ; September 24, 2009 at 05:52 PM.

  14. #14
    Caesar Clivus's Avatar SS Forum Moderator
    Join Date
    May 2007
    Location
    Australia
    Posts
    12,693

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    Ok I must've read that wrong. Thanks TNZ.

    BftB2 UPDATED 22nd DECEMBER. Member of the Complete Byzantine Unit Roster team

  15. #15

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    Edit: never mind
    Last edited by impspy; October 30, 2009 at 02:24 PM.


    "Do you know, my son, with what little understanding the world is ruled?"Pope Julius III
    Want to add your own mercenaries? Read my Tutorial

  16. #16
    Giorgios's Avatar Campidoctor
    Join Date
    Apr 2008
    Location
    England
    Posts
    1,722

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    Would someone be able to point me in the direction of a very simple tutorial for simply creating a new family tree from scratch; I've said I'd do my best to do them for EOR. Cheers!

  17. #17

    Icon1 Re: Making a Family Tree With an Under Age Faction Heir or Leader

    Would someone be able to point me in the direction of a very simple tutorial for simply creating a new family tree from scratch; I've said I'd do my best to do them for EOR. Cheers!
    Giorgios: Try this tutorial.

    [Tutorial] Advanced Family Trees by GrnEyedDvl
    http://www.twcenter.net/forums/showthread.php?t=187293

  18. #18

    Icon1 Re: Making a Family Tree With an Under Age Faction Heir or Leader

    raziel_eire posted on page two of the Advanced Family Trees tutorial a much quicker way to do this. The only file you will need is the ‘descr_strat’ file. See the first post.

  19. #19
    King William the Conqueror's Avatar Campidoctor
    Join Date
    Jun 2011
    Location
    At my Computer
    Posts
    1,552

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    Hey TNZ, I was wondering if you could help me, I am working on Narnia Total War and I am trying to make Jadis the White Which ruler of the Empire of Narnia and I was wondering, is it possible to by using this script, make a woman ruler of her country. I tried it and it worked fine until I click on the faction information button. Then it crashed. Maybe you could look at my script and tell me what I am doing wrong.
    Code:
    faction	france, balanced smith
    ai_label		catholic
    denari	25000
    denari_kings_purse	3000
    settlement castle
    {
    	level large_city
    	region Witchs_Castle_Province
    
    	year_founded 0
    	population 3800
    	plan_set default_set
    	faction_creator france
    	building
    	{
    		type core_castle_building citadel
    	}
    	building
    	{
    		type castle_barracks armoury
    	}
    	building
    	{
    		type missiles archery_range
    	}
    	building
    	{
    		type castle_smith c_heavy_armourer
    	}
    	building
    	{
    		type hinterland_castle_roads c_paved_roads
    	}
    }
    
    settlement
    {
    	level town
    	region South_Moor_Province
    
    	year_founded 0
    	population 900
    	plan_set default_set
    	faction_creator france
    	building
    	{
    		type core_building wooden_pallisade
    	}
    }
    
    settlement castle
    {
    	level town
    	region Middle_Moor_Province
    
    	year_founded 0
    	population 600
    	plan_set default_set
    	faction_creator france
    	building
    	{
    		type core_castle_building wooden_castle
    	}
    }
    
    character	Otmin, named character, male, leader, age 40, x 127, y 287 
    traits Factionleader 1 , GoodCommander 2 , Intelligent 2 , Austere 1 , PublicFaith 1 , BattleChivalry 1 , StrategyChivalry 3 , ReligionStarter 1 
    army
    unit		NE Bodyguard				exp 1 armour 0 weapon_lvl 0
    unit		Crossbow Militia			exp 1 armour 0 weapon_lvl 0
    unit		Peasant Archers				exp 0 armour 0 weapon_lvl 0
    unit		Spear Militia				exp 0 armour 0 weapon_lvl 0
    unit		Spear Militia				exp 0 armour 0 weapon_lvl 0
    
    
    character_record		Jadis, 	female, age 29, alive, current_leader
    Mod Leader of Kingdoms and Empires
    Former Medieval II Blitz Record Holder (106 regions in 11 turns)

    Check out my Youtube Channel: CosmicConqueror
    Proud Member of TWC since 2011!

  20. #20
    AR!ES's Avatar Laetus
    Join Date
    Mar 2011
    Location
    Hungary
    Posts
    8

    Default Re: Making a Family Tree With an Under Age Faction Heir or Leader

    I have tried this, but does not work. I would like to have an underaged heir to the throne of France, but the game always chooses another family member. This is my entry for France in the descr_strat file:

    Code:
    character Louis de Valois, named character, male, leader, age 47, x 113, y 131 
    traits Factionleader 1 , GoodCommander 2 , Intelligent 2 , Austere 1 , PublicFaith 1 , BattleChivalry 1 , StrategyChivalry 3 , ReligionStarter 1 
    army
    unit  NE Late Bodyguard    exp 6 armour 2 weapon_lvl 1
    unit  Scots Guard   exp 1 armour 1 weapon_lvl 1
    unit  Scots Guard    exp 1 armour 1 weapon_lvl 1
    unit  Pike Militia    exp 0 armour 1 weapon_lvl 1
    unit  Pike Militia    exp 0 armour 1 weapon_lvl 1
     
    character Jehanne, princess, female, age 18, x 113, y 136 
    traits IAmPrincess 1 , NaturalPrincess 2 , GoodPrincess 1
     
    character Oudart, general, male, age 16, x 119, y 133 
    traits NaturalMilitarySkill 4 , LoyaltyStarter 1 , GoodEngineer 1 , Ugly 3 , ReligionStarter 3 
    army
    unit  Scots Guard    exp 0 armour 0 weapon_lvl 0
    unit  Pike Militia   exp 0 armour 0 weapon_lvl 0
    unit  Pike Militia   exp 0 armour 0 weapon_lvl 0
    unit  Pike Militia    exp 0 armour 0 weapon_lvl 0
     
    character Etienne Tristram, priest, male, age 37, x 100, y 114 
    traits NaturalPriestSkill 2 , GoodDenouncer 2 , PriestLevel 1 
     
    character Jean de Foix, named character, male, age 20, x 105, y 104 
    traits LoyaltyStarter 1 , NaturalMilitarySkill 1 , ReligionStarter 1 
    army
    unit  NE Late Bodyguard    exp 1 armour 0 weapon_lvl 0
    unit  Dismounted Noble Knights    exp 0 armour 0 weapon_lvl 0
    unit  Crossbowmen   exp 0 armour 0 weapon_lvl 0
    unit  Crossbowmen   exp 0 armour 0 weapon_lvl 0
    unit  Crossbowmen    exp 0 armour 0 weapon_lvl 0
     
    character Pierre de Bourbon, named character, male, age 40, x 119, y 112 
    traits NaturalMilitarySkill 2 , LoyaltyStarter 3 , Energetic 1 , Drink 1 , ReligionStarter 1 
    army
    unit  NE Late Bodyguard    exp 1 armour 0 weapon_lvl 0
    unit  Aventurier    exp 0 armour 0 weapon_lvl 0
    unit  Partisan Militia   exp 0 armour 0 weapon_lvl 0
    unit  Partisan Militia   exp 0 armour 0 weapon_lvl 0
    unit  Aventurier    exp 0 armour 0 weapon_lvl 0
     
    character Rene de Lorraine, named character, male, age 24, x 126, y 119 
    traits LoyaltyStarter 1 , NaturalMilitarySkill 4 , Intelligent 2 , Energetic 1 , TourneyKnight 4 , ReligionStarter 1 
    army
    unit  NE Late Bodyguard    exp 6 armour 2 weapon_lvl 1
    unit  Noble Knights   exp 4 armour 2 weapon_lvl 1
    unit  Noble Knights   exp 4 armour 2 weapon_lvl 1
    unit  Noble Knights   exp 4 armour 2 weapon_lvl 1
    unit  Voulgier    exp 0 armour 0 weapon_lvl 0
    unit  Voulgier    exp 0 armour 0 weapon_lvl 0
    unit  Voulgier    exp 0 armour 0 weapon_lvl 0
     
    character Pierre, general, male, age 32, x 102, y 126 
    army
    unit  Noble Knights    exp 0 armour 0 weapon_lvl 0
    unit  Voulgier    exp 0 armour 0 weapon_lvl 0
    unit  Voulgier    exp 0 armour 0 weapon_lvl 0
    unit  Aventurier    exp 0 armour 0 weapon_lvl 0
     
    character Oudart de Breze, general, male, age 22, x 97, y 114 
    army
    unit  Voulgier    exp 0 armour 0 weapon_lvl 0
    unit  Voulgier    exp 0 armour 0 weapon_lvl 0
    unit  Aventurier    exp 0 armour 0 weapon_lvl 0
     
    character Aubert, spy, male, age 20, x 122, y 124 
    traits GoodSpy 3  
     
    character_record  Charlotte,  female, age 40, alive, never_a_leader
    character_record  Agnes de Valois,  female, age 20, alive, never_a_leader
    character_record  Charles de Valois,  male, age 1, alive, current_heir
     
    relative  Louis de Valois,  Charlotte,  Agnes de Valois, Jehanne, Charles de Valois, end
    relative  Pierre de Bourbon,  Agnes de Valois, end
    The game always sets Jean de Foix the heir instead of Charles.. What have I done wrong?

Page 1 of 5 12345 LastLast

Posting Permissions

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