1. Store number of keys in a global variable (start the function to check, and set, the number of keys by using a hidden pressure plate in front of the lock).
2. Create function that will run on activation of the lock, it will return the number of keys minus 1 to the first slot in champ1 inventory.
hope this helps
