So I'm not sure how I would do this, either with a Plugin or eventing but here goes. Sorry if this is in the wrong position.
What I'm trying to do, mechanically/plot wise; Characters/Actors, have 5 slots; Weapon, Hat, Armor, 2 accessories. However after a certain point of the game, a new slot opens up for the character to equip items to(Or at least represent that X is effecting them). You can think of this as a cursed item or possibly a persona/summon slot.
I'm unsure how to Hide this slot and then later enable it. Yanfly's Equip core lets me assign different equipment slots to classes but I'm unsure how to, during game that is, introduce a new equipment slot. Given that it could also be a plot point, I'd rather not have it named say "Cursed Slot" or something obvious for a player to see and notice.
Thoughts of how to go about doing this? This sounds like it would take more than just evening, especially since Yanfly's Equip is already in play.
Shaz, galv, Victor, and TSUKIHIME have all made plug-ins for this, you can control the equipment slot or add equipment slot, you can search for them
I'm trying too but since I'm late to the party, I'm having difficulty in finding them. Tsukihime as an example, always leads me back to the VX Ace plug in.
how are you handling the class system?
i can think of a 2 work arounds.
A ) using only yanfly equip core
duplicates of every class.
when reach that point in the game 1 large event just rotates every actor and class to copy level and exp into variables to the clone classes that have that extra equip slot.
then just remove the original classes from the class change lists and only have the upgraded duplicates.
B ) uses yanfly subclass
static subclasses (cannot change outside of eventing)
if not using subclasses or subclass is something to track character level separate from class level (like how games have player lv30 : class redmage lv 7)
this is basicly the same method as A but only having 1 dublicate subclass for the actor and not 1 for every class that actor could become
if were not using subclass originally this method can still be used since the plugin has options that make subclass have no stat changes to the actor. basically turning subclass into actor nickname or origin
edit: my project is actually using method B for the purpose of having actor level separate while giving new gear slot, and battle command slots (equip battle skills : skill tiers) at certain character plot points.
actor ID can stay the same. needs to get different class though since the equip core notetag is a class thing.
are you doing a system where the player can change classes freely or is it 1 class per actor?
event page 3. change actor images
is there even a purpose to having the new equip slot if the equipment for that slot becomes locked?
couldn't the equipment's attributes just be part of the new class's parameters and traits?
item : adds state(target) : common event
event
: if actor 1 has state(target)
> change class (save level)
> change image
: if actor 2 has state(target)
> class
> image
: if actor 3 has state(target)
> "Name can't use that"
: if ....
....
: change state : party : remove state(target)
yanfly state catagories has state notetags for that
<Category: Bypass Death Removal>
<Category: Bypass Recover All Removal>
that being said... class traits can do everything a state can do, outside of other plugin notetags.
but if need state 24/7 for a notetag there is also the option of passive states.
edit: locking equipment is usually only ever needed when a guest character has something the the player shouldnt be able to aquire. ie, the head knight has the holy sword Durandel and the mysterious dual wielder has Masamune + Murasame
theres alot of options instead of trying to add an equipment slot that wasnt there before just to have that slot become locked immediately after. if the slot didnt become locked and is just a new mechanic added mid game i can completely understand that. just seems a little over complicating to me.
hope you can get it to work the way you envision it. just remember though that the whole change appearance thing is only working because the item usage is triggering an event.
equipment based appearances is a whole other slew of problems (usually lag/load times)
There is a way to actually write this as a Plug-In and all the sources are inside the base-code available.
I had some similar issue where I wanted a certain CLASS and a certain ACTOR to be checked so that my Mage could equip more Rings than the other classes in my party.
there is the dualwielding trait and this one tells us that it checks for the equipment slot length (this is important for us) Referencing Image ss1.
for (let i = 10; i < $dataSystem.equipTypes.length; i++) {
slots.push(i);
Since I don't know how many TYPES of Equipment you have, it is wise to check up on that but this will help us HIDE all unnecessary Slots that we don't want in ALL our party members to appear.
Do you have x amount of Equipment types aside the Weapon, Shield, Hat, Armor & Accessoiries slot? well better check your Max slot types and just use it instead of the 10 in the example!
In the second picture you can see that I'm checking for a specific ACTOR this.actorId() === 1 I'm checking if it is the FIRST actor in my entire Actor-list, This does NOT check for the first person in the Party Formation, it ONLY checks the Actors.js File on who is the first one in the list.
checking for a specific CLASS however is done with this._classId === 3 DO NOT add any () for that check because it is NOT a function!!
This checks your Classes.js File what class is at number 3
So now we're checking for BOTH If Actor 1 is Class 3, IF that is the case then the change will happen.
Important Notice! make an else after that last IF to make sure that there is a "default" equipment set for the people.
If you want a certain character to have more than one pre-set per class you can simply play around for the slot types and slot numbers.
If my provided pictures don't fully help then I won't mind helping out to find a way to make it work!