So I'm trying to design weapons that have trinket "add ons" that change what the weapon can do. I was going to have the weapons tied to the main hand, and change the off hand to a "trinket" slot for the add on. Like a mage lock pistol. The pistol by itself only does normal HP damage. So depending on what the player adds to the offhand trinket slot, I want it to effect what the main hand weapon will do. Like Trinket A raises the ATK of the weapon, Trinket B may add a stun effect to the weapon, Trinket C may add fire damage to the attacks. The problem is that I can't seem to figure out a way to add a off hand, to where it changes/effects the stats of the main hand weapon.
Thanks!
you either have to use the shield slot for that, and make shield-types according to the main weapon. the main weapon would then add the fitting "shield type" to the actor, allowing it to equip only those "shields" that are add-ons to that weapon.
The other way is using one of the equip manager scripts, preferably one with dynamic slots (like tsukihime's, yanfly's has only static slots).
The script way has a bit more options, but it also requires you to have minimal scripting knowledge.
You could make one of your four armor slots named "Trinket" and use Features from the Features Box (like Attack Element, Attack State, and Attack Times + ) for each Trinket.
Beyond that, you're getting into complicated ground and should either request a script in the RGSS3 Script Requests area or should look into existing Equipment Affix type of scripts (which don't do quite what you want since they permanently modify the weapon).
Isn't adding an effect to a weapon the same as adding an effect to the character? By giving weapon 20% chance to stun is the same as giving the character a 20% chance to stun, no?
If so, then Yanfly's Equip script easily works here. I'm using this exact idea in my current game project (weapon add-ons, body add-ons, head add-ons), and all I did was to simply make each add-on a different type of accessory slot via Yanfly's script, and then rearranged how they're shown in the equip scene.
Yes I was thinking about adding the trinket as part of the shield slot. I was thinking about something like this. Is there a way to trigger a common event when a certain item is equipment and unequipment? So when the trinket is equiped, it triggers the common event to unequip the weapon on that character, and replace it with the enhanced version of that weapon. Then when the trinket is unequiped, the common event triggers again and changed the weapon back to the basic version. It's only going to be the one character who has that weapon who can do that.
only by script - tsukihime has such a script.
But that equipping/unequipping should not be needed, you just have to have the "trinket" add the difference in values between the base and the improved weapon.
Everything that can be improved by a weapon can also be improved by that "trinket", so there is no need to exchange the weapon.