Recently asked a question and sorry to be back so soon.
Is there a way to check how many weapons the player has equipped? One of my classes has two weapon slots (specified with Yanfly's equip core) and I'm finding it impossible to tell
whether the play has one sword equipped or two e.g
Thank you so much for any replies.
I can think of a Workaround for that. In the Database every Weapon can give your char a skill as long the weapon is equiped.
(That skill will never be seen by the player its just for the workaround)
Make 1Skill for every sword. The skills are empty,they are just for our conditional branch to check if the hero has learned that skill.
We do the following pseudocode:
control Variable 1 = 0
Conditonal Branch skill1 learned
if yes control variable1 add 1
else do nothing
Conditional Branch skil2 learned
if yes control variable1 add 1
else do nothing
.....
Conditional Branch variable 1 is 2
if yes your hero has 2weapons equiped
Maybe a Scripter can offer a shorter better solution, but maybe this helps if you dont have hundrets of swords.
Exactly you are right, always these damn Bugs 🙂lol
Okay, no Problem here is an even easier Way.
control Variable 1 = 0
Conditonal Branch hero weapon1 equiped
if yes control variable1 add 1
else do nothing
Conditional Branch weapon2 equiped
if yes control variable1 add 1
else do nothing
.....
Conditional Branch variable 1 is 2
if yes your hero has 2weapons equiped
But the Problem is the same bug apears, it doesnt detect when you equip 2xsame sword.
Hmm...maybe someone else can think of something.