A couple of my skills have multiple costs; A variable and Boost Points from Olivia's Octopack Battler.
In the past, i've just used a single requirement which was usually just shown as
"value = user.storedBP() >= 1;" or "$gameVariables.value(7)" in the Custom Requirement part of the tag like as shown on Yanfly's Wiki page.
But i wasn't sure on what i needed to do in order to do multiple requirements at the same time.
I actually tried to add multiple Requirements for the skill before i posted this thread, but found an issue with it.
The Notetag above is the one i used before trying to add another requirement
This notetag was one of the couple i tried when i was trying to figure this out on my own.
The other attempt i tried was copying the
if ($gameVariables.value(7) >= 1 {
value = true;
} else {
value = false;
}
if (user.storedBP() >= 1) {
value = true;
} else {
value = false;
}
But then after i tried it, none of the requirements would work.
Not entirely sure where to start looking, or if multiple requirements are even possible with Yanfly's Skill Core, but i can't imagine why it wouldn't be possible.
In the past, i've just used a single requirement which was usually just shown as
"value = user.storedBP() >= 1;" or "$gameVariables.value(7)" in the Custom Requirement part of the tag like as shown on Yanfly's Wiki page.
But i wasn't sure on what i needed to do in order to do multiple requirements at the same time.
I actually tried to add multiple Requirements for the skill before i posted this thread, but found an issue with it.
<Custom Requirement>
if ($gameVariables.value(7) >= 1) {
value = true;
} else {
value = false;
}
</Custom Requirement>
<Custom Cost Display>
Cost:\i[25]+4AP
</Custom Cost Display>
<Custom Execution>
$gameVariables.setValue(7, $gameVariables.value(7) - 1);
</Custom Execution>
<User BP: -1>
if ($gameVariables.value(7) >= 1) {
value = true;
} else {
value = false;
}
</Custom Requirement>
<Custom Cost Display>
Cost:\i[25]+4AP
</Custom Cost Display>
<Custom Execution>
$gameVariables.setValue(7, $gameVariables.value(7) - 1);
</Custom Execution>
<User BP: -1>
<Custom Requirement>
if ($gameVariables.value(7) >= 1 && value = user.storedBP() >= 1) {
value = true;
} else {
value = false;
}
</Custom Requirement>
<Custom Cost Display>
Cost:\i[25]+4AP
</Custom Cost Display>
<Custom Execution>
$gameVariables.setValue(7, $gameVariables.value(7) - 1);
</Custom Execution>
<User BP: -1>
if ($gameVariables.value(7) >= 1 && value = user.storedBP() >= 1) {
value = true;
} else {
value = false;
}
</Custom Requirement>
<Custom Cost Display>
Cost:\i[25]+4AP
</Custom Cost Display>
<Custom Execution>
$gameVariables.setValue(7, $gameVariables.value(7) - 1);
</Custom Execution>
<User BP: -1>
The other attempt i tried was copying the
if ($gameVariables.value(7) >= 1 {
value = true;
} else {
value = false;
}
if (user.storedBP() >= 1) {
value = true;
} else {
value = false;
}
But then after i tried it, none of the requirements would work.
Not entirely sure where to start looking, or if multiple requirements are even possible with Yanfly's Skill Core, but i can't imagine why it wouldn't be possible.