So I was wondering if it was possible using Yanfly's Skill Equip Plugin to create a passive skill that you could equip to an actor to have that specific actor learn a trait (such as Shield Equip) only while the skill is equipped. I know I would be using the following note tag to attach the state to the skill. <Equip State: 102>
The problem I am having is with the state. I believe some scripting is needed. Would the following script work?
$gameActors.actor(2).currentClass(1).traits.push({code: 52, dataId: 4-5, value: 1})
I don't know java and I am new to to scripting. I have been jumping around the internet and I've pieced the above together myself, but am unsure if value is needed or if data id will add both small shield (4) and large shield (5).
Anyone have any helpful advice or opinions on the matter?
I am trying to understand what you are trying to accomplish. Any Plugin aside, what is it you are going for?
I just want a state that gives the specified actor or class shield proficiency. I don't want to do this at the start of the game. I want the player to choose if this is something they want to learn and whether it is worth using up a skill slot. I also need to know if Is scripting needed to achieve this and if so does the script I pieced together work?
I am using Yanflys Skill Equip Plugin and Skill Learn Plugins, The first of the two forces the player to choose which skills they will be able to take into battle and also allows you to create skills with passive states tied to them. The second plugin allows the player to purchase skills from a global list and to set requirements on those skills such as class, gold, job points, etc.
My game allows each actor to learn skills and the player has multiple paths they can take for each actor's skills. It's very similar to a skill tree except it's not laid out. The state I am trying to create will be for the main character only. I hope I've explained everything thoroughly.
Thank you for replying.
Without any plugin, here is one way to accomplish it:
Assuming this is for a specific class/actor:
Create a series of 'weapons' that are actually shields. The database will permit you to give them any properties you can imagine, even +0 attack.
Then give either the actor or class the Trait to Equip these weapon-shields.
Then create Skills in the database and flag the Required Weapon with weapon-shields(or whatever you are calling them under Types-Weapon Types.
Now you have a series of skills that require shields to use. You can even create special animations for the shield to display as the functioning weapon.
You can also create a series of "Armor" that are in-fact weapons for this class, because Armor can be given whatever properties you like in the database.
I hope this helps. If you need further assistance, let me know.
If anyone knows a better way to accomplish this without a plugin, or knows a plugin that makes this more efficient, I would be interested to see it as well.
Oh!, I always thought the equip section in the states was to force an actor to equip a specific weapon or armor immediately. Obviously I have never used it. Thank you so much for pointing this out! I'm feeling a little foolish now.
This thread can be closed...