(ACE) Yanfly - Extra Param Formulas

http://yanflychannel.wordpress.com/rmvxa/core-scripts/extra-param-formulas/

Hello all I still new to ruby and I need help with some scripting modifications. How would I go about making custom params unique to an actor or a class? I tried an If actor ID then param formula but I couldn't get it to work. Any help would be greatly appreciated.
So if for example I wanted to do a custom formula unique to a specific actor how would I go about doing it?

      :cri_n_value => "luk",
      :cri_formula => "(n + base_cri) * 0.01",
 
Anyone help?

I thought it might go something like this but I cant figure it out.

    if @actor_id == 12
      :cri_n_value => "luk + (0.35 * mp)",
      else
      :cri_n_value => "luk",
    end

Original thread: https://forums.rpgmakerweb.com/threads/ace-yanfly-extra-param-formulas.16107/