Yanfly's skill core plugin has a function that lets you write custom skill conditions. This was an included example:
<Custom Requirement>
if ($gameParty.gold() > 1000) {
value = true;
} else {
value = false;
}
</Custom Requirement>
The included example sort of made me think of trying to have 'dual skills', with the custom condition for said skills being that it'll check to see if a specific actor (other than the user) is in the active battle party AND if they are currently alive. The skill being selectable only if both conditions are met. The rest can be done through action sequences where one could reference the specific actors by their ID or whatnot.
Would anyone know the syntax to do that/is that possible through the custom skill requirement?
Furthermore, let's say hypothetically this situation works. You pick a 'dual skill' but before it can be performed, an enemy with faster speed acts first and kills the dual skill participant. This was an included example for code that can be run at the skill execution.
<Custom Execution>
$gameParty.loseGold(1000);
</Custom Execution>
If you were to run the exact same syntax from the custom requirement section (checking to see if a specific party member is in the active battle party AND alive), would that prevent the skill from being used since it would return a false for the condition?
I'm not married to the idea of having dual skills, but if it's possible to use the skill conditions to have some, that would be pretty neat. I imagine otherwise you'd just need a plugin built for that sort of thing.
<Custom Requirement>
if ($gameParty.gold() > 1000) {
value = true;
} else {
value = false;
}
</Custom Requirement>
The included example sort of made me think of trying to have 'dual skills', with the custom condition for said skills being that it'll check to see if a specific actor (other than the user) is in the active battle party AND if they are currently alive. The skill being selectable only if both conditions are met. The rest can be done through action sequences where one could reference the specific actors by their ID or whatnot.
Would anyone know the syntax to do that/is that possible through the custom skill requirement?
Furthermore, let's say hypothetically this situation works. You pick a 'dual skill' but before it can be performed, an enemy with faster speed acts first and kills the dual skill participant. This was an included example for code that can be run at the skill execution.
<Custom Execution>
$gameParty.loseGold(1000);
</Custom Execution>
If you were to run the exact same syntax from the custom requirement section (checking to see if a specific party member is in the active battle party AND alive), would that prevent the skill from being used since it would return a false for the condition?
I'm not married to the idea of having dual skills, but if it's possible to use the skill conditions to have some, that would be pretty neat. I imagine otherwise you'd just need a plugin built for that sort of thing.