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

  1. global guserlist, gnowvoldaka
  2.  
  3. on volbtn
  4.   set m to the money of guserlist
  5.   set s to the vol of guserlist
  6.   set spnum to clickOn()
  7.   set nowcastnum to the castNum of sprite spnum
  8.   put nowcastnum - 680 after field "nyuuryoku"
  9.   set mojisuu to the length of field "nyuuryoku"
  10.   set nowyokin to word 1 of field "nyuuryoku"
  11.   if ((nowyokin * 10) - gnowvoldaka) <= m then
  12.     puppetSprite(spnum, 1)
  13.     repeat while the stillDown
  14.       if rollOver(spnum) then
  15.         set the castNum of sprite spnum to nowcastnum + 20
  16.       else
  17.         set the castNum of sprite spnum to nowcastnum
  18.       end if
  19.       updateStage()
  20.     end repeat
  21.     puppetSprite(spnum, 0)
  22.     if mojisuu = 1 then
  23.       set no1 to char 1 of field "nyuuryoku"
  24.       puppetSprite(31, 1)
  25.       set the castNum of sprite 31 to no1 + 720
  26.       set the visible of sprite 31 to 1
  27.       set m to m - (nowyokin * 10) + gnowvoldaka
  28.       put integer(m) into field "money"
  29.       set s to s + (nowyokin * 10) - gnowvoldaka
  30.       set the money of guserlist to m
  31.       set gnowvoldaka to nowyokin * 10
  32.     else
  33.       if mojisuu = 2 then
  34.         set no1 to char 1 of field "nyuuryoku"
  35.         set no2 to char 2 of field "nyuuryoku"
  36.         puppetSprite(31, 1)
  37.         puppetSprite(32, 1)
  38.         set the castNum of sprite 31 to no2 + 720
  39.         set the castNum of sprite 32 to no1 + 720
  40.         set the visible of sprite 31 to 1
  41.         set the visible of sprite 32 to 1
  42.         set m to m - (nowyokin * 10) + gnowvoldaka
  43.         put integer(m) into field "money"
  44.         set s to s + (nowyokin * 10) - gnowvoldaka
  45.         set the money of guserlist to m
  46.         set gnowvoldaka to nowyokin * 10
  47.       else
  48.         if mojisuu = 3 then
  49.           set no1 to char 1 of field "nyuuryoku"
  50.           set no2 to char 2 of field "nyuuryoku"
  51.           set no3 to char 3 of field "nyuuryoku"
  52.           puppetSprite(31, 1)
  53.           puppetSprite(32, 1)
  54.           puppetSprite(33, 1)
  55.           set the castNum of sprite 31 to no3 + 720
  56.           set the castNum of sprite 32 to no2 + 720
  57.           set the castNum of sprite 33 to no1 + 720
  58.           set the visible of sprite 31 to 1
  59.           set the visible of sprite 32 to 1
  60.           set the visible of sprite 33 to 1
  61.           set m to m - (nowyokin * 10) + gnowvoldaka
  62.           put integer(m) into field "money"
  63.           set s to s + (nowyokin * 10) - gnowvoldaka
  64.           set the money of guserlist to m
  65.           set gnowvoldaka to nowyokin * 10
  66.         else
  67.           if mojisuu = 4 then
  68.             beep()
  69.             alert("テウツコテォテキテテ陛A9990テ鵜テ嘉姪嘉、テ迂テ[テ瑛テ窶ケテツシテツシテテ敕B")
  70.             delete char 4 of field "nyuuryoku"
  71.           end if
  72.         end if
  73.       end if
  74.     end if
  75.     updateStage()
  76.   else
  77.     beep()
  78.     delete char mojisuu of field "nyuuryoku"
  79.   end if
  80. end
  81.  
  82. on volbtn0
  83.   set m to the money of guserlist
  84.   set s to the vol of guserlist
  85.   set spnum to clickOn()
  86.   set nowcastnum to the castNum of sprite spnum
  87.   put nowcastnum - 680 after field "nyuuryoku"
  88.   set mojisuu to the length of field "nyuuryoku"
  89.   set nowyokin to word 1 of field "nyuuryoku"
  90.   if nowyokin <> 0 then
  91.     if ((nowyokin * 10) - gnowvoldaka) <= m then
  92.       puppetSprite(spnum, 1)
  93.       repeat while the stillDown
  94.         if rollOver(spnum) then
  95.           set the castNum of sprite spnum to nowcastnum + 20
  96.         else
  97.           set the castNum of sprite spnum to nowcastnum
  98.         end if
  99.         updateStage()
  100.       end repeat
  101.       puppetSprite(spnum, 0)
  102.       if mojisuu = 1 then
  103.         set no1 to char 1 of field "nyuuryoku"
  104.         puppetSprite(31, 1)
  105.         set the castNum of sprite 31 to no1 + 720
  106.         set the visible of sprite 31 to 1
  107.         set m to m - (nowyokin * 10) + gnowvoldaka
  108.         put integer(m) into field "money"
  109.         set s to s + (nowyokin * 10) - gnowvoldaka
  110.         set the money of guserlist to m
  111.         set gnowvoldaka to nowyokin * 10
  112.       else
  113.         if mojisuu = 2 then
  114.           set no1 to char 1 of field "nyuuryoku"
  115.           set no2 to char 2 of field "nyuuryoku"
  116.           puppetSprite(31, 1)
  117.           puppetSprite(32, 1)
  118.           set the castNum of sprite 31 to no2 + 720
  119.           set the castNum of sprite 32 to no1 + 720
  120.           set the visible of sprite 31 to 1
  121.           set the visible of sprite 32 to 1
  122.           set m to m - (nowyokin * 10) + gnowvoldaka
  123.           put integer(m) into field "money"
  124.           set s to s + (nowyokin * 10) - gnowvoldaka
  125.           set the money of guserlist to m
  126.           set gnowvoldaka to nowyokin * 10
  127.         else
  128.           if mojisuu = 3 then
  129.             set no1 to char 1 of field "nyuuryoku"
  130.             set no2 to char 2 of field "nyuuryoku"
  131.             set no3 to char 3 of field "nyuuryoku"
  132.             puppetSprite(31, 1)
  133.             puppetSprite(32, 1)
  134.             puppetSprite(33, 1)
  135.             set the castNum of sprite 31 to no3 + 720
  136.             set the castNum of sprite 32 to no2 + 720
  137.             set the castNum of sprite 33 to no1 + 720
  138.             set the visible of sprite 31 to 1
  139.             set the visible of sprite 32 to 1
  140.             set the visible of sprite 33 to 1
  141.             set m to m - (nowyokin * 10) + gnowvoldaka
  142.             put integer(m) into field "money"
  143.             set s to s + (nowyokin * 10) - gnowvoldaka
  144.             set the money of guserlist to m
  145.             set gnowvoldaka to nowyokin * 10
  146.           else
  147.             if mojisuu = 4 then
  148.               beep()
  149.               alert("1テ「テ津窶ヲテウツコテォテキテツシテツエテテ暗テεテ陛A9990テ鵜テ嘉姪嘉、テ迂テ[テ瑛テ窶ケテツシテツシテテ敕B")
  150.               delete char 4 of field "nyuuryoku"
  151.             end if
  152.           end if
  153.         end if
  154.       end if
  155.       updateStage()
  156.     else
  157.       beep()
  158.       delete char mojisuu of field "nyuuryoku"
  159.     end if
  160.   else
  161.     delete char 1 of field "nyuuryoku"
  162.   end if
  163. end
  164.