I am not a programmer but I have an idea about scripts etc.
In my view something like this as a stand alone script on one NPC that involves checks including line of sight players recognition etc etc is fine.
But
What happens when you enter a bustling town with 20-30 NPC and they are all running these scripts and checks at the same time, plus all the other animation scripts and scripts that are allowing fire to look alive and water to flow, conversations to happen.
I suspect this would be just another feature that sounds great (and if it can be done I would want it done) but would cause to much slow down/ stutters with the systems and this would effect gameplay and enjoyment (which I dont want)
In my view something like this as a stand alone script on one NPC that involves checks including line of sight players recognition etc etc is fine.
But
What happens when you enter a bustling town with 20-30 NPC and they are all running these scripts and checks at the same time, plus all the other animation scripts and scripts that are allowing fire to look alive and water to flow, conversations to happen.
I suspect this would be just another feature that sounds great (and if it can be done I would want it done) but would cause to much slow down/ stutters with the systems and this would effect gameplay and enjoyment (which I dont want)
I said this is not the whole code, and just a schema of the code, and there can be a lot of optimization code thrown in to reduce the bulk of the load.
When you are selling items or when you are being inspected by a guard, then you are dealing with just one person, so there is no problem here, and the only problem is when you are being watched by passers by, and that can be optimized for a maximum radius, for the check, anf when someone is actually wearing a stolen item, or whether if the owner of an item is in sight and so on...
If it is actually implemented, then optimization is no problem after that, even if they are forced to reduce the item recognition to the owners only, it would be a great feature.