home *** CD-ROM | disk | FTP | other *** search
/ Car Screensaver - Toyota / TOYOTA.iso / mjparty / vivi_ex.exe / vivi_ex.DXR / 00058.ls < prev    next >
Encoding:
Text File  |  1996-05-13  |  1.5 KB  |  67 lines

  1. on exitFrame
  2.   global gscr, gmode, gstg, gbor, ghislist
  3.   cursor(200)
  4.   repeat with n = 46 to 48
  5.     set the cursor of sprite n to 0
  6.   end repeat
  7.   repeat with n = 14 to 38
  8.     set the cursor of sprite n to 0
  9.   end repeat
  10.   counth(gscr, 261)
  11.   if gmode = 20 then
  12.     repeat with n = 40 to 43
  13.       set the locV of sprite n to 130
  14.       set the locH of sprite n to 231 + (15 * (n - 40))
  15.     end repeat
  16.     counth(gbor, 261)
  17.   end if
  18.   repeat with n = 40 to 43
  19.     set the castNum of sprite n to 292
  20.     set the locV of sprite n to 183
  21.     set the locH of sprite n to 282 + (12 * (n - 40))
  22.   end repeat
  23.   repeat with n = 1 to count(ghislist)
  24.     counth(getAt(ghislist, n), 281)
  25.     repeat with m = 40 to 43
  26.       set the locV of sprite m to 183 + (20 * n)
  27.     end repeat
  28.   end repeat
  29.   startgame()
  30.   go(marker(-4) + 1)
  31. end
  32.  
  33. on counth pts, ca
  34.   if pts > 9999 then
  35.     set pts to 9999
  36.   else
  37.     if pts < -999 then
  38.       set pts to -999
  39.     end if
  40.   end if
  41.   set num to abs(pts)
  42.   set b1 to num / 1000
  43.   set num to num - (b1 * 1000)
  44.   set b2 to num / 100
  45.   set num to num - (b2 * 100)
  46.   set b3 to num / 10
  47.   set b4 to num - (b3 * 10)
  48.   repeat with n = 1 to 4
  49.     do("put b" & string(n) & " into num")
  50.     if num <> 0 then
  51.       exit repeat
  52.       next repeat
  53.     end if
  54.     set the castNum of sprite (n + 39) to ca + 11
  55.   end repeat
  56.   if n = 5 then
  57.     set n to 4
  58.   end if
  59.   repeat with m = n to 4
  60.     do("set the castNum of sprite (m+39) to (ca + b" & string(m) & ")")
  61.   end repeat
  62.   if pts < 0 then
  63.     set the castNum of sprite 40 to ca + 10
  64.   end if
  65.   updateStage()
  66. end
  67.