I'm wondering if there would be any way to halt a script at a certain point until some trigger is activated. I'm making a default GUI dialog set like JOptionPane in Java, and I want the player to be able to enter the value before the return is executed.