Hello I have been working on this story for a couple of months and I wanted to make this intro to the game and everything works but I want to make this code automatically redirect the user to the passage start menu instead of making them click onto the button after the video ends.
This may not work at all, I’m just making suggestions in the dark.
Can you put the user on a page with the video but no interaction options except a “skip” link, then run a separate timer on the page that is set to the same length as the video and navigates to a new page when it runs out?
I haven’t dealt with video in HTML before, but if your code for making the button appear (when the video concludes) works then you should be able to accomplish what you want to do.
I don’t believe Harlowe exposes any of it’s macro functionality in JavaScript so what I’ve done in the past is use a simulated click on a hidden Harlowe link from JavaScript. This is how I run Harlowe code from JavaScript.
Setup the hidden Harlowe link within a named hook: