Devling99 wrote...
I need a script that can ensure that my npc wont change their weapon out with the most damaging weapon, but just keep the weapon i gave them in hand, until i give them another.
How can this be done?
Well in order to do it the way you are asking, you would have to modify the AI to where they do not select the most damaging weapon. This rout just does not sound like the simplest option to me. But I do not really know what is triggering the weapons change on your guards, so I may be wrong.
The Simplest option is to allow your guards to have only one weapon. This will not give them the option to change it via the Combat AI. Instead of Changing an Int on the guard to select the weapon they equip, as you sugested in the other post, just write that script to change the weapon that they posses. This can be done either by destroying the old weapon and creating a new one or modifing the one that they have.
The Route taken is really dependent on what is triggering the change and when it is happening. If it is happening in the middle of combat writing a custom AI for the guards with the Int set may be the option. I myself right now do not have the time, at the moment, to digg back through the AI to figure it out again.