Hey Crasher_3637, thanks for that code snippet. Perhaps I should have explained in my last post - how would your code be incorporated into the "pills" script? I should have mentioned that I'm no good at coding, so I'm very dependent upon an experienced coder, such as yourself, to help mod this existing script to include your code - assuming that's easy enough to do of course.
I'd be most grateful if you could help out some more on this issue,
Regards, Sunyata