Custom event for any object ?

You can give a button an unique property of what is being triggered. Like a string or a name and dispatch it with an event when a player interacts with the button. The event triggers only if a certain condition has been met. Think of it as a safe that has a security code.