#此定义了一个2014-2016 的时间系统
#game_variables[31][0] 为2014年
#game_variables[31][1] 为月份的十位
#game_variables[31][2] 为月份的个位
#game_variables[31][3] 为天数的十位
#game_variables[31][4] 为天数的个位
$game_variables[31] = [4,0,1,0,1]
#此定义了号数的个位到十位的十进制
if $game_variables[31][4] > 9
$game_variables[31][3] += 1
$game_variables[31][4] = 0
end
#此定义了月份的个位到十位的十进制
if $game_variables[31][2] > 9
$game_variables[31][1] += 1
$game_variables[31][2] = 0
end
#此定义了年份满12月,年数进一位
if $game_variables[31][1] == 1 and $game_variables[31][2] == 3
$game_variables[31][1] = 0
$game_variables[31][2] = 1
$game_variables[31][0] += 1
end
#此定义了大月31天月份进一位
if ($game_variables[31][1] == 0 and $game_variables[31][2] == 1 or 3 or 5 or 7 or 8) or ($game_variables[31][1] == 1 and $game_variables[31][2] == 0 or 2)
if $game_variables[31][3] == 3 and $game_variables[31][4] == 2
$game_variables[31][3] = 0
$game_variables[31][4] = 1
$game_variables[31][2] += 1
end
end
#此定义了小月30天月份进一位
if ($game_variables[31][1] == 0 and $game_variables[31][2] == 4 or 6 or 9) or ($game_variables[31][1] == 1 and $game_variables[31][2] == 1)
if $game_variables[31][3] == 3 and $game_variables[31][4] == 1
$game_variables[31][3] = 0
$game_variables[31][4] = 1
$game_variables[31][2] += 1
end
end
#此定义了2月28天月份进一位(2014年到2016年没有闰年)
if $game_variables[31][1] == 0 and $game_variables[31][2] == 2
if $game_variables[31][3] == 2 and $game_variables[31][4] == 9
$game_variables[31][3] = 0
$game_variables[31][4] = 1
$game_variables[31][2] += 1
end
end