MV I want to make a ring/spell that divides the effect of items evenly among the party members

i'm thinking of making a ring which will (for example) divide the healing of a potion evenly among the party members.
let's say that a potion heals for 100 hp, and i have 4 members in my party, i have the ring equipped so it heals me and the others for 25 hp.
I also have an idea where it will only share with others who have the same ring equipped.
would this work? if so, how would i go about doing this?
you'll need a script/plugin for this, it is absolutely impossible by default.

and it would then need code on the potion to check if anyone has that equipment and if yes it needs to change the target scope of the potion as well as the amount for the effect.

Theoretically it might be done by a common event called by the potion, but due to the limits of the event commands this will only be possible to do as long as the numbers of actors in your game is limited as the event commands would have to check every actor.
Off the top of my head...I'd say use Yanfly's Passive States, so equipping the ring puts an invisible state on the character.

Then, you're going to have to code the effect for every single item to check for that state to be present on the target, and if so, do the various effects to each party member. You could try doing that in a common event on the item, you could try doing it in Yanfly Action Sequences...either way, if the effect isn't important to the story of your game, it's a lot of work.
Off the top of my head...I'd say use Yanfly's Passive States, so equipping the ring puts an invisible state on the character.

Then, you're going to have to code the effect for every single item to check for that state to be present on the target, and if so, do the various effects to each party member. You could try doing that in a common event on the item, you could try doing it in Yanfly Action Sequences...either way, if the effect isn't important to the story of your game, it's a lot of work.
You actually wouldn't. If you added a notetag to the state itself that fires when a recovery item is used and if the ring is equipped splits the healing between everyone who has it on, you don't have to change the items at all.
That's presuming that the only thing it does is split healing - the OP said it was only an example. You're correct if that's literally all he wants to happen, but I presumed it was an example and other items would also interact with it.
Moved to: Plugin Requests

Based on your profile, I have moved this to plugin requests (rather than script requests) and tagged it with RPG Maker MV. If this is incorrect and you were asking about another engine, please Report this post and let us know what engine you were asking about.

Game Mechanics Design is for game design discussion, such as whether this might be an overpowered mechanic or what kinds of potions would be fun to use with this spread effect - not for how to make mechanics in RPG Maker (and the fact that it's a little different in each RM is part of the reason why). I know the name can be a little deceiving.

Original thread: https://forums.rpgmakerweb.com/threads/i-want-to-make-a-ring-spell-that-divides-the-effect-of-items-evenly-among-the-party-members.134642/