Attack value without weapon attack power to variable

Hi Im in need of script call to set variable only with attack of character: but without the weapon power is there a way to it ?
 

I was thinking about something like that...
$game_variables[n] = $game_actors[n].atk - $game_actors[1].equips[0].id ??
Move this over to VX Ace Support.

I think the formula would be $game_variables[n] = a.atk - (a.equips[0].params[2] rescue 0)
Thanks gonna check this out at morning.

Original thread: https://forums.rpgmakerweb.com/threads/attack-value-without-weapon-attack-power-to-variable.54605/