Results 1 to 9 of 9

Thread: Add woodsmens guild to another faction?

  1. #1

    Default Add woodsmens guild to another faction?

    Hey
    I hope this is the right place.

    I wanted to upgrade Denmark to get some better archers so I edited export_descr_unit, export_descr_buildings and battle_models.modelsdb files to add longbowmen, yeoman, sherwood and retinue archers to Denmark + put some pictures in the right folders...and it works like a charm.....

    But I also wanted Denmark to be able to get the Woodsmens Guild.

    So i have added denmark to earn points for the archers and buildings in export_descr_guilds and I added denmark in export_descr_buildings......

    But after recruiting 50+ archers in a fortress (without another guild ) I still donīt get the option of building the guild......i tried to use the console to create_building.... but apparently the removed that command at some point

    Any suggestions?
    Thanks

  2. #2
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: Add woodsmens guild to another faction?

    Can you show your relevant entries for export_descr_guilds and the woodmans guild in export_descr_buildings?

  3. #3

    Default Re: Add woodsmens guild to another faction?

    Quote Originally Posted by Withwnar View Post
    Can you show your relevant entries for export_descr_guilds and the woodmans guild in export_descr_buildings?
    Sure:
    from export_descr_guilds:

    Trigger 0182_Recruit_Archers WhenToTest UnitTrained


    Condition FactionType england, denmark
    and UnitType Peasant Archers


    Guild woodsmens_guild s 10


    ;------------------------------------------
    Trigger 0183_Recruit_Archers
    WhenToTest UnitTrained


    Condition FactionType england, denmark
    and UnitType Longbowmen


    Guild woodsmens_guild s 15


    ;------------------------------------------
    Trigger 0184_Recruit_Archers
    WhenToTest UnitTrained


    Condition FactionType england, denmark
    and UnitType Yeoman Archers


    Guild woodsmens_guild s 15


    ;------------------------------------------
    Trigger 0185_Recruit_Archers
    WhenToTest UnitTrained


    Condition FactionType england, denmark
    and UnitType Sherwood Archers


    Guild woodsmens_guild s 20


    ;------------------------------------------
    Trigger 0186_Recruit_Archers
    WhenToTest UnitTrained


    Condition FactionType england, denmark
    and UnitType Archer Militia


    Guild woodsmens_guild s 10


    ;------------------------------------------
    Trigger 0187_Recruit_Archers
    WhenToTest UnitTrained


    Condition FactionType england, denmark
    and UnitType Dismounted Longbowmen


    Guild woodsmens_guild s 15



    And export_descr_Buildings:

    building guild_woodsmens_guild

    {
    levels woodsmens_guild m_woodsmens_guild gm_woodsmens_guild
    {
    woodsmens_guild castle requires factions { england, denmark, }
    {
    capability
    {
    archer_bonus 1
    }
    material wooden
    construction 1
    cost 1000
    settlement_min city
    upgrades
    {
    m_woodsmens_guild
    }
    }
    m_woodsmens_guild castle requires factions { england, denmark, }
    {
    capability
    {
    recruit_pool "Sherwood Archers" 1 0.2 2 0 requires factions { england, denmark, }
    archer_bonus 1
    }
    faction_capability
    {
    archer_bonus 1
    }
    material wooden
    construction 1
    cost 2000
    settlement_min large_city
    upgrades
    {
    gm_woodsmens_guild
    }
    }
    gm_woodsmens_guild castle requires factions { england, denmark, }
    {
    capability
    {
    recruit_pool "Sherwood Archers" 1 0.4 3 0 requires factions { england, denmark, }
    archer_bonus 1
    }
    faction_capability
    {
    archer_bonus 2
    }
    material wooden
    construction 1
    cost 3000
    settlement_min large_city
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }
    My changes are blue

  4. #4

    Default Re: Add woodsmens guild to another faction?

    There are some more things you need to do before being able to get that Guild with that faction. Check this link about Guilds and see the part about how to create new Guilds. It will show what files you need to mess with, so just check the files and add the lines for Denmark. You will probably need to add the images in the buildings for that faction.

    http://www.twcenter.net/forums/showt...25#post1431525

  5. #5

    Default Re: Add woodsmens guild to another faction?

    Quote Originally Posted by Lusitanio View Post
    There are some more things you need to do before being able to get that Guild with that faction. Check this link about Guilds and see the part about how to create new Guilds. It will show what files you need to mess with, so just check the files and add the lines for Denmark. You will probably need to add the images in the buildings for that faction.

    http://www.twcenter.net/forums/showt...25#post1431525
    Off course I did that before asking here. I could find no faction-specific parameters (or what they are called ??) in the other files. You need them to create a new guild but the Woodsmens Guild is already there. So I still need a clue

  6. #6

    Default Re: Add woodsmens guild to another faction?

    Yes, you're right, I don't know much about how to do it faction specific. Maybe take a look at the other faction specific guild like Knights of Santigo and see what is writen in the files for them?

  7. #7
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: Add woodsmens guild to another faction?

    Code:
    Trigger 0182_Recruit_Archers
    
      WhenToTest UnitTrained
    
      Condition FactionType england, denmark
      and UnitType Peasant Archers
    
      Guild woodsmens_guild s 10
    There's your problem. Script/code conditions don't take comma-separated multiple factions like EDB's "factions {}" condition can. Was the log complaining about that?

    Keep the first trigger as it is for england and make a second trigger for denmark...

    Code:
    Trigger 0182_Recruit_Archers
    
      WhenToTest UnitTrained
    
      Condition FactionType england
      and UnitType Peasant Archers
    
      Guild woodsmens_guild s 10
    
    
    Trigger 0182a_Recruit_Archers
    
      WhenToTest UnitTrained
    
      Condition FactionType denmark
      and UnitType Peasant Archers
    
      Guild woodsmens_guild s 10
    And so on for your other triggers.
    Last edited by Withwnar; March 14, 2019 at 03:29 AM.

  8. #8

    Default Re: Add woodsmens guild to another faction?

    IT WORKS. THANKS (There was no complaints in the log)

  9. #9
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: Add woodsmens guild to another faction?

    No log error is surprising. I guess it just took what it was expecting to find (a faction) and just ignored the rest of the line.

Posting Permissions

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