Results 1 to 15 of 15

Thread: Making a family tree with a under age faction leader

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Icon1 Making a family tree with a under age faction leader

    I was trying to make a historically accurate family tree that has a faction leader who is ten years of age, using the ‘off_map, current_leader’ code from the Britannia Campaign. The faction leader is ten years of age and the game does not crash:
    Code:
    }
    
    character_record		Valentinianus,  male, age 10, off_map, current_leader
    
    character	Bonifatius, named character, male, age 34, x 208, y 53 
    traits LoyaltyStarter 1, GoodCommander 1, PoliticsSkill 1, Intelligent 1, Warlord 1, ChristianArianHeresy 1
    ancillaries patricius
    army
    unit		Candidati				exp 3 armour 1 weapon_lvl 1
    unit		Legio Palatinae African			exp 2 armour 0 weapon_lvl 0
    unit		Legio Palatinae African			exp 2 armour 0 weapon_lvl 0
    unit		Legio Palatinae African			exp 2 armour 0 weapon_lvl 0
    unit		Comitatensis African			exp 2 armour 0 weapon_lvl 0
    unit		Comitatensis African			exp 2 armour 0 weapon_lvl 0
    unit		Milites					exp 2 armour 0 weapon_lvl 0
    unit		Milites					exp 2 armour 0 weapon_lvl 0
    unit		Equites Promoti				exp 2 armour 0 weapon_lvl 0
    unit		Equites Promoti				exp 2 armour 0 weapon_lvl 0
    unit		Milites					exp 2 armour 0 weapon_lvl 0
    unit		African Militia				exp 2 armour 0 weapon_lvl 0
    unit		Milites					exp 2 armour 0 weapon_lvl 0
    unit		Milites					exp 2 armour 0 weapon_lvl 0
    unit		Sagitarii Graves			exp 2 armour 0 weapon_lvl 0
    unit		Sagitarii Graves			exp 2 armour 0 weapon_lvl 0
    
    character	Flavius Aetius, named character, male, age 33, x 166, y 162 
    traits LoyaltyStarter 1, GoodCommander 1, PoliticsSkill 1, Intelligent 1, Warlord 1, ChristianArianHeresy 1
    ancillaries office_praefectus_gallorum
    army
    unit		Candidati				exp 3 armour 1 weapon_lvl 1
    unit		Legio Palatinae Gallic			exp 2 armour 0 weapon_lvl 0
    unit		Legio Palatinae Gallic			exp 2 armour 0 weapon_lvl 0
    unit		Legio Palatinae Gallic			exp 2 armour 0 weapon_lvl 0
    unit		Germanic Auxilia			exp 2 armour 0 weapon_lvl 0
    unit		Auxilia Palatina Gallic			exp 2 armour 0 weapon_lvl 0
    unit		Auxilia Palatina Gallic			exp 2 armour 0 weapon_lvl 0
    unit		Roman Militia				exp 2 armour 0 weapon_lvl 0
    unit		Roman Militia				exp 2 armour 0 weapon_lvl 0
    unit		Sagitarii Graves			exp 2 armour 0 weapon_lvl 0
    unit		Sagitarii Graves			exp 2 armour 0 weapon_lvl 0
    unit		Equites Catafractarii			exp 2 armour 0 weapon_lvl 0
    unit		Equites Promoti				exp 2 armour 0 weapon_lvl 0
    unit		Milites					exp 3 armour 0 weapon_lvl 0
    unit		Milites					exp 3 armour 0 weapon_lvl 0
    unit		Germanic Auxilia			exp 3 armour 0 weapon_lvl 0
    unit		Germanic Auxilia			exp 3 armour 0 weapon_lvl 0
    unit		Germanic Auxilia			exp 3 armour 0 weapon_lvl 0
    unit		Germanic Auxilia			exp 3 armour 0 weapon_lvl 0
    unit		Germanic Auxilia			exp 3 armour 0 weapon_lvl 0
    
    character	Marioranus, named character, male, age 31, x 252, y 154
    traits LoyaltyStarter 1, GoodCommander 1, PoliticsSkill 1
    army
    unit		Candidati				exp 3 armour 1 weapon_lvl 1
    unit		Auxilia Palatina Pannonian		exp 2 armour 0 weapon_lvl 0
    unit		Auxilia Palatina Pannonian		exp 2 armour 0 weapon_lvl 0
    unit		Auxilia Palatina Pannonian		exp 2 armour 0 weapon_lvl 0
    unit		Equites Promoti				exp 2 armour 0 weapon_lvl 0
    unit		Equites Clibinarii			exp 2 armour 0 weapon_lvl 0
    unit		Equites Clibinarii			exp 2 armour 0 weapon_lvl 0
    unit		Roman Militia				exp 2 armour 0 weapon_lvl 0
    unit		Roman Militia				exp 2 armour 0 weapon_lvl 0
    unit		Sagitarii Graves			exp 2 armour 0 weapon_lvl 0
    unit		Sagitarii Graves			exp 2 armour 0 weapon_lvl 0
    unit		Equites Clibinarii			exp 2 armour 0 weapon_lvl 0
    unit		Equites Promoti				exp 2 armour 0 weapon_lvl 0
    unit		Milites					exp 3 armour 0 weapon_lvl 0
    unit		Milites					exp 3 armour 0 weapon_lvl 0
    unit		Germanic Auxilia			exp 3 armour 0 weapon_lvl 0
    unit		Germanic Auxilia			exp 3 armour 0 weapon_lvl 0
    unit		Germanic Auxilia			exp 3 armour 0 weapon_lvl 0
    unit		Germanic Auxilia			exp 3 armour 0 weapon_lvl 0
    unit		Germanic Auxilia			exp 3 armour 0 weapon_lvl 0
    
    character	Aurelius, general, male, age 25, x 228, y 136
    army
    unit		Auxilia Palatina Italian		exp 2 armour 0 weapon_lvl 0
    unit		Comitatensis Italian			exp 2 armour 0 weapon_lvl 0
    unit		Comitatensis Italian			exp 2 armour 0 weapon_lvl 0
    unit		Legio Palatinae Italian			exp 2 armour 0 weapon_lvl 0
    unit		Milites					exp 2 armour 0 weapon_lvl 0
    unit		Milites					exp 2 armour 0 weapon_lvl 0
    unit		Milites					exp 1 armour 0 weapon_lvl 0
    unit		Sagitarii Graves			exp 1 armour 0 weapon_lvl 0
    
    character	Ricimer Flavius, named character, male, age 28, x 220, y 121 
    traits GoodCommander 1, PoliticsSkill 2, Intelligent 2, ChristianArianHeresy 1
    army
    unit		Candidati				exp 1 armour 0 weapon_lvl 0
    unit		Milites					exp 3 armour 0 weapon_lvl 0
    unit		Milites					exp 3 armour 0 weapon_lvl 0
    unit		Milites					exp 3 armour 0 weapon_lvl 0
    unit		Sagitarii Graves			exp 3 armour 0 weapon_lvl 0
    unit		Sagitarii Graves			exp 3 armour 0 weapon_lvl 0
    unit		Sagitarii Graves			exp 1 armour 0 weapon_lvl 0
    
    character_record	Constantius, male, age 49, dead 8, never_a_leader
    character_record	Galla_Placidia, female, age 37, alive, never_a_leader
    character_record	Honoria_Justa_Grata, female, age 13, alive, never_a_leader
    character_record	Valentinianus, male, age 10, alive, never_a_leader
    
    relative 	Constantius, Galla_Placidia, Honoria_Justa_Grata, Valentinianus,	end
    You even get the character comes of age message. But because of the way the ‘off_map, current_leader’ code works, you will need to add a campaign script that does this:
    Code:
    ;Set the ‘I_TurnNumber’ to the turn that Valentinianus comes of age.
    
    	monitor_event PreFactionTurnStart FactionType venice
    		and I_TurnNumber = 36
    		send_character_off_map Valentinianus
    	spawn_army
    		faction venice
    		character	Valentinianus, named character, age 16, x 228, y 136, label Valentinianus1
    		traits RomanFactionleader 1 , LoyaltyStarter 1
    		unit		Candidati				exp 3 armour 1 weapon_lvl 1
    	end
    	terminate_monitor
    	end_monitor
    Last edited by TNZ; October 09, 2009 at 11:44 PM.

  2. #2
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Making a family tree with a under age faction leader

    i think the problem is the age.. you just can't make someone being the leader so young
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  3. #3

    Icon1 Re: Making a family tree with a under age faction leader

    Swagger: it works the faction leader is ten years of age and the game does not crash. The ‘off_map, current_leader’ code makes him being under age not a problem.

  4. #4
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Making a family tree with a under age faction leader

    is that so?


    then this is also good news for me mod
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  5. #5
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Making a family tree with a under age faction leader

    is there also a ''current_heir'' code?
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Making a family tree with a under age faction leader

    Is he marked as leader on the family tree?










  7. #7

    Icon1 Re: Making a family tree with a under age faction leader

    Yes:

    The attached screenshots show:

    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 had come of age and it the faction leader.
    Last edited by TNZ; October 09, 2009 at 11:44 PM.

  8. #8
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Making a family tree with a under age faction leader

    It appears he is the heir, not the leader, in the first pic. Guess that got to do with the logic of the game engine: how can the father not be the leader if the son is supposed to be the leader?










  9. #9

    Icon1 Re: Making a family tree with a under age faction leader

    gigantus: the screenshots above illustrate this:

    spain (Regnum Gothum) descr_strat:
    Code:
    }
    
    character_record		Euric,  male, age 14, off_map, current_heir
    
    character	Theodoric, named character, male, leader, age 36, x 120, y 123
    traits GothicFactionleader 1 , GoodCommander 1 , Arian 1
    army
    unit		Gardingi				exp 2 armour 0 weapon_lvl 0
    unit		Rideras				exp 2 armour 0 weapon_lvl 0
    unit		Rideras				exp 2 armour 0 weapon_lvl 0
    unit		Veteranii				exp 2 armour 0 weapon_lvl 0
    unit		Veteranii				exp 2 armour 0 weapon_lvl 0
    unit		Rideras				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Rideras				exp 2 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 1 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    
    character	Amalric, general, male, age 30, x 127, y 155
    army
    unit		Gothic Infantry				exp 3 armour 0 weapon_lvl 0
    unit		Rideras				exp 2 armour 0 weapon_lvl 0
    unit		Rideras				exp 2 armour 0 weapon_lvl 0
    unit		Veteranii				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Rideras				exp 2 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    
    character	Amalric, general, male, age 30, x 119, y 89
    army
    unit		Gothic Infantry				exp 3 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Rideras				exp 2 armour 0 weapon_lvl 0
    unit		Veteranii				exp 2 armour 0 weapon_lvl 0
    unit		Veteranii				exp 2 armour 0 weapon_lvl 0
    unit		Rideras				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    
    character	Amalric, general, male, age 30, x 145, y 137
    army
    unit		Gothic Infantry				exp 3 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    
    character	Amalric, general, male, age 30, x 137, y 141
    army
    unit		Gothic Infantry				exp 3 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    
    character	Amalric, general, male, age 30, x 147, y 112
    army
    unit		Gothic Infantry				exp 3 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Germanic levy				exp 2 armour 0 weapon_lvl 0
    unit		Bowmen				exp 2 armour 0 weapon_lvl 0
    unit		Gothic Infantry				exp 2 armour 0 weapon_lvl 0
    
    character_record		Bernildis, 	female, age 36, alive, never_a_leader
    character_record		Ulrike, 	female, age 15, alive, never_a_leader
    character_record		Euric, 	male, age 14, alive, never_a_leader
    character_record		Cniva, 	male, age 12, alive, never_a_leader
    
    relative 	Theodoric, 	 Bernildis, 	Ulrike,	Euric,	Cniva,	end
    export_descr_character_traits:
    Code:
    ;------------------------------------------
    Trigger factionleader_visigoth_1
        WhenToTest BecomesFactionLeader
    
        Condition CharFactionType spain
    
        Affects GothicFactionleader  1  Chance  100 
    
    ;------------------------------------------
    Trigger factionleader_visigoth_2
        WhenToTest CharacterTurnStart
    
        Condition IsFactionLeader
        and CharFactionType spain
        and Trait GothicFactionleader = 0
    
        Affects GothicFactionleader  1  Chance  100
    
    ;------------------------------------------
    Trigger factionheir_visigoth_1
        WhenToTest BecomesFactionHeir
    
        Condition CharFactionType spain
    
        Affects  GothicFactionheir  1  Chance  100
    
    ;------------------------------------------
    Trigger factionheir_visigoth_2
        WhenToTest CharacterTurnStart
    
        Condition IsFactionHeir
        and CharFactionType spain
        and Trait Factionheir = 0
    
        Affects  GothicFactionheir  1  Chance  100
    campaign_script:
    Code:
    	monitor_event PreFactionTurnStart FactionType spain
    		and I_TurnNumber = 12
    		send_character_off_map Euric
    	spawn_army
    		faction spain
    		character	Euric, named character, age 16, x 120, y 123, label Euric1
    		traits LoyaltyStarter 1
    		unit		Gardingi			exp 2 armour 0 weapon_lvl 0
    	end
    	terminate_monitor
    	end_monitor
    Last edited by TNZ; September 09, 2009 at 12:23 AM.

  10. #10
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Making a family tree with a under age faction leader

    Interesting. Have you tried playing with those trees and see how the game reacts? It seems like the game enjoys throwing up adoptions when you have few generals, and above you seem to have none, yet there's no one who can act as benefactor.

  11. #11

    Icon1 Re: Making a family tree with a under age faction leader

    When Euric is under age he cannot adopt and therefore no adoptions are offered. See the attached screenshot.
    Last edited by TNZ; October 09, 2009 at 11:44 PM.

  12. #12
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Making a family tree with a under age faction leader

    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  13. #13

    Icon1 Re: Making a family tree with a under age faction leader

    is there also a ''current_heir'' code?
    Swagger: Yes
    Code:
    character_record		Euric,  male, age 14, off_map, current_heir

  14. #14
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Making a family tree with a under age faction leader

    i had already tested this


    thanks anyway
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  15. #15

    Icon1 Re: Making a family tree with a under age faction leader

    [Tutorial] Making a Family Tree With an Under Age Faction Heir or Leader.
    http://www.twcenter.net/forums/showthread.php?t=296296

Posting Permissions

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