Multiple npcs will be using this script.
begin pwNPCScriptshort lastDetectedif ( ( GetDetected "player" ) != lastDetected ) set lastDetected to ( GetDetected "player" ) if ( lastDetected ) set pwDetectCount to ( pwDetectCount + 1 ) else set pwDetectCount to ( pwDetectCount - 1 ) endifendifendif pwDetectCount is > 0, someone should be detecting
if ( GetDetected, "teres arothan" == 1 ) if ( GetDetected, Player == 1 )