Project1
标题:
限時選項腳本的修改( [VIPArcher] 【限时显示选项】 )
[打印本页]
作者:
whiltshire
时间:
2015-11-2 22:56
标题:
限時選項腳本的修改( [VIPArcher] 【限时显示选项】 )
[pre lang="ruby" line="1"]#==============================================================================
# ■ 限时显示选项
# By :VIPArcher
# -- 本脚本来自
https://rpg.blue
使用或转载请保留以上信息。
# 说明:
# 在开始选择前开启计时器,如果计时器归0时自动调用“取消”的方法。要保证取消有效。
#==============================================================================
$VIPArcherScript ||= {};$VIPArcherScript[:time_choiceList] = 20141027
class Window_ChoiceList < Window_Command
#--------------------------------------------------------------------------
# ● 调用“取消”的处理方法
#--------------------------------------------------------------------------
alias timer_call_cancel_handler call_cancel_handler
def call_cancel_handler
timer_call_cancel_handler
deactivate
$game_timer.stop
end
#--------------------------------------------------------------------------
# ● 更新画面
#--------------------------------------------------------------------------
def update
super
call_cancel_handler if cancel_enabled? &&
$game_timer.sec == 0 && $game_timer.working?
end
end[/pre]
這是我使用的腳本。
這個腳本是時間到,選項會自動被取消,玩家也可以手動取消。
想要改成,「玩家
不可
手動取消」。一直改不出來,所以上來請教前輩們。
作者:
喵呜喵5
时间:
2015-11-2 23:09
未测试
扔到这个脚本后面
class Window_ChoiceList
def cancel_enabled?; false; end
def update
super
call_cancel_handler if $game_timer.sec == 0 && $game_timer.working?
end
end
复制代码
作者:
whiltshire
时间:
2015-11-3 07:10
喵呜喵5 发表于 2015-11-2 23:09
未测试
扔到这个脚本后面
使用後會跳出。
(, 下载次数: 49)
上传
点击文件名下载附件
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X5.0