Useful Functions

version 1 by ShadowChaser

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 3 - Yes / No

    To decide what text is the yesno_answer:
        let the answer be "MAYBE";
        let the exitvalue be 0;
        while the exitvalue is 0 begin;
            let keypress be the key_pressed;
            if keypress is 89 or keypress is 121 begin;
                let the answer be "YES";
                let the exitvalue be 1;
            otherwise if keypress is 78 or keypress is 110;
                let the answer be "NO";
                let the exitvalue be 1;
            end if;
        end while;
        decide on the answer.

    To decide what text is the yesno_answer_with_question (question - some text):
        say "[question][line break]";
        decide on the yesno_answer.