Results 1 to 8 of 8

Thread: Need help with restricting new unit to a faction

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    GMoon777's Avatar Libertus
    Join Date
    Mar 2011
    Location
    England
    Posts
    59

    Icon7 Need help with restricting new unit to a faction

    Hey there, I am working on a new unit pack using the assembly kit, and am currently working on a Date No-Dachi Hero and would like to make this unit only for the date clan, I tried setting my unit to true for date and false for a few other clans in the "units_to_exclusive_faction_permissions" table, but after playing campaign i saw a enemy clan had recruited my unit, so i am wondering how i can restrict a unit to a certain faction, thanks!

  2. #2

    Default Re: Need help with restricting new unit to a faction

    Have you tried the unit_to_military_permissions table?

  3. #3
    GMoon777's Avatar Libertus
    Join Date
    Mar 2011
    Location
    England
    Posts
    59

    Default Re: Need help with restricting new unit to a faction

    hmm i don't see that table, the closest thing i see is units_to_groupings_military_permissions ;(

  4. #4

    Default Re: Need help with restricting new unit to a faction

    Quote Originally Posted by GMoon777 View Post
    hmm i don't see that table, the closest thing i see is units_to_groupings_military_permissions ;(
    Sorry, that's the one I meant.

  5. #5
    GMoon777's Avatar Libertus
    Join Date
    Mar 2011
    Location
    England
    Posts
    59

    Default Re: Need help with restricting new unit to a faction

    i looked at the shimazu katana hero, and the unit is set to "true" on the shimazu clan, but it is not set as "false" for any other clans despite only being available for shimazu in game, so i'm really not sure how they did it ;/ thanks for the help though man

  6. #6

    Default Re: Need help with restricting new unit to a faction

    In the game there are various units that have a superior counterpart for a specific army. for example, there is katana samurai for all but there is shimazu katana samurai for shimazu and uesugi bow monk for uesugi and so on. if you check in the units_table you will find all of these equivallent units. now, the units_table states all the units that are available in the game. the units_to_groupings_military_permissions states all the units that are available for all major categories of armies (japan = everyone, buddhist rebels = the rebels, pirates and ikko ikki) so everything that is indicated as true in this table, is available in the game for the respective category. Now, if for example we look at the kisho ninja, we will see that in the units_to_exclusive_faction_permissions the kisho ninjas (the simple one) is indicated with False for iga_ninja (Hattori) but a few entries above that, we see that there is a kisho_ninja_hattori that is indicated as true for iga_ninja. that is because if you check unit_stats_land you will see that the hattori kisho ninja is stronger than the simple ninja that everyone else uses. makes sense yes;

    So to answer your question, when you make a new unit you must put these entries in both military permissions and exclusive faction permissions (using an example i made)


    exc_factions table
    inf_sword_katana_kenshins_blades uesugi true

    groupings_mil_table
    inf_sword_katana_kenshins_blades uesugi


    when you do this, you will see that your new unit, kenshin's blades, are available ONLY for uesugi. if you want to make this available to another clan, but not all, you clone the row and replace uesugi with the name of the clan you want. keep in mind that, to make it available for all, you can put japan, to make it available for hattori you put iga_ninja. the rest clans go by their name. i hope this helps you

  7. #7

    Default Re: Need help with restricting new unit to a faction

    the reason shimazu katana samurai is not indicated as false for everyone else is because if it's not in that table, the game will not make the unit available, therefore there is no need to put it as false. it's false by default

Posting Permissions

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