
I want to make a switch. Not just an ordinary switch, though. I want this switch to check the player's inventory for a certain item. And I only want it to work when it finds that item.
So, could anyone here possibly write such a piece of code for me?