class Scene_Battle < Scene_Base
def start
******
$game_temp.in_battle = true
#此行后开始加入
for member in $game_party.members
if member.skill_learn?($data_skills[B]) #如果玩家角色习得B技能
$game_party.members[0].add_state(C) #附加C状态给该角色
end
end
end
end
当然这样弄起来还是比较麻烦的,
还有个更省事的办法:
class Game_Actor < Game_Battler
def jnfyzt
n = [[100,100],[101,103]]
return n
end
end
class Scene_Battle < Scene_Base
def start
******
$game_temp.in_battle = true
#此行后开始加入
for member in $game_party.members
for i in member.jnfyzt
if member.skill_learn?(i[0])
member.add_state(i[1])
end
end
end
#结束
end
end
然后你要做的就是在def jnfyzt这里设置即可。前面是技能编号,后面是状态编号。