"Pay to Play" skill (Bravely Default)

Hi again everyone,

I need a new help this time to recreate the skill "pay to play" from Bravely Default (os something similar to this).

The original description reads:
Pay to Play (battle ability) -- Spend your level times 50 pg to raise the target's Critical Rate by 300% for four turns. You can do this repeatedly up to a cap of 1,000%.

To recreate this I used "Skills and States" from VisuStella:
I created a state with the Ex.Parametres Critic:+200%.
1601057740466.png

I think that Stacktable make it being able to "stack" 2 times, but I'm not sure if this is valid or how to configure it to reach the +1000% [5 time used consecutively].

For the skill I found two options (but none works).

The first option was trying to use the Gold Cost in the notes.
Code:
<Gold Cost: $gameActors.actor(2).Level*50>

I think the "Gold Cost" only reads a quantity, so I thought using the JS Gold Cost but I don't get how it works. I tried using the MV version of this skill with the Yanfly scripts, but it doesn't work:
Code:
<JS Gold Cost>
var variableId = 1;
var value = (user.level*50);
cost = $gameVariables.setValue(variableId, value);
</JS Gold Cost>

Could you help me with the JS Gold Cost and the "Staking" bonus?
Solved the second part (I thought it would be harder):
Code:
<JS Gold Cost>
cost = $gameActors.actor(2).level*50
</JS Gold Cost>

But I still don't know how to make it "stackable" (I don't know if this is the term to add the "same" state several times multiplying its effect).

Original thread: https://forums.rpgmakerweb.com/threads/pay-to-play-skill-bravely-default.127881/