MV Spell/Skill that needs a certain other Party Member alive to be casted

In my game, my character has a spell named "vfhsdhkbvfgvbdf" (Its a spell with a joke name, it just does a lot of damage. We'll call it 'V' for short from now on)

Later in the game he'll learn the spell "Dual vfhsdhkbvfgvbdf (Dual V, for short)" To cast Dual V, a certain party member needs to be alive (specifically the second one.)

Is there a plugin for MV or code that i can use to check is Member #2 is alive before casting the spell?
You'd be able to use Yanfly's Skill Core plugin and make the requirement for the skill be$gameActors.actor(2).isAlive()
You'd be able to use Yanfly's Skill Core plugin and make the requirement for the skill be$gameActors.actor(2).isAlive()
I downloaded and inserted the plugin. How do i make it a requirement exactly?
How do i make it a requirement exactly?
Code:
<Custom Requirement>
value = $gameActors.actor(2).isAlive();
</Custom Requirement>
Code:
<Custom Requirement>
value = $gameActors.actor(2).isAlive();
</Custom Requirement>
I inserted it into the notes of the skill but it still works even if actor two is down
did you save your project after doing it? plugin configs and notebox changes dont register until you do
did you save your project after doing it? plugin configs and notebox changes dont register until you do
Yeah I saved it.
AIght I got it working.

I kinda just refreshed the plugin and that did it

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.


Also its not super relevant, but when the project is saved, your plugins are refreshed to my knowledge. If this isn't the case for you somehow, remember to manually refresh every time you change notebox data and plugin configs.

Original thread: https://forums.rpgmakerweb.com/threads/spell-skill-that-needs-a-certain-other-party-member-alive-to-be-casted.179041/