The comments won't take a variable but you can bypass using a comment for ct cost and put whatever cost you want in the tool's move route
Code:
this._tool.ctCost = $gameVariables.value(1); this.payCTCost();
"This tool's CT cost is Control Variable 1. Then pay the CT cost."
Otherwise you'd have to edit the plugin code. This method lets you do it from the engine without editing the plugin.
View attachment 336246
If you want a different CT cost if the user is affected by a state use
Code:
this._tool.ctCost = 50; if(this.user().battler().isStateAffected(28)){this._tool.ctCost = 25;} this.payCTCost();
"This tool's CT (base) cost is 50. If the user is affected by state 28, overwrite the CT cost so it's 25. Then pay the CT cost"
I don't ever get that bug so I can't tell you. When exactly does it happen and could you press F8 or F12 and show the console log?