How to make a door requied more keys than 1?

Hi,how do I adjust it so that the player opens the door only when he has a certain number of keys? For example 7? Please, I need help, now I have it set to take the key and when he approaches the door, it will open, these are my blueprints:

Instead of a bool ‘has key’, use an integer, the number of keys.

2 Likes