Yanfly's New Equip Requirements Help

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,626
Reaction score
1,195
First Language
English
Primarily Uses
RMMV
Hi, just installed Yanfly's YEP_X_EquipRequirements plugin. I'm trying to make a notetag in lunatic mode that makes it so an item (a 2h weapon) CANNOT be used if the actor has Dual Wielding. This is what I got so far, but when I try it in game, the weapon is grayed out no matter what.
 


<Custom Equip Requirement Condition>


if (user.isDualWield) {


condition = false;


} else {


condition = true;


}


</Custom Equip Requirement Condition>


Edit: I wanted to clarify that I made sure the actor DID NOT have dual wielding when trying to equip said weapon.
 
Last edited by a moderator:

SuperMasterSword

That Guy You Dont Know
Veteran
Joined
Jun 28, 2014
Messages
117
Reaction score
48
First Language
Javascript
Primarily Uses
RMMV
Just add parentheses after the isDualWield like this user.isDualWield()
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,626
Reaction score
1,195
First Language
English
Primarily Uses
RMMV
OMG Thank you!!!
 
Joined
Oct 29, 2014
Messages
156
Reaction score
4
First Language
English
How do you consider shields off-hand equipment using Yanfly's Equip Requirments plugin, allowing the use of either two weapons or one weapon and a shield at the same time?
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,626
Reaction score
1,195
First Language
English
Primarily Uses
RMMV
I classify shields as a weapon, one-handed of course, but it does not add the dual wield trait that one-handed weapons normally offer. This prevents dual wielding shields lol.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,038
Messages
1,018,466
Members
137,821
Latest member
Capterson
Top