Project1
标题:
某些角色不参与战斗
[打印本页]
作者:
3106345123
时间:
2014-7-3 08:19
标题:
某些角色不参与战斗
本帖最后由 3106345123 于 2014-7-3 08:26 编辑
使用方法见注释
发现地址
by@柳柳
#======================================================
# 某些角色不参与战斗,柳柳@66rpg.com
#======================================================
class Scene_Battle
#====================================================
# 不参与战斗的编号写在这里
#====================================================
I_AM_NPC = [1, 2, 3]
# 不参与战斗的角色,进入战斗的时候临时轰走
alias o_start start unless $@
def start
@no_fight = []
for aid in I_AM_NPC
if $game_party.members.include?($game_actors[aid])
@no_fight.push(aid)
$game_party.remove_actor(aid)
end
end
o_start
end
# 被轰走的角色,结束战斗的时候叫回来
alias o_terminate terminate unless $@
def terminate
o_terminate
for aid in @no_fight
$game_party.add_actor(aid)
end
end
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1