YEP <Custom Show Eval> Help.

Hey all, happy hump day!

Ran into an issue when trying to use YEP custom show eval. I am attempting to make a skill not available if below a certain variable.

<Custom Show Eval>

if ($gameVariable.value(222) > 1) {

visible = true;

} else {

visible = false;

}

</Custom Show Eval>


Tried in a vanilla build, maybe i'm doing it wrong.

Thanks in advance.
$gameVariables.value(222)
Missed the 's' 🙂
That should work now; let me know if you have any more problems with it.
$gameVariables.value(222)
Missed the 's' 🙂
That should work now; let me know if you have any more problems with it.
$gameVariables.value(222)
Missed the 's' 🙂
That should work now; let me know if you have any more problems with it.

Damn, overlooked such a small thing. While I have your attention. Could you help with one more thing?
I am trying to create a snippet to add value to variable 222 by assigning the value of 221.

<Custom Execution>

$gameVariables.setValue(222) = $gameVariables.value(221);

</Custom Execution>
The code to set a variable is
$ gameVariables.setValue (x, y);
Where x is the variable you want to change and y is the amount you want it to change to. In this case:
$ gameVariables.setValue (222, $ gameVariables.value (221));
Pardon any formatting issues; I'm on mobile
The code to set a variable is
$ gameVariables.setValue (x, y);
Where x is the variable you want to change and y is the amount you want it to change to. In this case:
$ gameVariables.setValue (222, $ gameVariables.value (221));
Pardon any formatting issues; I'm on mobile

Worked, thanks so much for the help. Keep an eye out for when I launch my game. You just earned yourself a free copy 🙂

Original thread: https://forums.rpgmakerweb.com/threads/yep-custom-show-eval-help.122694/