home *** CD-ROM | disk | FTP | other *** search
/ Greatest Childrens Stories Ever Told / Greatest_Stories.iso / demos / funtown / demo.dir / 00045_Script_45 < prev    next >
Text File  |  1994-11-08  |  545b  |  26 lines

  1. on PressTheButton
  2.   global WQ, CV, NS, NQ, CU
  3.   
  4.   if CU then exit
  5.   
  6.   put the ClickOn into theClickOn
  7.   put the name of Cast (the CastNum of Sprite theClickOn) into theName
  8.   set the CastNum of Sprite (theClickOn) = the number of Cast (theName& ", Down")
  9.   updateStage
  10.   
  11.   repeat while the StillDown
  12.   end repeat
  13.   
  14.   set the CastNum of Sprite theClickOn = the number of Cast theName
  15.   updateStage
  16.   
  17.   if WQ >= NQ then
  18.     WeHaveAWinner
  19.   else 
  20.     set WQ=WQ+1
  21.     set NS = NS + 1
  22.     reposition (CV)
  23.   end if
  24. end 
  25.  
  26.