Maybe this would work:
just wire it to the item granter when the player gets it correct. Btw, welcome to the forums