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?
**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.
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.