Like the tittle says, I have 20 years of experience with Rpg Maker and there would be so many ways about doing this. One way would be to implement the damage multiplier in the formula box to check if actor ID x is wearing Armor ID x however this would have to be done to every skill that the summon has and there are quite a few summons. I don't want the summoner to have to buff his summons using some type of support skill. I simply want the summons to just already be 100% stronger when the actor is wearing this gear. Any ideas? If all else fails I would still appreciate if someone could build the damage formula for this.
(If actor ID x is wearing armor ID x then damage is a.atk * 3 - b.def * 1 else damage is a.atk * 2 - b.def * 1)
Though this problem seems solved, I like to use element rates for these types of problems as an alternative:
(original formula) * $gameActors.actor(11).elementRate(17)
This would increase the damage by the 11th actors element rate for element 17 (which would probably be a placeholder and only used in these formulas). This solution requires a bit more setup and is less flexible when it comes to how to increase the damage, but it would make it easier to add alternative pet damage increasing effects later.
If you want to buff your summons, that probably depends on how the summons work in the first place. For example, you could maybe give them a state through a common event in the skill that summons them if applicable, but that state would by default disappear on the first death and not reflect whether the summoner equips the armor after the fact.
leave the damage formula alone and move the validation to the place where all validations are made, AKA, the item_apply routine.
that's quicker access to all states and values, since everything is handled there with it's own functions.
on attack use (or, on valid hit) grab the attacker.
if it's a summon, grab the master (which you should already have, from the process that calls the summon, if it's from a plugin!)
if not, continue as usual.
EDIT: scratch that.
on the damage formula, call for the validation to the summon actor itself.
*IT* should have it's own reference to it's master, if it's summoned from a plugin.
put the return value on that validation, and send that to the formula.
[ a.GetVal - b.def * N ]
where GetVal is a function that returns either X * 3 (IF ->), or X * 2 (IF NOT ->), and X is always self.atk.
since you're at attacking side, "B" is irrelevant, so calculate everything based on the attacker, which is "me" or "master".
once that is sorted out, you send the final value to the battle, and let it run on it's own.
don't put calculations you don't need on the damage formula!