搜索结果: *

  1. SP Tutorial Module System Recruit your custom troops in your own Kingdom

    LtpLegend 说:
    banker247 说:
    if anyone has any idea of what i may of done wrong please let me know.. i edited the .py, and posted the menu options and actual menu in the right place so it appears in game.  also i cut out the stuff in red.. my faction is still not changing.

    I didn't touch the py. I just realized, found out myself, the game doesnt even look at py files they just make the text files the game reads and since the text files are hard to read unless you know what your looking for alot of ppl prefer py. Point is I just edited my text files and it worked beautifully.

    1. Create a new troop in troops.txt or editor. (here is my faction recruit)
    In native there are about 929 troops.
    The unique ID for the last troop is 360287970189640609 so if you add yours to the end its troop 930 or 360287970189640610 the next would be 36xxx11 then 36xxx12 and so on.
    MAKE SURE THEY ARE "player_supporters_faction" and "not player_faction"

    trp_imperial_levy Imperial_Levy Imperial_Levy 0 3145728 0 0 14 934 0
      477 0 671 0 169 0 171 0 165 0 317 0 297 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
      5 5 4 4 5 # This is Str, Agi, Int, Cha, Level
    75 75 60 60 60 60 0 # This is weapon proficiency starting with one hand, two hand, pole-arm, archery, crossbow, throwing.
    274 131072 0 17 0 0
      1 1315051091194281984 1835136 0 33286021831 7916447985573822463 2031036 0
    2. Navigate to scripts.txt in your module folder whether its native or anther mod.
    Inside scripts.txt look for (ctrl+f) "update_volunteer_troops_in_village"
    Paste the following code OVER the existing code making sure that the blue number below is the unique ID for your faction recruit troop that will come out of your villages.

    update_volunteer_troops_in_village -1
    43 23 2 1224979098644774912 1 521 3 1224979098644774913 1224979098644774912 26 521 3 1224979098644774914 1224979098644774912 19 522 3 1224979098644774915 1224979098644774914 41 2204 2 1224979098644774916 1224979098644774912 4 0 33 3 1224979098644774916 432345564227567631 432345564227567637 522 3 1224979098644774915 1224979098644774916 41 5 0 31 2 1224979098644774916 432345564227567630 2133 2 1224979098644774915 360287970189640610 3 0 2133 2 1224979098644774917 1 2123 3 1224979098644774918 1224979098644774913 10 6 3 1224979098644774919 0 1224979098644774918 2136 3 1224979098644774920 0 100 2147483678 2 1224979098644774920 10 2136 3 1224979098644774920 0 2 1561 3 1224979098644774921 1224979098644774915 1224979098644774920 4 0 2147483680 2 1224979098644774921 0 1561 3 1224979098644774921 1224979098644774915 0 3 0 32 2 1224979098644774921 0 2105 2 1224979098644774917 1 2133 2 1224979098644774915 1224979098644774921 3 0 2133 2 1224979098644774922 7 4 0 30 2 1224979098644774913 5 2133 2 1224979098644774922 1224979098644774913 2108 2 1224979098644774922 2 2105 2 1224979098644774922 10 5 0 2147483678 2 1224979098644774913 0 2133 2 1224979098644774922 0 3 0 2107 2 1224979098644774922 3 2120 3 1224979098644774923 2 1224979098644774917 2108 2 1224979098644774922 1224979098644774923 2136 3 1224979098644774924 0 1224979098644774922 501 3 1224979098644774912 92 1224979098644774915 501 3 1224979098644774912 93 1224979098644774924
    update_npc_volunteer_troops_in_village -1
    23 23 2 1224979098644774912 1 521 3 1224979098644774913 1224979098644774912 19 522 3 1224979098644774914 1224979098644774913 41 2133 2 1224979098644774915 1 6 3 1224979098644774916 0 5 2136 3 1224979098644774917 0 100 2147483678 2 1224979098644774917 10 2136 3 1224979098644774917 0 2 1561 3 1224979098644774918 1224979098644774914 1224979098644774917 4 0 2147483680 2 1224979098644774918 0 1561 3 1224979098644774918 1224979098644774914 0 3 0 32 2 1224979098644774918 0 2105 2 1224979098644774915 1 2133 2 1224979098644774914 1224979098644774918 3 0 2133 2 1224979098644774919 12 2120 3 1224979098644774920 2 1224979098644774915 2108 2 1224979098644774919 1224979098644774920 2136 3 1224979098644774921 0 1224979098644774919 501 3 1224979098644774912 90 1224979098644774914 501 3 1224979098644774912 91 1224979098644774921

    NEXT under update_npc_volunteer_troops_in_village
    Paste the following, making sure to substitute the blue code with your unquie ID if its not troop 930 as above

    31 23 2 1224979098644774912 1 521 3 1224979098644774913 1224979098644774912 19 522 3 1224979098644774914 1224979098644774913 41 2204 2 1224979098644774915 1224979098644774912 4 0 33 3 1224979098644774915 432345564227567631 432345564227567637 522 3 1224979098644774914 1224979098644774915 41 5 0 31 2 1224979098644774915 432345564227567630 2133 2 1224979098644774914 360287970189640610 3 0 2133 2 1224979098644774916 1 6 3 1224979098644774917 0 5 2136 3 1224979098644774918 0 100 2147483678 2 1224979098644774918 10 2136 3 1224979098644774918 0 2 1561 3 1224979098644774919 1224979098644774914 1224979098644774918 4 0 2147483680 2 1224979098644774919 0 1561 3 1224979098644774919 1224979098644774914 0 3 0 32 2 1224979098644774919 0 2105 2 1224979098644774916 1 2133 2 1224979098644774914 1224979098644774919 3 0 2133 2 1224979098644774920 12 2120 3 1224979098644774921 2 1224979098644774916 2108 2 1224979098644774920 1224979098644774921 2136 3 1224979098644774922 0 1224979098644774920 501 3 1224979098644774912 90 1224979098644774914 501 3 1224979098644774912 91 1224979098644774922

    3. Now navigate to "cf_reinforce_party -1" in scripts.txt
    Replace the code under it with this exact code no editing.

    34 21 1 1224979098644774912 2204 2 1224979098644774913 1224979098644774912 521 3 1224979098644774914 1224979098644774912 0 522 3 1224979098644774915 1224979098644774913 77 522 3 1224979098644774916 1224979098644774913 78 522 3 1224979098644774917 1224979098644774913 79 2133 2 1224979098644774918 0 2136 3 1224979098644774919 0 100 4 0 1073741855 2 1224979098644774914 3 31 2 1224979098644774914 2 4 0 2147483678 2 1224979098644774919 65 2133 2 1224979098644774918 1224979098644774915 5 0 2133 2 1224979098644774918 1224979098644774916 3 0 5 0 31 2 1224979098644774914 13 4 0 2147483678 2 1224979098644774919 50 2133 2 1224979098644774918 1224979098644774915 5 0 2147483678 2 1224979098644774919 75 2133 2 1224979098644774918 1224979098644774916 5 0 2133 2 1224979098644774918 1224979098644774917 3 0 5 0 3 0 4 0 32 2 1224979098644774918 0 1675 2 1224979098644774912 1224979098644774918 3 0

    4. Save all the edits you made load your saved game. Wait or play for 72 in game hours or there abouts. Then try to do two of the following things.

      - Recruit a troop from a village owned by a faction that took it over in war.
      - If you can recruit that factions troops  instead of the original culture troop you know its working.

      - If you have your own kingdom try recruiting from any village you have and you should be able to recruit your custom faction troop just like any other.

    I have done exactly what I wrote above and I can recruit any faction troop including my own in any village they or I own regardless of culture. Hope this helps.

    EDIT: There is a way to get your lords to recruit your troops too through party_templates but I'm working on it. My skill limits me since this is all new to me.

    Attempt at having your lords recruit your troops
    So inside party templates I added this to the bottom

    pt_player_supporters_faction_a {!}player_supporters_faction_reinforcements_a 0 0 1 0 934 2 6 0 933 4 7 0 -1 -1 -1 -1
    pt_player_supporters_faction_b {!}player_supporters_faction_reinforcements_b 0 0 1 0 941 2 6 0 940 4 7 0 -1 -1 -1 -1
    pt_player_supporters_faction_c {!}player_supporters_faction_reinforcements_c 0 0 1 0 936 3 6 0 938 2 4 0 -1 -1 -1 -1

    In there you see Kingdom_1 etc those are what the npc factions are called. The player faction is called "player_supporters_faction"
    So I substituted the kingdom_1 with player_supports_faction.

    Next the numbers 934 2 6 0 933 4 7 0 -1 -1 -1 -1 (934 = troop number, 2 = min to recruit, 6 = max to recruit, 933 = next troop to recruit 4 is min 7 is max.
    Basically its saying in one recruitment period for the NPC recruit anywhere between 2 to 6 Trained recruits (my custom troop) and 4 to 7 fresh recruits.
    this goes on for three lines and you can then tell it to recruit more advanced troops etc. This when looking at it explains to me why the damn NPC always has so many archers lol.

    Always add a 0 at the end like the code above and the -1 are place holders. so say in line one you only add one troop to be recruited you would add an extra -1 as a place holder. It would look like this.

    pt_player_supporters_faction_c {!}player_supporters_faction_reinforcements_c 0 0 1 0 936 3 6 0 -1 -1 -1 -1 -1

    Well who knows if this will work but at least it was informative =)

    YOU CAN however edit the kingdom ones to change the way the npc recruits in your game. I actually gave them more foot troops to compensate with archers and more high end troops like Knights because this game is so damn easy even on the hardest setting.

    Can anyone confirm that this is incompatible with v.26?Cause every time I try it I only get something like "23 something are fiercely devoted to you" or "23 Temp something".The 1st option doesn't give me any unit but it does take my money.The later one give me a naked character like a Companion sort of type thats named Temp volunteer or something even tho I got 23 on the option it only gives me 1 unit.Also I have Diplomacy tho I also tried it on Native but still the same result.

    P.S this method work prior to v.26 in Diplomacy and Native.
    P.S.S sorry for my bad english lol
后退
顶部 底部