home *** CD-ROM | disk | FTP | other *** search
/ Curio City 11 / CURIO11.bin / pc / movie / start.dir / 01059.ls < prev    next >
Encoding:
Text File  |  1998-01-01  |  2.2 KB  |  85 lines

  1. global guserlist
  2.  
  3. on keyDown
  4.   if the keyCode = 126 then
  5.     if the soundLevel < 7 then
  6.       set the soundLevel to the soundLevel + 1
  7.     end if
  8.   else
  9.     if the keyCode = 125 then
  10.       if the soundLevel > 0 then
  11.         set the soundLevel to the soundLevel - 1
  12.       end if
  13.     end if
  14.   end if
  15. end
  16.  
  17. on savedb
  18.   global gusernumber, guserlist, gwin, gapppath
  19.   if (gusernumber >= 1) and (gusernumber <= 5) then
  20.     set x to gusernumber
  21.     storeglobal()
  22.     if gwin = 0 then
  23.       set myobj to fileio(mnew, "write", gapppath & "CCUSER" & x)
  24.     else
  25.       set myobj to fileio(mnew, "write", gapppath & "CCUSER" & x & ".CC5")
  26.     end if
  27.     if objectp(myobj) then
  28.       myobj(mwritestring, string(guserlist))
  29.       myobj(mdispose)
  30.       if gwin = 0 then
  31.       else
  32.       end if
  33.     else
  34.       alert("テ液テ院テ韻テ嘉」テテεッツ、テォテーテ窶ヲテゥテ榲ョsテツオテ窶ケテツオテテステB")
  35.     end if
  36.   end if
  37. end
  38.  
  39. on storeglobal
  40.   global guserlist, ghonda, gshopping, gkikuco
  41.   set the honda of guserlist to ghonda
  42.   set the shopping of guserlist to gshopping
  43.   set the kikuco of guserlist to gkikuco
  44. end
  45.  
  46. on btndown
  47.   set btn to item 1 of the name of cast the castNum of sprite clickOn()
  48.   repeat while stillDown()
  49.     if rollOver(clickOn()) then
  50.       set the castNum of sprite clickOn() to the number of member (btn & ",D")
  51.     else
  52.       set the castNum of sprite clickOn() to the number of member (btn & ",U")
  53.     end if
  54.     updateStage()
  55.   end repeat
  56.   sound playFile 3, "@::shop:oto:exit"
  57.   set the castNum of sprite clickOn() to the number of member (btn & ",U")
  58.   updateStage()
  59.   if rollOver(clickOn()) then
  60.     return 1
  61.   else
  62.     return 0
  63.   end if
  64. end
  65.  
  66. on wait t
  67.   set endtime to the ticks + t
  68.   repeat while the ticks <= endtime
  69.     nothing()
  70.   end repeat
  71. end
  72.  
  73. on setsoundbalance
  74.   if soundBusy(1) then
  75.     set the volume of sound 2 to 180
  76.   else
  77.     set the volume of sound 2 to 255
  78.   end if
  79. end
  80.  
  81. on initgkikuco
  82.   global gkikuco
  83.   set gkikuco to [#scene: 0, #okuzawa: 0, #sasayama: 0, #karaoke: 0, #pachinko: 0, #panda: 0, #agt2: 0, #ooeyma: 0, #agt1: 0, #handgun: 1, #submg: 0, #shotgun: 0, #mg: 0, #hp: 80, #zandan: 80, #shiji: 0, #nowarmch: 25, #gameuname: EMPTY, #life: 1, #dancho: 1, #hakase: 1, #yamamoto: 1, #hirasaka: 1, #lastweapon: 0]
  84. end
  85.