이 스크립트를 mv에서 사용하고 싶습니다.

by zero? posted Oct 27, 2016
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

class Game_Actor < Game_Battler
  @@custom_atk_anim_opt =
  [
    [         21,            4,        8,   ],
    [21, 0, 2],
    [],
    [],
    [],
  ]

  def custom_atk_anim_for_weapon(index)
    @@custom_atk_anim_opt.each do |opts|
      next if opts.empty?
      if self.state?(opts[0]) && weapons[index].wtype_id == opts[1]
        return opts[2]
      end
    end
  end
 
  def custom_atk_anim_for_barehand
    @@custom_atk_anim_opt.each do |opts|
      next if opts.empty?
      if self.state?(opts[0]) && opts[1] == 0
        return opts[2]
      end
    end
  end
 
  def not_equipped?
    weapons.size == 0
  end
 
  alias atk_animation_id1_9qxb6_001   atk_animation_id1
  def atk_animation_id1
    if weapons[0] && custom_atk_anim_for_weapon(0).is_a?(Integer)
      return custom_atk_anim_for_weapon(0)
    end
    if not_equipped? && custom_atk_anim_for_barehand.is_a?(Integer)
      return custom_atk_anim_for_barehand
    end
    atk_animation_id1_9qxb6_001
  end
 
  alias atk_animation_id2_9qxb6_002 atk_animation_id2
  def atk_animation_id2
    if weapons[1] && custom_atk_anim_for_weapon(1).is_a?(Integer)
      return custom_atk_anim_for_weapon(1)
    end
    atk_animation_id2_9qxb6_002
  end
end

 

어느 분이 써주신 ace용 스크립트인데 이걸 mv용으로 바꾸고 싶습니다. 바꿀 수 있는 방법 좀 가르켜 주세요.