Thank you for contributing your ideas on how to make H5P better! We’re now working on something called the H5P supporter program allowing the H5P community to vote for and fund the top voted H5P features. Also there are developers in the community who every now and then works on a feature they find interesting or useful.

I have thought about that myself, but it's rather a large feature because there are quite a lot UX related things to think about and that feature would definitely raise complexity of the content type, both in the backend and in the frontend.

Having a settings widget to define variables (boolean and integer) is simple, but having a user friendly way to define when to set a variable to what and in particular the "if this then that" part might be a little challenge. It's probably not a big deal if you stick to one "this" and one "that" (e.g. prevent proceed"), but I can imagine that quickly people would like to have a "if this and this but not this", checks for greater than/smaller than/ranges instead of single integer values, have other actions such as "jump to", "set some other variable". And you should probably have some debugging mode for the authors, too.

I think even if someone from within the community could spare the time to implement this feature, that's definitely something that the H5P core team will have to be involved with - and their time is precious and required for a lot of things.