home *** CD-ROM | disk | FTP | other *** search
/ Curio City 11 / CURIO11.bin / pc / movie / shop / cal_g.dir / 00066.ls < prev    next >
Encoding:
Text File  |  1998-01-01  |  2.5 KB  |  88 lines

  1. global ganserlist, ganserloclist, gseikai, gpeacech, gbattinglist
  2.  
  3. on initquiz
  4.   set gseikai to 0
  5.   set ganserflg to 0
  6.   set gpeacech to 0
  7.   set ganserloclist to []
  8.   set gbattinglist to [1: 0, 2: 0, 3: 0, 4: 0, 5: 0]
  9. end
  10.  
  11. on setpalam1
  12.   set ganserlist to [1: 19, 2: 22, 3: 23, 4: 20, 5: 21]
  13. end
  14.  
  15. on setpalam2
  16.   set ganserlist to [1: 20, 2: 23, 3: 22, 4: 19, 5: 21]
  17. end
  18.  
  19. on setpalam3
  20.   set ganserlist to [1: 23, 2: 22, 3: 21, 4: 19, 5: 20]
  21. end
  22.  
  23. on setpalam4
  24.   set ganserlist to [1: 23, 2: 19, 3: 21, 4: 22, 5: 20]
  25. end
  26.  
  27. on setstage1
  28.   repeat with n = 19 to 23
  29.     set the cursor of sprite n to [member "yubiP", member "yubiPM"]
  30.     set h to the locH of sprite n
  31.     set v to the locV of sprite n
  32.     set poslist to [h, v]
  33.     addAt(ganserloclist, poslist)
  34.     puppetSprite(n, 1)
  35.     set the moveableSprite of sprite n to 1
  36.   end repeat
  37. end
  38.  
  39. on peacescdown
  40.   set gpeacech to clickOn()
  41.   if the moveableSprite of sprite gpeacech then
  42.     set the cursor of sprite gpeacech to [member "yubiG", member "yubiGM"]
  43.   end if
  44. end
  45.  
  46. on peacescup
  47.   repeat with n = 31 to 35
  48.     if sprite gpeacech within n then
  49.       if getaProp(gbattinglist, n - 30) <> gpeacech then
  50.         set batsprite to getaProp(gbattinglist, n - 30)
  51.         set locl to getAt(ganserloclist, n - 30)
  52.         set the locH of sprite batsprite to getAt(locl, 1)
  53.         set the locV of sprite batsprite to getAt(locl, 2)
  54.         set the moveableSprite of sprite batsprite to 1
  55.         set the cursor of sprite batsprite to [member "yubiP", member "yubiPM"]
  56.       end if
  57.       if the moveableSprite of sprite gpeacech then
  58.         puppetSound(3, "poof")
  59.       end if
  60.       setaProp(gbattinglist, n - 30, gpeacech)
  61.       set the rect of sprite gpeacech to the rect of sprite (n - 6)
  62.       set the moveableSprite of sprite gpeacech to 0
  63.       set the cursor of sprite gpeacech to 0
  64.       cursor(0)
  65.       exit repeat
  66.       next repeat
  67.     end if
  68.     set locl to getAt(ganserloclist, gpeacech - 18)
  69.     set the locH of sprite gpeacech to getAt(locl, 1)
  70.     set the locV of sprite gpeacech to getAt(locl, 2)
  71.     set the cursor of sprite gpeacech to [member "yubiP", member "yubiPM"]
  72.   end repeat
  73.   updateStage()
  74. end
  75.  
  76. on stage
  77.   if not (the moveableSprite of sprite 19 or the moveableSprite of sprite 20 or the moveableSprite of sprite 21 or the moveableSprite of sprite 22 or the moveableSprite of sprite 23) then
  78.     repeat with n = 19 to 23
  79.       puppetSprite(n, 0)
  80.     end repeat
  81.     if ganserlist = gbattinglist then
  82.       go(marker(2))
  83.     else
  84.       go(marker(3))
  85.     end if
  86.   end if
  87. end
  88.