What you need is a trigger - if you read this post viewtopic.php?f=14&t=3063 you will see we have 2 alcoves, 1 button that triggers checking the contents of one alcove and puts something in the second if conditions are met. rather than adding to the second alcove, you could look to advance a counter if there are multiple items in alcoves needed, or use the activate() method on the door object you want to open.
Komag has been very helpful to other here and I really dont think he was trying to be rude, but you are asking things and it is obvious that either you have not looked at the basic operations, or have missed the point somewhat - namely with connectors. Understanding how these are used might help to explain how some triggers occur - otherwise you end up looking at event hooks which then means you need to cloneobjects etc which is more complicated than it needs to be. Plus text is a fickle medium - one persons typing sound harsh to another sometimes even when it is not meant that way.
That said, I always like to jump in the deep end too
