| 赞 | 58  | 
 
| VIP | 37 | 
 
| 好人卡 | 59 | 
 
| 积分 | 12 | 
 
| 经验 | 66255 | 
 
| 最后登录 | 2023-5-29 | 
 
| 在线时间 | 1017 小时 | 
 
 
 
 
 
Lv3.寻梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 1232 
 
        - 在线时间
 - 1017 小时
 
        - 注册时间
 - 2011-4-30
 
        - 帖子
 - 1516
 
 
 
 | 
	
 本帖最后由 汪汪 于 2014-11-2 10:28 编辑  
 
默认的强制行动是这个,大概就是给@parameters值进行处理,修改的话大概就是修改这几个值-   def command_339
 
 -     # 忽视是否在战斗中
 
 -     unless $game_temp.in_battle
 
 -       return true
 
 -     end
 
 -     # 忽视回合数为 0
 
 -     if $game_temp.battle_turn == 0
 
 -       return true
 
 -     end
 
 -     # 处理循环 (为了方便、不需要存在复数)
 
 -     iterate_battler(@parameters[0], @parameters[1]) do |battler|
 
 -       # 战斗者存在的情况下
 
 -       if battler.exist?
 
 -         # 设置行动
 
 -         battler.current_action.kind = @parameters[2]
 
 -         if battler.current_action.kind == 0
 
 -           battler.current_action.basic = @parameters[3]
 
 -         else
 
 -           battler.current_action.skill_id = @parameters[3]
 
 -         end
 
 -         # 设置行动对像
 
 -         if @parameters[4] == -2
 
 -           if battler.is_a?(Game_Enemy)
 
 -             battler.current_action.decide_last_target_for_enemy
 
 -           else
 
 -             battler.current_action.decide_last_target_for_actor
 
 -           end
 
 -         elsif @parameters[4] == -1
 
 -           if battler.is_a?(Game_Enemy)
 
 -             battler.current_action.decide_random_target_for_enemy
 
 -           else
 
 -             battler.current_action.decide_random_target_for_actor
 
 -           end
 
 -         elsif @parameters[4] >= 0
 
 -           battler.current_action.target_index = @parameters[4]
 
 -         end
 
 -         # 设置强制标志
 
 -         battler.current_action.forcing = true
 
 -         # 行动有效并且是 [立即执行] 的情况下
 
 -         if battler.current_action.valid? and @parameters[5] == 1
 
 -           # 设置强制对像的战斗者
 
 -           $game_temp.forcing_battler = battler
 
 -           # 推进索引
 
 -           @index += 1
 
 -           # 结束
 
 -           return false
 
 -         end
 
 -       end
 
 -     end
 
 -     # 继续
 
 -     return true
 
 -   end
 
  复制代码 因为不清楚你的五人制是哪一种,所以只是做了一个对原来的简单修改 
额……我也不太清楚这几个值到底是什么,大概 i1 应该是处理 第几个 角色强制行动的,比如 xingdong(1,2,1,28,-1,0) 就是让第三个角色使用黑暗。 
在原来的 强制行动里 加上 p @parameters 试试看这几个值是什么意思吧。-   
 
  
- class Interpreter
 
 -  def xingdong(i0=0,i1=0,i2=0,i3=0,i4=0,i5=0,i6=0)
 
 -       # 忽视是否在战斗中
 
 -     unless $game_temp.in_battle
 
 -       return true
 
 -     end
 
 -     # 忽视回合数为 0
 
 -     if $game_temp.battle_turn == 0
 
 -       return true
 
 -     end
 
 -     # 处理循环 (为了方便、不需要存在复数)
 
 -     iterate_battler(i0, i1) do |battler|
 
 -       # 战斗者存在的情况下
 
 -       if battler.exist?
 
 -         # 设置行动
 
 -         battler.current_action.kind = i2
 
 -         if battler.current_action.kind == 0
 
 -           battler.current_action.basic = i3
 
 -         else
 
 -           battler.current_action.skill_id = i3
 
 -         end
 
 -         # 设置行动对像
 
 -         if i4 == -2
 
 -           if battler.is_a?(Game_Enemy)
 
 -             battler.current_action.decide_last_target_for_enemy
 
 -           else
 
 -             battler.current_action.decide_last_target_for_actor
 
 -           end
 
 -         elsif i4 == -1
 
 -           if battler.is_a?(Game_Enemy)
 
 -             battler.current_action.decide_random_target_for_enemy
 
 -           else
 
 -             battler.current_action.decide_random_target_for_actor
 
 -           end
 
 -         elsif i4 >= 0
 
 -           battler.current_action.target_index = i4
 
 -         end
 
 -         # 设置强制标志
 
 -         battler.current_action.forcing = true
 
 -         # 行动有效并且是 [立即执行] 的情况下
 
 -         if battler.current_action.valid? and i5 == 1
 
 -           # 设置强制对像的战斗者
 
 -           $game_temp.forcing_battler = battler
 
 -           # 推进索引
 
 -           @index += 1
 
 -           # 结束
 
 -           return false
 
 -         end
 
 -       end
 
 -     end
 
 -     # 继续
 
 -     return true
 
 -   end
 
 - end
 
  
  复制代码 额,调用的话直接在事件的脚本里输入  xingdong(1,2,1,28,-1,0)  这样的代码 
你的五人制大概应该是用  xingdong(1,4,1,28,-1,0)  可以让第五人强制行动吧。 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |