I don't know what that link is, it doesn't seem to work.
I think I know what's going on, but I still can't figure out a solution.
The problem is that I want the code to stop at a certain line, but in javascript (like most programming languages) code execution doesn't work that way. It runs through the code, line by line, as fast as it can all the time. A 'pause' effect can be achieved by having a loop that won't progress untill something (like pressing unpause) breaks it out of the loop.
I have tried to create just this sort of code, but doing it in javascript creates an infinite loop, and doing it in the editor makes the game really laggy.
This whole thing could be solved if there was a way to enter a string variable (so a variable created in the javascript file) into a show text instruction.
The main point of this endeavor is to avoid the rediculious mess of if statements that my code would require if made in the editor. Making it in a function in javascript is so much cleaner.