本帖最后由 taroxd 于 2015-1-8 17:51 编辑
三途亚梦 发表于 2015-1-8 17:02
少年……自己顶贴不是这么顶的…… 另外,我先告诉你一声这种效果不好做,没有一定的脚本基础的话很容易出 ...
写了一个思路性质的东西,麻烦亚梦或者 @VIPArcher 帮忙实现一下可以吗?(没环境真是超不爽)
class Window_? FORCE_SELECT = -> e { e.state? 5 } alias_method :include_20150108, :include? def include?(enemy) include_20150108(enemy) && (FORCE_SELECT.call(enemy) || $game_troop.members.none?(&FORCE_SELECT)) end end
class Window_?
FORCE_SELECT = -> e { e.state? 5 }
alias_method :include_20150108, :include?
def include?(enemy)
include_20150108(enemy) &&
(FORCE_SELECT.call(enemy) ||
$game_troop.members.none?(&FORCE_SELECT))
end
end
|