Possible to make a normal attack determine damage via game data when a certain weapon is used?

For example, if I wanted to make something akin to Final Fantasy V's Chicken Knife, where the damage dealt to the enemy with a normal attack is determined by how many times you have run from battle - more escapes = more damage.

I know I can call stuff like this with a Skill and the damage formula box, but what I want is for a weapon to cause the normal attack to call such a formula. Is it possible to do this?
There are plenty of scripts that allows you to call a skill different fron the default one for the weapon basic attacks.

Here is one: http://victorscripts.wordpress.com/rpg-maker-vx-ace/gameplay-scripts/custom-basic-actions
There are scripts that let you change your basic attack depending on things like equipped weapon. I'll point to Yanfly's >here<.

Simply make a skill with the desired damage formula, and tag your weapon so that it'll use that skill instead of the regular attack.
There are scripts that let you change your basic attack depending on things like equipped weapon. I'll point to Yanfly's >here<.

Simply make a skill with the desired damage formula, and tag your weapon so that it'll use that skill instead of the regular attack.
Aha! That's perfect! Now I just need to figure out the formula for what I want to do...
May I suggest a hard-coded variable increase each time Escape Processing happens?

And then have the damage formula use that in it.

Original thread: https://forums.rpgmakerweb.com/threads/possible-to-make-a-normal-attack-determine-damage-via-game-data-when-a-certain-weapon-is-used.23082/