Also, this may be even more complicated but is there a way to do the same as above but with only certain weapon types. (for example if it is at all possible I was planning to have all weapons be detectable by guards except short blades so an assassin character could smuggle one in).
-I don't know if either of these are possible at all and I am a complete noob at scripting so any help or advice would be great.