MV Yanfly Question [Difficulty Slider]

First, let me tell you what I'm working on; I'm trying to restrict the player from being able to manually adjust the difficulty of the game (by hiding the slider option), but I want to manually set the difficulty of the game, based on switches that I have setup (to run at certain times).

After looking through Yanfly's Difficulty Slider script, I pulled the following line thinking I could use it as a "script call", but it doesn't have the effect I'm looking for. Does anyone have a suggestion?

Code:
ConfigManager.difficultySlider = 200

**EDIT**
NVM... I accidentally had a freakin' extra symbol in the line that was screwing it up (sigh; it's the minor things, right?). It works as I expected it to.

To elaborate on this, should someone want to replicate what I've done, here's the breakdown:
If you want to manually set what your game's difficulty is (e.g. New Game Plus or a different difficulty for various maps you have), using Yanfly's Difficulty Slider, create a switch (or whatever trigger you want), & add the line above to the switch / trigger as a "Script" (e.g. script call) ~ show the difficulty slider in your play test to confirm it works, & hide it from the players once you've confirmed that it works as intended.

Whatever you set the "=" to will set the difficulty percentage globally (so be sure to change the difficulty back, once your player leaves the area):
So....
ConfigManager.difficultySlider = 200 (or 200% difficulty)
ConfigManager.difficultySlider = 75 (or 75% difficulty)
ConfigManager.difficultySlider = 522 (or 522% difficulty)
& so on.

Thanks & happy gaming / designing!

Admins / Mods, you may lock this thread now.
Spoiler: notes
Note that the ConfigManager is shared between saves.

Also, if you want to make sure the change is saved to file (rather than resetting at the end of the session), you should call ConfigManager.save() afterwards. By default this only happens when leaving the options screen.

Since YEP Difficulty Slider only seems to affect enemy levels from YEP Enemy Levels, I feel like a better solution may have been to make use of one of the level adjustment features from that plugin, e.g. $gameTroop.gainLevel(5); in a Turn 0 troop event for that area's troops.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-question-difficulty-slider.146083/