If you are trying to make one activity conditional on a completion of a previous activity this is probably best done using Moodle restrict access settings.
It's not a function of H5P.
https://docs.moodle.org/39/en/Restrict_access_settings
It's not a function of H5P.
https://docs.moodle.org/39/en/Restrict_access_settings