Modifying Augment Effects by Level

I have the Yanfly attachable augments plugin downloaded, and I'd like to tie the augment effects to the level of an actor. Is there a way to modify the augment effects so that the stat changes are multiplied by the level of an actor? Right now I can only implement simple stat changes, such as +5 HP, or +5% HP.

Ex. I want the augment to be tied to the level of actor 2. In my mind the formula would look something like:
<Augment Attach: type>
HP: +2*$gameActors.actor(2).level
</Augment Attach: type>

Or more ideally, the actor level would replace the constant (in this case 5) as a percentage change. For example this would make the stat change +5% when the actor is level 5, and +20% when the actor is level 20.

I'm new to RPG Maker and have essentially no coding knowledge, so I'm just trying to piece something together and I can't get it to work.
ALSO: The actor whose level is being checked would not be in the party while the augment is equipped. Don't know if that affects anything, but I can provide more context for why I want the augment to work this way if it would be helpful.
You want to use the eval augment commands.
Yanfly non-coding/lunatic mode stuff is not dynamic at all, it reads in everying as straight as possible, ie solid numbers or text which every is required but no coding/eval stuff.
So the code would be like this:
<Augment Attach Eval: type>
user._ParamX = (2*$gameActors.actor(2).level);
item.params[0] += user._ParamX;
</Augment Attach Eval: type>
Where 0 represents max Hp.
The rest of the other basic parameters:
1 - max mp
2 - atk
3 - def
4 - mat
5 - mdf
6 - agi
7 - luk

If you want it to remove it ie have this change go away/disapper when not equipped then:
<Augment Detach Eval: type>
user._ParamX = user._ParamX || 0;
item.params[0] -= user._ParamX;
</Augment Detach Eval: type>


Make sure the Attach Eval is above the Detach Eval. Also if you want it where the level is based of the user's level ie when Actor 1 has this equipped and is level 10 where as Actor 2 has it equipped and is level 3. Then replace the "$gameActors.actor(2)" in the Attach code with "user".

Also if you want to use this in code in multiple Augments. You need to change the user._ParamX name. You can do that easily by changing the X to an A or a B or a C ie "user._ParamA" or "user._ParamB" or etc.
That did the trick. Didn't realize I needed to use the separate section for custom effects. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/modifying-augment-effects-by-level.96154/