This is script that can help you, to bring some branches into your gameplay, just if you need to do something interesting.
How it works:
You will need to do something when you'll pick up something. Put some action in info portion element when it will be added to you, and add Info portion from "pickup" script. And it's work!