No wonder it doesn't work.
$gameVariables.setValue is a function that sets a variable x to value y. It has no return command, so saying _min = $gameVariables.setValue (x,y) will throw you nothing at all.
You could do $gameVariables.setValue (x,y) and on a new line _min = $gameVariables.value (x). But assigning setValue a non-returning function to a variable is useless.
Or you can just do
_min = 0.8
Wouldn't be a bad idea to learn some javascript 😛
Have you thought about the issues with this?
If you change the parameters of a plugin via a script call, that doesn't mean those parameters are going to be used - most plugins read the parameters when the game is loaded and not again. So you'd be modifying them after they've been used.
If the plugin reads the parameters into a variable and you change the variable, save and close the game, then open the game again, they're going to be back to their original values, as the variables don't get saved.
If you change the variables then start a new game, or load a saved game, those variables will remain at what you changed them to - it would be difficult to leave them as the original values for all games up to a certain point, and then change them to new values after that point, so any one game will have them set correctly based on whether that point has been reached or not.
There are no issues if you do it through changing the variable only. These parameters are used in a function whenever it is called, so you can feel the change.
Of course if you changed the file's params saved in plugins.js, that would mean issues.
EDIT: Ah yes, that is true, if you reload the game, you have to remake the changes. But if you make a change right in front of what you want to call, then no issues.
Oh! I forgot to mention about how it didn't work. When I used _.min = xxx via script call, I just got the message that said "_ is not defined"
And that applied to the new method you suggested as well.