It seems from conversation here: Unconfirmed Bug - Navy Soldiers not blocked from inappropriate weapons | PiratesAhoy!
That it might be true that people don't want any enemies ever using the worst weapons (knives, tools, etc).
If that is the case, the attached files will remove any chance of them being used.
If that isn't the case, and people want them just not on nationality ships other than pirates, then we can pursue simply fixing the function in the linked thread.
Either way, that one will need to be fixed to block the wrong types of nationality weapons, but it seems like people might also want this too, as they don't seem to like knives and tools as weapons on enemies.
program/items and program/loc_ai
EDIT: note, incorperates changes to Tizona from other thread.
Will need playtesting and possible tweaking to make sure it is working right. It is just a matter of setting the min level for proper swords at 2, keeping the tools and knives at 1, and then clamping the min level for npcs at 2 (but not for guns, just for swords).
EDIT2: didn't work sadly, as Ansel confirms, now thinking instead we should just add a itm.skipequip to each item we don't want, see bottom post.
That it might be true that people don't want any enemies ever using the worst weapons (knives, tools, etc).
If that is the case, the attached files will remove any chance of them being used.
If that isn't the case, and people want them just not on nationality ships other than pirates, then we can pursue simply fixing the function in the linked thread.
Either way, that one will need to be fixed to block the wrong types of nationality weapons, but it seems like people might also want this too, as they don't seem to like knives and tools as weapons on enemies.
program/items and program/loc_ai
EDIT: note, incorperates changes to Tizona from other thread.
Will need playtesting and possible tweaking to make sure it is working right. It is just a matter of setting the min level for proper swords at 2, keeping the tools and knives at 1, and then clamping the min level for npcs at 2 (but not for guns, just for swords).
EDIT2: didn't work sadly, as Ansel confirms, now thinking instead we should just add a itm.skipequip to each item we don't want, see bottom post.
Last edited: