Project1
标题:
关于MOG计时器与多元化计时器合并问题
[打印本页]
作者:
mariofans
时间:
2014-6-16 14:10
标题:
关于MOG计时器与多元化计时器合并问题
让两个脚本互不干扰,也就是
让MOG计时器具有正数和变速功能(时间条从左往右加)
多元化:
#==============================================================================
# ■ 事件計時器多元化控制 Diversiform Timer Control
#-----------------------------------------------------------------------------
# 作者:TERENCE (龙皇)
# 本類別的實例請參考 $game_system
#==============================================================================
class Game_System
#--------------------------------------------------------------------------
# ● 自定义设定
#--------------------------------------------------------------------------
Timer_Pause = 127 # 計時器暫停的開關編號
Timer_CountUp = 128 # 計時器 "啟動" 正數 的開關編號
Midway_CountUp = 129 # 計時器 "中途" 改變計數方式 的開關編號
Count_speed = 129 # 計時器計算速度的變量編號
#--------------------------------------------------------------------------
# ● 更新畫面
#--------------------------------------------------------------------------
def update
unless $game_switches[Timer_CountUp] #若要正數,使遊戲的10號開關為ON
# 計時器減 1
if @timer_working and @timer > 0*40
if $game_switches[Timer_Pause] # 計時器是否暫停
@timer -= 0
else
unless $game_switches[Midway_CountUp]
if $game_variables[Count_speed]<=0
@timer -= 1
else
@timer -= 1*$game_variables[Count_speed]
end
else
if @timer_working and @timer < 5999*40
if $game_variables[Count_speed]<=0
@timer += 1
else
@timer += 1*$game_variables[Count_speed]
end
end
end
end
end
else
# 計時器加 1
if @timer_working and @timer < 5999*40
if $game_switches[Timer_Pause] # 計時器是否暫停
@timer += 0
else
unless $game_switches[Midway_CountUp]
if $game_variables[Count_speed]<=0
@timer += 1
else
@timer += 1*$game_variables[Count_speed]
end
else
if @timer_working and @timer > 0*40
if $game_variables[Count_speed]<=0
@timer -= 1
else
@timer -= 1*$game_variables[Count_speed]
end
end
end
end
end
end
end
end
复制代码
MOG:
XP_TIME_METER.rar
2014-6-16 14:10 上传
点击文件名下载附件
198.01 KB, 下载次数: 37
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1