Results 1 to 4 of 4

Thread: Problem with under age faction heir

Hybrid View

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

    Default Problem with under age faction heir

    I have been following this thread by TNZ in order to get an under age faction heir for Scotland. However, when I add the lines to campaign script, the nothing happens. Worse, none of the other script will run.


    Code:
    12:34:28.758 [game.script] [error] Script parsing error at line 77721, column 9 in mods/Stainless_Steel_6/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    don't recognise this token: faction
    12:34:28.758 [game.script] [error] Script parsing error at line 77723, column 9 in mods/Stainless_Steel_6/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    Couldn't create a script from file mods/Stainless_Steel_6/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    descr_strat

    Code:
    character_record        Alexandair mac_Donnchada,  male, age 2, off_map, current_heir
    
    character    Alaxandair mac_Donnchada, named character, male, leader, age 25, x 58, y 248 
    traits Supplies 1, Turnsaway 3, Factionleader 1 , MilitaryInclination 1 , NaturalMilitarySkill 2 , GoodCommander 1 , PublicFaith 2 , GoodAdministrator 2 , BattleChivalry 2 , StrategyChivalry 2 , WifeIsNoble 1, ReligionStarter 1 
    army
    unit        NE Bodyguard                exp 1 armour 0 weapon_lvl 0
    unit        Border Horse                exp 0 armour 0 weapon_lvl 0
    unit        Highlanders                exp 1 armour 0 weapon_lvl 0
    unit        Highlanders                exp 1 armour 0 weapon_lvl 0
    unit        Highland Archers                exp 0 armour 0 weapon_lvl 0
    unit        Highland Archers                exp 0 armour 0 weapon_lvl 0
    
    character    Domnall mac_Donnchada, named character, male, age 22, x 49, y 258 
    traits Supplies 1, Turnsaway 3, LoyaltyStarter 1 , MilitaryInclination 1 , GoodAdministrator 2 , StrategyChivalry 1 , BattleChivalry 3 , ReligionStarter 1 
    ancillaries mentor
    army
    unit        NE Bodyguard                exp 1 armour 0 weapon_lvl 0
    unit        Highlanders                exp 1 armour 0 weapon_lvl 0
    unit        Highland Archers                exp 0 armour 0 weapon_lvl 0
    unit        Highland Archers                exp 0 armour 0 weapon_lvl 0
    
    character    Fergus mac_Domongairt, spy, male, age 20, x 63, y 246 
    traits GoodSpy 2 
    
    
    character    Aengus mac_Cholbain, diplomat, male, age 20, x 65, y 242 
    traits NaturalDiplomatSkill 2, GoodDiplomat 1 
    
    character    Fothad mac_Ideid, priest, male, age 51, x 57, y 251 
    traits NaturalPriestSkill 2 , StrongFaith 2 , PriestLevel 1 
    
    character_record    Mairghreid, female, age 26, alive, never_a_leader
    character_record    Mairghraid mac_Donnchada, female, age 5, alive, never_a_leader
    character_record    Alexandair mac_Donnchada, male, age 2, alive, never_a_leader
    
    relative    Alaxandair mac_Donnchada, Mairghreid,        Mairghraid mac_Donnchada,    Alexandair mac_Donnchada, end
    campaign_script:
    Code:
            monitor_event PreFactionTurnStart FactionType scotland
            and I_TurnNumber = 12
            send_character_off_map Alexandair mac_Donnchada
        spawn_army
            faction scotland
            character    Alexandair mac_Donnchada, named character, age 14, x 60, y 247
            traits LoyaltyStarter 1 , ReligionStarter 1
            unit        NE Bodyguard            exp 0 armour 0 weapon_lvl 0
        end
        terminate_monitor
        end_monitor
    p.s. I have 1tpy and modified aging script, and my characters come of age at 14, not 16


    "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

  2. #2
    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: Problem with under age faction heir

    I think your problem is, that the leader has the same name as the two year old in descr_strat. So the game doesn't know which one to send off_map. Use "label" on the character and in the script to define which character is to be used, example:

    character Alexandair mac_Donnchada, named character, age 41, x 307, y 184, label scotsman1
    send_character_off_map scotsman1 (Make sure to first test whether he exists!)

    And which line is 77721 in the campaign_script?
    Last edited by Gigantus; October 27, 2009 at 09:05 AM.










  3. #3

    Default Re: Problem with under age faction heir

    Quote Originally Posted by gigantus View Post
    I think your problem is, that the leader has the same name as the two year old in descr_strat. So the game doesn't know which one to send off_map. Use "label" on the character and in the script to define which character is to be used, example:

    character Alexandair mac_Donnchada, named character, age 41, x 307, y 184, label scotsman1
    send_character_off_map scotsman1 (Make sure to first test whether he exists!)

    And which line is 77721 in the campaign_script?
    Thanks man I got it, all I needed was to label him and BAM worked


    "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

  4. #4
    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: Problem with under age faction heir

    One is glad to be of service










Posting Permissions

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