home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 November / WPCNOV96.ISO / artwnov.dxr / 00006_ADDAdvertBreak.ls < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.5 KB  |  39 lines

  1. on ADDAdvertBreak x
  2.   global ADDAdCount, ADDADvertSprite, ADDADCOntTwo, IFLButtonList, ARTNOADFLASH
  3.   if ARTNOADFLASH = 0 then
  4.     set ADDAdCount to 1 + ADDAdCount
  5.     if ADDAdCount < 401 then
  6.       if (ADDAdCount > 399) and (ADDAdCount < 403) then
  7.         set TempInfoList to getAt(IFLButtonList, x)
  8.         set the castNum of sprite ADDADvertSprite to getAt(TempInfoList, 6)
  9.         set the locH of sprite ADDADvertSprite to getAt(TempInfoList, 7)
  10.         set the locV of sprite ADDADvertSprite to getAt(TempInfoList, 8)
  11.         set the ink of sprite ADDADvertSprite to 36
  12.       end if
  13.     else
  14.       set ADDADCOntTwo to 1 + ADDADCOntTwo
  15.       if ADDADCOntTwo < 100 then
  16.         if (ADDAdCount > 402) and (ADDAdCount < 406) then
  17.           set TempInfoList to getAt(IFLButtonList, x)
  18.           set the castNum of sprite ADDADvertSprite to getAt(TempInfoList, 6) + 1
  19.           set the ink of sprite ADDADvertSprite to 36
  20.         else
  21.           if ADDAdCount = 406 then
  22.             set ADDAdCount to 399
  23.             set TempInfoList to getAt(IFLButtonList, x)
  24.             set the castNum of sprite ADDADvertSprite to getAt(TempInfoList, 6)
  25.             set the ink of sprite ADDADvertSprite to 36
  26.           end if
  27.         end if
  28.       else
  29.         set ADDADCOntTwo to 0
  30.         set ADDAdCount to 0
  31.         set TempInfoList to getAt(IFLButtonList, x)
  32.         set the castNum of sprite ADDADvertSprite to getAt(TempInfoList, 6)
  33.         set the locH of sprite ADDADvertSprite to 2000
  34.       end if
  35.     end if
  36.     updateStage()
  37.   end if
  38. end
  39.