Hello everyone! i'm using Yanfly- Item requirement for conditions to use items. feeling like trying multiple option to make the conditions using
<Enable Requirements>
If: "$gameActors.actor(1).atk >= 20"
</Enable Requirements>
Sounds like either way i'm trying i may missing something to know how to use Javascript command.
<Enable Requirements>
Eval: $gameActors.actor(1).atk >= 20
</Enable Requirements>
What rpgLord gave you should work.
Just to be specific - the contents of the Enable Requirements notetag are not JavaScript unless you use the Eval requirement as shown above.
If something like this comes up again, it will help if you show us where you got that syntax from, as it's not correct for JavaScript nor for the Item Requirements plugin.
Good luck with your project!
I'm currently trying to make a specific armor having condition when the player has more or equal to 20. the player can equip this armor. but everytime, even with what rpgLord give it to me and it sounds correct to follow the information inside this plugin, i still can equip the armor even if my atk is less than 20.
This is what is inside the notetag.
<Random Variance: 2>
<Enable Requirements>
Eval: $gameActors.actor(1).atk >= 20
</Enable Requirements>
So maybe if i maybe right, that's doesnt do anything with the actor but classes instead?
So, feel like there is anything like that yet.