MV Twinned Weapons fused with Pokémon's Helping Hand Move

I apologise in advance for the horrid wording of this title I came up with; There is no simpler(Or shorter, to begin with) way I can come up with to summarize what kind of conundrum exactly brought me back here. I've managed to figure out how to modify damage post-calculation thanks to my previous thread and Robro33's solution as well as how to fit it to various other types of abilities. All kept simple. This however, I can't see it in any way as simple.

Allow me to start with a small preface to give a slight degree of context. It should help put together the pieces of the puzzle.

Two of the game's Actors are Twins in a similar fashion to Final Fantasy IV's Palom and Porom(Which was not intentional. I realised this way past making the decision to have a Black and a White Mage as twins.) and so I thought, "Okay, I've already covered their Spells, I'm now covering their Weapons, what can I do with them?" And the concept struck me like Lightning in broad Daylight: "I should cook up a pair of Rods the two of them can equip that increase their Magic Damage Dealt, but only if they are both in the active party and both Rods(Rods of the same ID, so virtually identical save for any Customization done) are equipped."

Since I'm using the Full Yanfly Engine, I figure this could be easily doable with the classic "Passive State" Trick, and I seem to remember how to apply a conditional statement that checks wheter a certain weapon or armor is equipped, but I cannot figure out how to check if the required Actors are in the Active Party, ergo, the five Party Members currently battling. Since this procs off of the same exact weapon, the whole process sounds easier and faster than making two different weapons-but it remains outside of my area of expertise. (Or knowledge, rather. I am still a novice and will probably be for a whole lot longer.)


And there you have it, the reason I am asking for assistance once more. Should this work out, I might look into a way to replicate FFIV's Twincast, however arduous it seems...

Thank you in advance for reading.

~Noel Ardiens
I'm going to pretend the twins have actor IDs 3 and 9, and the rod has the weapon ID 14. Change it all to fit your setup.

Code:
<Custom Passive Condition>
// Look for twin 1 in the party
let twin1 = $gameActors.actor(3).index();
let twin2 = $gameActors.actor(9).index();

// If either is not in the current party, state is off
if (twin1 == -1 || twin2 == -1)
    condition = false;

// Otherwise the state is on if they both have the rod
else
    condition = $gameActors.actor(3).hasWeapon($dataWeapons[14]) && $gameActors.actor(9).hasWeapon($dataWeapons[14]);
</Custom Passive Condition>
I have tried it, I have tried tinkering with it but it's returning a problem or two. I went back to your solution exactly as you posted it, with the IDs of each actor and the Rod in question fit to their database entries, but it seems to really hate the very notion of working as intended.

I fired up the console to see exactly what was causing the issue, but I am at a loss as to what it is trying to tell me. I'm attaching a screenshot of the console and a screenshot of the Notetags for Weapon 119(The Rod). I cannot figure out how to enlarge the notebox for State 78(Which is supposed to do the magic trick of bumping up every single magic number with the specified conditions) so I will simply place it here as code.

JavaScript:
<Custom Confirm Effect>
if (this.isMagical() && this.isDamage() || this.isHpEffect() && value < 0)
  value = Math.ceil(value * 1.25);
<Custom Confirm Effect>
<Custom Passive Condition>
// Look for twin 1 in the party
let twin1 = $gameActors.actor(7).index();
let twin2 = $gameActors.actor(8).index();

// If either is not in the current party, state is off
if (twin1 == -1 || twin2 == -1)
    condition = false;

// Otherwise the state is on if they both have the rod
else
    condition = $gameActors.actor(7).hasWeapon($dataWeapons[119]) && $gameActors.actor(8).hasWeapon($dataWeapons[119]);
</Custom Passive Condition>

All exactly as posted, with the snippet I use to provide damage amplifiers fit to this specific case. However, the console reports the error lies in the condition itself, which... Honestly, I have no idea as to the "Why" of it. I did some research on the various differences between "var", "let" and "const" and nothing seems wrong to these untrained eyes. What am I missing?
You seem to have forgotten a / in your confirm effect notetag.
You seem to have forgotten a / in your confirm effect notetag.

The amount of embarrassment I am feeling right now is never going to let me live it down.


Much as this has been fixed and the effect actually works as intended(Unlike my idiocy, I am going to need Glasses from now on if I miss something this blatant) the console still outputs what's shown in the above screenshot. Not sure if I should be worried or not, but seeing as it works... Solved? I suppose?
The amount of embarrassment I am feeling right now is never going to let me live it down.
I have seen several people make that mistake. Hell, I've made it before. It happens, friend. No embarrassment should be felt.


Much as this has been fixed and the effect actually works as intended(Unlike my idiocy, I am going to need Glasses from now on if I miss something this blatant) the console still outputs what's shown in the above screenshot. Not sure if I should be worried or not, but seeing as it works... Solved? I suppose?
You get the exact same error in the console?
You get the exact same error in the console?

Yup. The console still outputs that error, but the effect itself still works out. I've tested it out again and again, swapping weapons mid-battle to see if it would decide to bum itself out somehow-but nope, everything is in working order despite the Error popping up every time I fire up the console.

I am chalking it up to the attempts to test out these effects to come straight from the Battle Test function, and that it should sort itself out if I ran a proper playtest, that said I cannot help but worry it is an indication of something breaking elsewhere.


Edit: Once again, I strongly believe my idiocy is at fault here. I may have the solution to this conundrum and it is very highly likely it may be negligence on my own part yet again. Should be fully solved.
Edit: Once again, I strongly believe my idiocy is at fault here. I may have the solution to this conundrum and it is very highly likely it may be negligence on my own part yet again. Should be fully solved.
Well . . . alright then. Hope everything stays solved for you.
Respectfully, I will be stealing part of this idea for my games twins. xD

Original thread: https://forums.rpgmakerweb.com/threads/twinned-weapons-fused-with-pokemons-helping-hand-move.162661/