Equipping an item sets a switch

I've looked around some, but there doesn't seem to be a script to achieve what I'm looking for.

Basically, I'd like to be able to flip a switch ON or OFF depending on if any of the current party has a specified weapon/armour equipped, after changes are made to equipment, and the members in a current party. I kind of imagine this looking like so:

EQUIPCHECK = [# EQUIP ID, SWITCH TO FLIP [10, 90], [27, 91], [2, 92]]WEAPONCHECK = [# WEAPON ID, SWITCH TO FLIP [17, 28], [1, 19], [7, 85]]I guess logic would be:

1) Whenever party equipment is changed, go through these arrays and update switches.

2) Whenever there is a change to who is in the party, go through these arrays and update switches.
Tsukihime made a script "equip events" that will run common events upon equipping an item.


Then you can set that switch (and a lot of other things) in that event.


http://himeworks.wordpress.com/rmvxa-scripts/


(the script is under "event related" about halfway down that list)
Ah! this looks near to what I want, except for taking into account changes in party (at least there's no mention of that in description)? Will have a look now.
True, those events are called upon equiping, but they don't get any data on who equipped the item.


However, Tsukihime also made event extensions where the event gets additional arguments for processing - if you find nothing else, you have the option to request an addon to this like storing who equipped what weapon or armor in variables before calling the event...

Original thread: https://forums.rpgmakerweb.com/threads/equipping-an-item-sets-a-switch.16964/