home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d8xx / d806 / mxreq.lha / MXReq / Example.script next >
Text File  |  1993-01-24  |  2KB  |  92 lines

  1. ; This example shows you how MXReq works
  2. ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. ; The script must be executed from the same directory
  4. ; where MXReq resides
  5. ; Simply double click its icon, this will work because
  6. ; c:IconX is set as default tool. If it won't work
  7. ; please check if IconX is really in your c:
  8.  
  9. FAILAT 11
  10.  
  11. lab reselect
  12. MXReq Title="Do you want:" STR1="Fish & Chips" STR2="Bacon & Eggs" STR3="Salt & Pepper" ENVNAME=RESTAURANT ENV1=FISH ENV2=EGGS ENV3=SALT HELPFILE=Helpfile.txt
  13.  
  14. IF WARN
  15. lab cancel
  16.     echo "Cancelled."
  17.     skip ready
  18. ENDIF
  19.  
  20. IF $RESTAURANT EQ FISH
  21.     MXReq Title="Fish & Chips with:" STR1="Ketchup" STR2="Ketchdown" STR3="I want another meal..." ENVNAME=FISH ENV1=UP ENV2=DOWN ENV3=RESEL
  22.     IF WARN
  23.     skip cancel BACK
  24.     ENDIF
  25.     IF $FISH EQ UP
  26.     echo "Fish & Chips with ketchup, sir."
  27.     echo "Anything else?"
  28.     skip reselect BACK
  29.     ENDIF
  30.     IF $FISH EQ DOWN
  31.     echo "Fish & Chips with ketchdown, sir."
  32.     echo "Anything else?"
  33.     skip reselect BACK
  34.     ENDIF
  35.     IF $FISH EQ RESEL
  36.     skip reselect BACK
  37.     ENDIF
  38. ENDIF
  39.  
  40. IF $RESTAURANT EQ EGGS
  41.     MXREQ Title="Sorry, bacon is out..." STR1="leave the restaurant" STR2="kill the cook" STR3="kill myself" STR4="drink a bottle of Vodka" STR5="select another meal" ENVNAME=BACON ENV1=LEAVE ENV2=KILLCOOK ENV3=KILLSELF ENV4=VODKA ENV5=RESEL
  42.     IF WARN
  43.     skip cancel BACK
  44.     ENDIF
  45.     IF $BACON EQ LEAVE
  46.     echo "You leave the restaurant in rage."
  47.     echo "But 3 days later you decide to return..."
  48.     skip reselect BACK
  49.     ENDIF
  50.     IF $BACON EQ KILLCOOK
  51.     echo "Done. But there remain a few more cooks."
  52.     skip reselect BACK
  53.     ENDIF
  54.     IF $BACON EQ KILLSELF
  55.     echo "Aaaaargh."
  56.     echo "You wake up in a restaurant somewhere in heaven..."
  57.     skip reselect BACK
  58.     ENDIF
  59.     IF $BACON EQ RESEL
  60.     skip reselect BACK
  61.     ENDIF
  62.     IF $BACON EQ VODKA
  63.     echo "After a long march you arrive at home..."
  64. lab drunken
  65.     MXReq Title="Do you want to..." STR1="enter the door?" STR2="use a window." ENVNAME=HOME ENV1=ENTER ENV2=RUN
  66.     IF WARN
  67.         skip cancel BACK
  68.     ENDIF
  69.     IF $HOME EQ ENTER
  70.         echo "You failed..."
  71.         skip drunken BACK
  72.     ENDIF
  73.     IF $HOME EQ RUN
  74.         echo "Almost impossible, but you manage it."
  75.         echo "After only 10 minutes you begin to realize that you are in a restaurant."
  76.         skip reselect BACK
  77.     ENDIF
  78.     ENDIF
  79. ENDIF
  80.  
  81. IF $RESTAURANT EQ SALT
  82.     echo "That was very clever indeed."
  83.     skip ready
  84. ENDIF
  85.  
  86. lab ready
  87. ask "<RETURN> when ready:"
  88.  
  89.  
  90.  
  91.  
  92.