State Which Adds A Percent of One Parameter to Another Parameter

Hi, I need help with figuring out how to implement this in the script of a state.
(I am using solely Yanfly plugins, so I'm assuming it would only need Yanfly Buffs and States Core to create this state.)

For example: a state called "Velocity" increases the actor's Attack Parameter by 50% of their Agility Parameter.
You'll also want the param control plugin
http://www.yanfly.moe/wiki/Base_Parameter_Control_(YEP)

Something like this?
Code:
battler.addAtk( battler.Agi *0.5)
Oh yeah. I didn't realize this already existed. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/state-which-adds-a-percent-of-one-parameter-to-another-parameter.112460/