| 
 
| 赞 | 9 |  
| VIP | 0 |  
| 好人卡 | 11 |  
| 积分 | 29 |  
| 经验 | 29235 |  
| 最后登录 | 2023-12-28 |  
| 在线时间 | 713 小时 |  
 Lv3.寻梦者 
	梦石0 星屑2920 在线时间713 小时注册时间2010-7-25帖子813 
 | 
| 本帖最后由 jianyulei 于 2015-4-15 23:21 编辑 
 这个脚本是论坛里哪个大神写的,我现在正在用,说实话,我忘记是哪个大神了。复制代码
class Game_Battler
  def remove_state(state_id)
    if state?(state_id)
      revive if state_id == death_state_id
      erase_state(state_id)
      refresh
      # 上面部分不要动
      # 如果状态30消失,那么有80%的概率附加状态31
      add_state(31) if state_id == 30 && rand < 0.8
      add_state(508) if state_id == 102 #可以这样排列具备多个状态
      # 下面部分不要动
      @result.removed_states.push(state_id).uniq!
    end
  end
end
说句题外话,目前我正在找 “状态非正常结束时附加状态” 以及 “状态正常以及非正常结束时发动技能的脚本”,有谁知道的话告诉我一下吧,谢谢。
 | 
 |