Hi all, I am fairly new to making plugins for RPG Maker MZ, yet I am not new to coding in general. (I normally use Java, Javascript, HTML, CSS, basically some basic coding programs)
Basic Concept for Plugin
The basic function I am trying to have my plugin do is for it to detect if an Armor ID in Equipment Type [ID: 10] matches the Actor ID in the battle party.
---If yes, then check if any party member has it equipped
------If yes, Unequip that party member with that Armor item (I would like to disable the armor from being allowed to be equipped while the matching ID party member is in the battle party, but baby steps)
------If Armor is not equipped then just don't allow that armor to be equipped (again can be found out later)
-Else when the Armor ID in Equipment Type 10 slot does not match any battle party member's Actor ID then just do nothing allow that item to be equipped basically.
The basic idea is that this "Armor" is one of the inactive party members teamed up with one of the main battle party members giving them a boost in power in some way like Attack boost, counter attack, minor auto healing, etc.
Where I'm struggling
I think I have a bit of a handle on how the code except for how to call the plugin. I am unsure of how the game acts to call this plugin. I tried looking up tutorials and feel like a Note tag like system would be good, but I don't fully grasp how that function is being reached.
Would there be a better way to handle this that isn't a notetag? If not then how would I get the notetag that I typed in the Armor notes get called by the plugin itself?
Any help would be appreciated.
Thank you.
Basic Concept for Plugin
The basic function I am trying to have my plugin do is for it to detect if an Armor ID in Equipment Type [ID: 10] matches the Actor ID in the battle party.
---If yes, then check if any party member has it equipped
------If yes, Unequip that party member with that Armor item (I would like to disable the armor from being allowed to be equipped while the matching ID party member is in the battle party, but baby steps)
------If Armor is not equipped then just don't allow that armor to be equipped (again can be found out later)
-Else when the Armor ID in Equipment Type 10 slot does not match any battle party member's Actor ID then just do nothing allow that item to be equipped basically.
The basic idea is that this "Armor" is one of the inactive party members teamed up with one of the main battle party members giving them a boost in power in some way like Attack boost, counter attack, minor auto healing, etc.
Where I'm struggling
I think I have a bit of a handle on how the code except for how to call the plugin. I am unsure of how the game acts to call this plugin. I tried looking up tutorials and feel like a Note tag like system would be good, but I don't fully grasp how that function is being reached.
Would there be a better way to handle this that isn't a notetag? If not then how would I get the notetag that I typed in the Armor notes get called by the plugin itself?
Any help would be appreciated.
Thank you.