<Custom Requirement>
value = false;
for (i = 0; i < user._equips.length; i++) {
if (user._equips._dataClass == 'weapon' && user._equips._itemId === 2) {
value = true;
}
}
</Custom Requirement>
Hi there,
I am currently using a variety of plugins, but what I am dealing with currently is Yanfly's Skill Core and Yanfly's Item Core.
As you can see from the code above, I have a skill which requires the actor using it to have the weapon ID #2 in the database to be equipped before the skill is available for use. However, this isn't working as expected due to the weapon the actor has equipped is unique due to Yanfly's Item Core. I may be making the wrong assumption that this is in fact from Yanfly's Item Core causing the issue, but if I were to require the actor have 'armor' #2 equipped instead, the skill would be enabled just fine.
What I need assistance with is figuring out the right course of action here to make it so whenever the actor has the base weapon ID equipped, the skill will be enabled.
I have tried a variety of methods, but I seem to be doing it all wrong. Some assistance would be greatly appreciated.
Thank you
value = false;
for (i = 0; i < user._equips.length; i++) {
if (user._equips._dataClass == 'weapon' && user._equips._itemId === 2) {
value = true;
}
}
</Custom Requirement>
Hi there,
I am currently using a variety of plugins, but what I am dealing with currently is Yanfly's Skill Core and Yanfly's Item Core.
As you can see from the code above, I have a skill which requires the actor using it to have the weapon ID #2 in the database to be equipped before the skill is available for use. However, this isn't working as expected due to the weapon the actor has equipped is unique due to Yanfly's Item Core. I may be making the wrong assumption that this is in fact from Yanfly's Item Core causing the issue, but if I were to require the actor have 'armor' #2 equipped instead, the skill would be enabled just fine.
What I need assistance with is figuring out the right course of action here to make it so whenever the actor has the base weapon ID equipped, the skill will be enabled.
I have tried a variety of methods, but I seem to be doing it all wrong. Some assistance would be greatly appreciated.
Thank you