home *** CD-ROM | disk | FTP | other *** search
/ Sunday That One Day / STOD_VFS_INVIS.ISO / pc / prim.dxr / 00546.ls < prev    next >
Encoding:
Text File  |  1995-09-15  |  2.8 KB  |  99 lines

  1. on exitFrame
  2.   global red, blue, green, pink, yellow, redtotal, bluetotal, greentotal, pinktotal, yellowtotal
  3.   if red = 1 then
  4.     if redtotal = 1 then
  5.       set the castNum of sprite 4 to cast "reddef"
  6.       set the locH of sprite 4 to 267
  7.       set the locV of sprite 4 to 116
  8.       updateStage()
  9.       puppetSound("doas2.wav")
  10.     else
  11.       set the castNum of sprite 4 to cast "reddef"
  12.       set the locH of sprite 4 to 267
  13.       set the locV of sprite 4 to 116
  14.       updateStage()
  15.     end if
  16.   else
  17.     set the castNum of sprite 4 to cast "red"
  18.     set the locH of sprite 4 to 267
  19.     set the locV of sprite 4 to 116
  20.     updateStage()
  21.   end if
  22.   if blue = 1 then
  23.     if bluetotal = 1 then
  24.       set the castNum of sprite 5 to cast "bluedef"
  25.       set the locH of sprite 5 to 478
  26.       set the locV of sprite 5 to 109
  27.       updateStage()
  28.       puppetSound("give.wav")
  29.     else
  30.       set the castNum of sprite 5 to cast "bluedef"
  31.       set the locH of sprite 5 to 478
  32.       set the locV of sprite 5 to 109
  33.       updateStage()
  34.     end if
  35.   else
  36.     set the castNum of sprite 5 to cast "blue"
  37.     set the locH of sprite 5 to 478
  38.     set the locV of sprite 5 to 109
  39.     updateStage()
  40.   end if
  41.   if green = 1 then
  42.     if greentotal = 1 then
  43.       set the castNum of sprite 6 to cast "greendef"
  44.       set the locH of sprite 6 to 383
  45.       set the locV of sprite 6 to 243
  46.       updateStage()
  47.       puppetSound("iam.wav")
  48.     else
  49.       set the castNum of sprite 6 to cast "greendef"
  50.       set the locH of sprite 6 to 383
  51.       set the locV of sprite 6 to 243
  52.       updateStage()
  53.     end if
  54.   else
  55.     set the castNum of sprite 6 to cast "green"
  56.     set the locH of sprite 6 to 383
  57.     set the locV of sprite 6 to 243
  58.     updateStage()
  59.   end if
  60.   if pink = 1 then
  61.     if pinktotal = 1 then
  62.       set the castNum of sprite 7 to cast "pinkdef"
  63.       set the locH of sprite 7 to 287
  64.       set the locV of sprite 7 to 340
  65.       updateStage()
  66.       puppetSound("bookmor.wav")
  67.     else
  68.       set the castNum of sprite 7 to cast "pinkdef"
  69.       set the locH of sprite 7 to 287
  70.       set the locV of sprite 7 to 340
  71.       updateStage()
  72.     end if
  73.   else
  74.     set the castNum of sprite 7 to cast "pink"
  75.     set the locH of sprite 7 to 287
  76.     set the locV of sprite 7 to 340
  77.     updateStage()
  78.   end if
  79.   if yellow = 1 then
  80.     if yellowtotal = 1 then
  81.       set the castNum of sprite 8 to cast "yellowdef"
  82.       set the locH of sprite 8 to 501
  83.       set the locV of sprite 8 to 304
  84.       updateStage()
  85.       puppetSound("revquiet.wav")
  86.     else
  87.       set the castNum of sprite 8 to cast "yellowdef"
  88.       set the locH of sprite 8 to 501
  89.       set the locV of sprite 8 to 304
  90.       updateStage()
  91.     end if
  92.   else
  93.     set the castNum of sprite 8 to cast "yellow"
  94.     set the locH of sprite 8 to 501
  95.     set the locV of sprite 8 to 304
  96.     updateStage()
  97.   end if
  98. end
  99.