Hello all!
I am using various Yanfly plugins with lunatic modes, and so far without Javascript knowledge, I can usually google my way around to figure out what I need, and use common sense for the rest. Unfortunately I am stuck on this and would love some help from the community who know more than me.
Basically, I want to write a conditional that checks if the party currently has a particular armor/weapon, AND if the armor/weapon is NOT equipped - by anyone in the party, just not one specific actor.
Here is my current code in the middle of the lunatic brackets:
Now I'd like to add "AND ITEM NOT EQUIPPED" somehow next to the conditional, so that it is checking if they have the item AND it is not equipped. But I can't figure out the right syntax for it.
Thanks for your help!
I am using various Yanfly plugins with lunatic modes, and so far without Javascript knowledge, I can usually google my way around to figure out what I need, and use common sense for the rest. Unfortunately I am stuck on this and would love some help from the community who know more than me.
Basically, I want to write a conditional that checks if the party currently has a particular armor/weapon, AND if the armor/weapon is NOT equipped - by anyone in the party, just not one specific actor.
Here is my current code in the middle of the lunatic brackets:
Code:
if ($gameParty.hasItem($dataArmors[X], true))
{ visible = true; }
else { visible = false; }
if ($gameParty.hasItem($dataWeapons[X], true))
{ visible = true; }
else { visible = false; }
x = armor or weapon database ID
Now I'd like to add "AND ITEM NOT EQUIPPED" somehow next to the conditional, so that it is checking if they have the item AND it is not equipped. But I can't figure out the right syntax for it.
Thanks for your help!
