home *** CD-ROM | disk | FTP | other *** search
/ Cocktail Hour / image.iso / TRIVIAEX.CST / 00035_Script_IdleWine < prev    next >
Text File  |  1996-03-03  |  1KB  |  43 lines

  1. on exitFrame
  2.   global OnceCheck
  3.   cursor -1
  4.   if OnceCheck=0 then
  5.     repeat with k=3 to 7
  6.       set the cursor of sprite k=[34,35]
  7.     end repeat
  8.     set the cursor of sprite 13=[34,35]
  9.     set the cursor of sprite 14=[34,35]
  10.     set the cursor of sprite 18=[34,35]
  11.     set the cursor of sprite 24=[34,35]
  12.     set OnceCheck= 1
  13.     repeat with i=42 to 48
  14.       puppetSprite i,1
  15.     end repeat
  16.   end if
  17.   global gTriviaQuestMem
  18.   if  the text of field "score" of castLib "TriviaEx.cst" = 10 and (the last char of gTriviaQuestMem)  and the timer>100 then 
  19.     set the member of sprite 19=member "special" of castLib "triviaEx.cst"
  20.   end if
  21.   
  22.   go to the frame
  23. end
  24.  
  25. on mouseDown
  26.   global checkPress
  27.   set checkPress=the clickOn
  28.   set bDown=the clickOn
  29.   if bDown>41 then
  30.     buttonPressedDown bDown,"trivia"
  31.   end if
  32. end
  33.  
  34. on mouseUp
  35.   global checkPress
  36.   set checkPress2=the clickOn
  37.   if checkPress=checkPress2 then
  38.     set bUp=the clickon
  39.     if bUp>41 then
  40.       buttonPressedUp bUp,"trivia"
  41.     end if
  42.   end if
  43. end