I'm looking to make a mechanic using Yanfly's Skill Core but I'm having problems.
When using an attack the Star variable should remain at 0 (The number that appears next to the Gold in the video is the star variable) but it remains at 3. I attach the code and a video where my problem appears
Any solution?
CODE:
<Custom Requirement>
if ($gameVariables.value(20) > 2)
{
value = true;
} else {
value = false;
}
</Custom Requirement>
<Custom Execution>
<Custom Execution>
$gameVariables.value(20) -= 3;
</Custom Execution>
<Cost Display Eval>
var variableId = 20;
var value = 3;
$gameVariables.setValue(variableId, value);
</Cost Display Eval>
<Custom Cost Display>
\c[4]\v[20]\c[0] STAR
</Custom Cost Display>
When using an attack the Star variable should remain at 0 (The number that appears next to the Gold in the video is the star variable) but it remains at 3. I attach the code and a video where my problem appears
Any solution?
CODE:
<Custom Requirement>
if ($gameVariables.value(20) > 2)
{
value = true;
} else {
value = false;
}
</Custom Requirement>
<Custom Execution>
<Custom Execution>
$gameVariables.value(20) -= 3;
</Custom Execution>
<Cost Display Eval>
var variableId = 20;
var value = 3;
$gameVariables.setValue(variableId, value);
</Cost Display Eval>
<Custom Cost Display>
\c[4]\v[20]\c[0] STAR
</Custom Cost Display>