I have some NPCS protecting a treasure room in a friendly building. But if the player comes close they turn hostile. I don't know if the NPCS should attack everyone when triggered or only attack the player that triggered them. The latter seems good but if another player could sneak behind the guards whilst they attack someone else and succeed in an easy victory. How should I tackle this issue. If I use the former a random person who didn't do anything but is peacefully looking at the situation could get attacked which isn't RP-Friendly.
By adding more NPCS it kills a main attacker faster however doesn't solve the latter.
By adding more NPCS in the room would cause problems as it is smaller than a cubicle because of the design of the room being centred on the middle but making it larger it loses it's attention.
By simply removing the guards but adding another room before the treasure room, where the guards are. This is ok to stop the first issue because not many players will enter but it will lose the curiosity of guards guarding a door but rather another door.