@GameFire
I'm not sure that's the right link, because you linked to my plugin but those aren't my plugin commands
🙂
First, make sure that the plugin is actually capturing the input into a variable. Make a simple event where you capture the input and then press F9 to open the debug menu and check that it displays as expected. Or open the console with F8 and type "$gameVariables.value(x)" to see the value of the variable with ID#x.
Second, the problem likely has to do with var scoping, which you can
read more about here. Given this example:
Code:
◆Script:var str = $gameVariables.value(101);
◆If:Script:str.includes(' ');
RPG Maker MV executes each of these commands in a different function. What this means is that the Condition Branch (the "if" statement) doesn't have access to the "str" variable because it was defined in a different scope. This actually causes a Javascript error, but MV hides that error from you. It should work if you do:
Code:
◆If:Script:$gameVariables.value(101).includes(' ')
Same thing for your "slice" variable later on.
$gameVariables is scoped globally, which is why it can be accessed from anywhere.