Changes to Olivia's Weapon Swap System

Hey guys,

I recently purchased Olivia's Weapon Swap System plugin (https://fallenangelolivia.itch.io/weapon-swap-system) and while it does fulfill my needs it has features I'd like to change/simplify. So if some kind soul could look into it and modify the script I would be eternally grateful 🙂
Since the plugin is paid I can either share the js file (for the purposes of making the modification only, ofc!) or cover the cost of additional copy (after I receive the modified script or a video of it working in-game).

First of all, this is what I want to achieve:
I want to have a skill that would allow the user to swap back and forth between two weapons - one equipped in the default "Weapon" slot and second equipped in a new "Secondary Weapon" slot.

What Olivia's plugin does:
Weapon Swap System creates a separate weapon slot for every weapon Type in the database. And this is simply too much in my case.

Required changes:
All I need is a single additional "Secondary Weapon" slot that would accept any weapon Type (see one_slot_all_types.jpg). It would be good if I could change the name of the new slot via plugin properties, but it's not necessary.

Additionally, for this to work we'd need to modify Skill Notetag that come with Olivia's script. At the moment <Switch to Weapon: x> Notetag makes the skill user switch the currently active weapon to a weapon of Type x (if it's equipped to its respective slot). In the simplified version <Switch Weapon> notetag could simply make the skill user switch between weapons in default and secondary weapon slots.

Finally, it would be awesome if we could change Olivia's <Require Weapon Types: x, x, x> Skill Notetag so that it makes the skill require only one out of all listed weapon Types (x) to be available for use, instead of all of them.

Thanks for reading, guys! If anyone's interested in helping me out just PM me or post here.

Cheers 🙂

Original thread: https://forums.rpgmakerweb.com/threads/changes-to-olivias-weapon-swap-system.113765/