Is there a way to set a weapon's stat to a variable?

I want to set a weapon's attack to a variable - 30. Is that even possible? Thanks in advance.
If you have yanfly's equip core, it is with the custom parameter tags. It has an example on the page

Edit: didnt notice mz. Visustella's equivalent has a tag with the same function

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-set-a-weapons-stat-to-a-variable.174159/