Project1

标题: 请问如何让敌人在法力不够时不使用相应的技能 [打印本页]

作者: 祭典之弓    时间: 2008-12-21 13:24
提示: 作者被禁止或删除 内容自动屏蔽
作者: 天圣的马甲    时间: 2008-12-21 15:24
Scene_Battle 4里面找到特技相关那段做如此修改即可。
  #--------------------------------------------------------------------------
  # ● 生成特技行动结果
  #--------------------------------------------------------------------------
  def make_skill_action_result
    # 获取特技
    @skill = $data_skills[@active_battler.current_action.skill_id]
    # 如果不是强制行动
    unless @active_battler.current_action.forcing
      # 因为 SP 耗尽而无法使用的情况下
      unless @active_battler.skill_can_use?(@skill.id)
        @active_battler.current_action.basic = 0
        make_basic_action_result
      #  # 清除强制行动对像的战斗者
      #  $game_temp.forcing_battler = nil
        # 移至步骤 1
       # @phase4_step = 1

        return
      end
    end

作者: 鲔鱼吐司    时间: 2008-12-21 23:43
提示: 作者被禁止或删除 内容自动屏蔽
作者: 天圣的马甲    时间: 2008-12-21 23:58
默认工程测试无误。
作者: 祭典之弓    时间: 2008-12-22 02:40
提示: 作者被禁止或删除 内容自动屏蔽
作者: 祭典之弓    时间: 2008-12-22 03:12
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1