Gun Mage (Spell guns)?

I'm looking to get some help with how to approach making my healer use guns as a primary attack. If my healer has no one to heal or cure, i would like for him to use a decent weapon instead of hitting for 2 damage with a stick. How would i go about connecting my healing/magic stats to make the gun attacks better? Anyone have any ideas on how to accomplish this?
You can make a Magic Gun which has its damage formula say something like this:

a.mat * 4 + 50

a.mat means "Magical ATtack value of the user."  A strong healer has a very high magical attack value. It's just used for healing spells and/or skills.

Or, if the gun is used by some type of Fighter as well, you could do this:

(a.mat - a.atk) * 2 + a.atk * 2 + 50
you'd need a way to change the damage formula for attacks made with the gun, though...
I like to use Yanfly's Weapon Attack Replace for this.
you don't need a script, just follow whitesphere's advice. and see if it helps.
whitesphere's advice was to change the weapon's damage formula.
There is no way to do this through the weapon itself without a script. Skills, fine, but not weapons.
Ah right, my mistake, i forget that the first skill is hard coded for the universal attack. you would need a script to have multiple basic attack types.

Original thread: https://forums.rpgmakerweb.com/threads/gun-mage-spell-guns.29406/