コメント

このコメントは、ゲームをやっていない時も時間を(ryへのコメントです。

コメントの内容

User icon mini 退会したユーザー(投稿日:2012/12/17 20:12/17/12)
setVariable("tim", 0)
setVariable("time", getLocalCurrentTimeMillisecond())

def check()
  setVariable("tim", getLocalCurrentTimeMillisecond() - getVariable("time") + getVariable("tim"))
  if getVariable("tim") >= 1000
    sec = floor(getVariable("tim") / 1000)
    if sec >= 60
      min = floor(sec / 60)
      sec = sec % 60
      if min >= 60
        hou = floor(min / 60)
        min = min % 60
        if hou >= 24
          day = floor(hou / 24)
          hou = hou % 24
          if day >= 365
            yea = floor(yea / 365)
            day = day % 365
          else
            yea = 0
          end
        else
          day = 0
          yea = 0
        end
      else
        hou = 0
        day = 0
        yea = 0
      end
    else
      min = 0
      hou = 0
      day = 0
      yea = 0
    end
  else
    sec = 0
    min = 0
    hou = 0
    day = 0
    yea = 0
  end
  speak(""+yea+"年"+day+"日"+hou+"時間"+min+"分"+sec+"秒たちました(笑)")
  setVariable("time",  getLocalCurrentTimeMillisecond())
end

連投すいません

コメントの内容(一番最初の投稿)

User icon mini 退会したユーザー(投稿日:2012/12/17 20:12/17/12)
setVariable("tim", 0)
setVariable("time", getLocalCurrentTimeMillisecond())

def check()
  setVariable("tim", getLocalCurrentTimeMillisecond() - getVariable("time") + getVariable("tim"))
  if getVariable("tim") >= 1000
    sec = floor(getVariable("tim") / 1000)
    if sec >= 60
      min = floor(sec / 60)
      sec = sec % 60
      if min >= 60
        hou = floor(min / 60)
        min = min % 60
        if hou >= 24
          day = floor(hou / 24)
          hou = hou % 24
          if day >= 365
            yea = floor(yea / 365)
            day = day % 365
          else
            yea = 0
          end
        else
          day = 0
          yea = 0
        end
      else
        hou = 0
        day = 0
        yea = 0
      end
    else
      min = 0
      hou = 0
      day = 0
      yea = 0
    end
  else
    sec = 0
    min = 0
    hou = 0
    day = 0
    yea = 0
  end
  speak(""+yea+"年"+day+"日"+hou+"時間"+min+"分"+sec+"秒たちました(笑)")
  setVariable("time",  getLocalCurrentTimeMillisecond())
end

連投すいません