Hi, in my project, at some point, the chars find a couple of armors on the floor, and have a little scene about them. During the scene, you can see the sprites and pics change accordingly as by using the newfound armors, and internally, I set the event to Change equipment --> armor --> "this particular armor" on both chars (obviously, both chars have that particular set of equipment allowed).
Now, the problem is: the equipment doesn't change. The player has to manually enter the equipment menu and add the armor on each character after the scene is complete, which is... counterintuitive, since the scene clearly shows them changing clothes... and in case that was the problem, I "added" the armors into the inventory before the line "changing" their equipment during the event.
Is there any other action I have to make before or during in order to them autoequipe the armors?
Anyway, thanks in advance, and sorry for any mistakes I might had, but English isn't my main language.
Is the armor in the inventory before you make them equip it? If not the forced equip step fails, as the armor has to be in the inventory before you can make them equip it.
If that's not it, can you please post a screenshot of the event for us to check?
Yes, the armor is added to the inventory one line before the changing one. I can't add a screenshot right now because I'm not at home (where my computer has the project). 🙂
I'll double check the fact that I add both armors to the inventory beforehand, but if I did (as I remember), I'll post a screenshot later today. 🙂
can you post a screenshot of the event? If using the correct command that should change the actors, but depending on how the entire event works that command might be skipped for one reason or another, and we need to see the entire structure to check that.
Also, make a new event that only contains the change equipment command and test if that works.
Ok, been busy hunting this one around. I finally catch it, but I don't think you guys can help me with it...
The code was sound. I DID add both armors before trying to equip them during the event. The problem is, since I'm using Yanfly's Item Core... it changes both armors attributes, and so, it makes them something "different". So the event can't "autoequip" them since I'm saying "equip A" in both chars, and the event sees "B" and "C" in the inventory...
One possible solution would be "Auto optimize equipment".... Is there any way to do that on the event? Otherwise, I think I'll have to ask Yanfly him/herself (sorry, but does anyone know if Yanfly is a guy or a girl?).
Thanks. 🙂
no, in that case you would have to use a scripted equip command with the ID you got by script from the yanfly-plugin.
It should have commands for it, please link to its website so we can check.
No, it's ok. I'll just disable the option for the armors to become "independent" (have different stats), so they stop being "B" and "C", and just become "A", and the event should work (it's not like the stats in those armors do something at that point anyway). 🙂
I'll check how that works later (not at home right now...), and post it (and possibly close the thread, too). 🙂
Thanks for the help, everyone 🙂