I want an equipable accessory to have some more complex effects and conditions in battle compared to the standard parameters you get. I have heard it is possible to use the accessory notes but they don't account for when parameters change. My plan is to have an accessory that when equipped, it allows the user to deal 2 hits per attack if wielder is unarmed, which naturally will have to account for changing parameters for example if the user equips a weapon at any point or unequips the accessory. Any advice?
How to create a specific script for an accessory?
RPG Maker MZ SupportNot inherently. The Notes field doesn't do anything except let you type notes into it unless you use a plugin which allows you to enter notetags in specific formats.
This is a little tricky (I think, someone else might have a better idea). My initial thought is to give the accessory a Trait for an Attack Skill that hits twice (has Repeat 2 in its database entry).
Then give all weapons that actor might equip a Trait with a different Attack skill that's a duplicate of the original Attack. When you have multiple traits with Attack Skill, the actor will use the one with the highest skill ID.
Any other method would involve plugins and modifying the actor's battle commands or programming skills with action sequences and more complicated things. This method works in the default engine with just a bit of copy and pasting on your part.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-create-a-specific-script-for-an-accessory.168488/