#使用方法:直接放进脚本编辑器,然后在下面自己设置。
class Game_Battler
STATE_UPGRADE = {
50 => [51, 52, 53], #51、52、53号状态为三个等级。通过添加50号状态来升级
60 => [61, 62], #想添加更多可以自己尝试修改。
}
alias as_20141212 add_state
def add_state(id)
levels = STATE_UPGRADE[id]
return as_20141212(id) unless levels
index = levels.index { |state| state?(state) } # 当前等级
return as_20141212(id) unless index
return if index == levels.size - 1 # 已经达到最高等级
remove_state levels[index]
as_20141212 levels[index + 1]
end
end
 
1.42 MB, 下载次数: 82
进去让拉尔夫用测试技能跟史莱姆战斗就看的出状态不会发生变动
| 欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |