The condition would be that eg item1 opens door1 or item1 defeats enemy1. It would be that simple. This functionality will be enabled by boolean variables in the template file.
Bingo! There's a possible solution to the HP system as well., e.g.: if you interact with the enemy without the item, you lose HP. If you have the item and interact with the enemy, enemy felled.