How is a Magical Attack hit rate determined?

I think I understand physical attacks (hit rate to see if hit, if so, check evade).

But a magical attack "hit rate formula" isn't clear to me after scrounging the manual, the default scripts and google. I see this in Game_Battler, but not sure on the hit rate:

Spoiler
  #--------------------------------------------------------------------------

  # * Calculate Hit Rate of Skill/Item

  #--------------------------------------------------------------------------

  def item_hit(user, item)

    rate = item.success_rate * 0.01     # Get success rate

    rate *= user.hit if item.physical?  # Physical attack: Multiply hit rate

    return rate                         # Return calculated hit rate

  end

So, how is the item.success_rate determined for a magical attack? The tooltip says: "Determines hits based on magic evasion rate"... so... is Magic autohit and it's up to the defender's MEV to avoid the skill?
Magic I think is based solely on the success rate (this can be set via the database for each skill so IT'S NOT AUTOHIT), then during evasion calculations, the MEV is applied...


for physical,


it uses the success rate * the hitrate, then during evasion calculation it applies EVA
Moving to Script Support (you're not actually asking for a script to be written here)
duh. it's right there - success rate. 

oh gawd. how embarrassing. please close this topic... thanks adiktuzmiko!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-is-a-magical-attack-hit-rate-determined.20672/