Magic Hit Rate?

● ARCHIVED · READ-ONLY
Started by DGNNY 3 posts View original ↗
  1. Any way to give a party member a magic hit rate? I have one's hit rate set to 0 and he nails magic attacks every time.
    I'm looking for a way to make it so that I can give him a hit rate for magic attacks without changing the magic attack's success %.
  2. Code:
    class Game_Battler
      def item_hit(user, item)
        rate = item.success_rate * 0.01     
        rate *= user.hit if item.physical? || item.magical?
        return rate                         
      end
    end
    The code above will make all magical attack have hit rate.
  3. TheoAllen said:
    Code:
    class Game_Battler
      def item_hit(user, item)
        rate = item.success_rate * 0.01    
        rate *= user.hit if item.physical? || item.magical?
        return rate                        
      end
    end
    The code above will make all magical attack have hit rate.
    thank you!