Project1

标题: 怎么做出可以在角色攻击(普通或技能)时判定不攻击? [打印本页]

作者: 风已过    时间: 2011-3-18 21:14
提示: 作者被禁止或删除 内容自动屏蔽
作者: Wind2010    时间: 2011-3-18 21:59
回复 风已过 的帖子

奥义的话是指特定的技能么?
如果可以的话最好可以说明发动奥义的时点
作者: 风已过    时间: 2011-3-19 11:37
提示: 作者被禁止或删除 内容自动屏蔽
作者: Wind2010    时间: 2011-3-19 12:05
  1. $louse_action = []
  2. #==============================================================================
  3. # 自定义区
  4. # 格式:
  5. # $louse_action.push([角色ID,出现技能几率,出现技能])
  6. #==============================================================================
  7. $louse_action.push([1,100,57])
  8. #==============================================================================
  9. # 脚本内容
  10. #==============================================================================
  11. class Scene_Battle
  12.   alias shizi_start_phase4 start_phase4
  13.   def start_phase4
  14.     shizi_start_phase4
  15.     for shizi_action in $louse_action
  16.       for shizi_actor_id in 0...$game_party.actors.size
  17.         shizi_actor = $game_party.actors[shizi_actor_id]
  18.         if shizi_actor.current_action.kind == 0 and shizi_actor.id == shizi_action[0]
  19.           if rand(100) < shizi_action[1]
  20.             shizi_actor.current_action.kind = 1
  21.             shizi_actor.current_action.skill_id = shizi_action[2]
  22.           end
  23.         end
  24.       end
  25.     end
  26.   end
  27. end
复制代码





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