Can i make an event that would check certain game options?

For example, check the current volume options of the game, and make an IF-->THEN event applied to volume level settings?
Yes, e.g. Conditional Branch -> Script: ConfigManager.bgmVolume > 0 (is BGM volume more than 0?).

Default config keys:
  • alwaysDash (true or false);
  • commandRemember (true or false);
  • bgmVolume (0~100);
  • bgsVolume (0~100);
  • meVolume (0~100);
  • seVolume (0~100).
Yes, e.g. Conditional Branch -> Script: ConfigManager.bgmVolume > 0 (is BGM volume more than 0?).

Default config keys:
  • alwaysDash (true or false);
  • commandRemember (true or false);
  • bgmVolume (0~100);
  • bgsVolume (0~100);
  • meVolume (0~100);
  • seVolume (0~100).
Thanks, it works! But how do i set opposite check, that there is 0 bgm level?

I tried ConfigManager.bgmVolume = 0 but instead of checking the volume level for some reason it changes it to zero.
I tried ConfigManager.bgmVolume = 0 but instead of checking the volume level for some reason it changes it to zero.
When you're using JS, "=" sets the the value of thing on the left to the value if the thing on the right. If you want to check if theyre equal you have to use "=="

Alternatively, if your first check was if its greater than 0 and its value is always 0-100, your else would catch that
When you're using JS, "=" sets the the value of thing on the left to the value if the thing on the right. If you want to check if theyre equal you have to use "=="

Alternatively, if your first check was if its greater than 0 and its value is always 0-100, your else would catch that
Unfortunatly, i don't know what you mean by last sentence. Perhaps because i am not a coder and have little understanding.
But the == worked, and the problem i had is solved! Thank you.
Unfortunatly, i don't know what you mean by last sentence. Perhaps because i am not a coder and have little understanding.
It's not coding.

1707936794129.png
Ah, this! Now i understand. Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/can-i-make-an-event-that-would-check-certain-game-options.165748/