New to modding - Help with Troop Inventory please

正在查看此主题的用户

Moonsteel

Recruit
I need help with Troop Inventory for Warband.
I'm using Morgh's editor.

I'm making a Footman/Pikeman style unit. I gave it a shield, sword, and pike as weapons... during battles though only some of the units actually get a pike, they all get the sword and shield though. I want them all to have the pike as well though, any way to fix that?
 
you have flags to tell a troop about weapon selection

guarantee_range
guarantee_shield

stuff like that. That will "force" it to get one if its available on the inventory. Older version of Warband didn't have one for polearms (your pike), but the recent one has (1.16:cool:, so you could now add this to the troop.

插入代码块:
tf_guarantee_boots            = 0x00100000
tf_guarantee_armor            = 0x00200000
tf_guarantee_helmet           = 0x00400000
tf_guarantee_gloves           = 0x00800000
tf_guarantee_horse            = 0x01000000
tf_guarantee_shield           = 0x02000000
tf_guarantee_ranged           = 0x04000000
tf_guarantee_polearm          = 0x08000000
tf_unmoveable_in_party_window = 0x10000000 #Cannot be moved in the party (P-button?) window.

If you have the game source (.py files for the module system) it will be easy to add the polearm one

visit the Q&A thread (sticky) for future questions on modding
 
后退
顶部 底部