Sahran
Grandmaster Knight

I have no experience in scripting, but I am curious about if an idea would be scriptable and if someone could do the script.
A problem faced in Mount and Blade and to an extent Total war is the equipping of spearmen. More often than not mods have to produce artificial swordsmen units because the AI doesn't handle spears and sidearms mixed together. This ends up making players or the AI able to field anachronistic, romanesque armies for people that never would have done so. Ideally, a sword would be found in many of their ranks as a sidearm for the spearman and the archer but not the primary weapon of the spearman.
The goal of this "Spearman script" idea would be:
1) Guarantee unit X always has a spear and sword and shield in his inventory (I am pretty sure this has been done)
2) Guarantee that unit X will always wield the spear unless one of the following criteria is met:
A) The spear breaks (I'm sure this has been done in 1257 for cavalry)
B) The unit isn't in formation or isn't hold position or whatever
C) It's a siege
What I'd be most interested in is 1 and 2-A. Make spearmen always carry a spear and a sword, always wield the spear until it breaks, then they wield swords. Spears would break due to whatever variables (probably a damage threshold & the weapon skill of the NPC).
Would that be possible? Can anyone point me in the right direction for how to script that, or have a script on hand itself?
A problem faced in Mount and Blade and to an extent Total war is the equipping of spearmen. More often than not mods have to produce artificial swordsmen units because the AI doesn't handle spears and sidearms mixed together. This ends up making players or the AI able to field anachronistic, romanesque armies for people that never would have done so. Ideally, a sword would be found in many of their ranks as a sidearm for the spearman and the archer but not the primary weapon of the spearman.
The goal of this "Spearman script" idea would be:
1) Guarantee unit X always has a spear and sword and shield in his inventory (I am pretty sure this has been done)
2) Guarantee that unit X will always wield the spear unless one of the following criteria is met:
A) The spear breaks (I'm sure this has been done in 1257 for cavalry)
B) The unit isn't in formation or isn't hold position or whatever
C) It's a siege
What I'd be most interested in is 1 and 2-A. Make spearmen always carry a spear and a sword, always wield the spear until it breaks, then they wield swords. Spears would break due to whatever variables (probably a damage threshold & the weapon skill of the NPC).
Would that be possible? Can anyone point me in the right direction for how to script that, or have a script on hand itself?