- Joined
- Nov 18, 2015
- Messages
- 390
- Reaction score
- 50
- First Language
- English
- Primarily Uses
- RMMV
I want to make a specific skill be enabled when you have the required armor equipped. But I also want to make so that you have to have a certain number of them also.
Let's say you make a equipment type: Ammo
You need two Ammo to use a skill Double Tap... But the ammo has to be equipped and you need two of them to use it.
I looked at Yanfly's YEP_SkillCore and it looks like it can be done there, but I can't figure out how to go about making it work.
Here's the Note Tag I used:
This code only disables the skill and nothing gets it to activate.
Help please?
Let's say you make a equipment type: Ammo
You need two Ammo to use a skill Double Tap... But the ammo has to be equipped and you need two of them to use it.
I looked at Yanfly's YEP_SkillCore and it looks like it can be done there, but I can't figure out how to go about making it work.
Here's the Note Tag I used:
JavaScript:
<Custom Requirement>
var item = [8, 9, 10, 11];
var ammo = $dataArmors[item];
if ($gameActors.actor(1).hasArmor(ammo) >= 2) {
value = true;
} else {
value = false;
}
</Custom Requirement>
Help please?





