MZ How to set up equipment with special attributes such as armor piercing and vampire in the MZ

Hi everyone,🙂
I'm an MZ rookie and I'm having a hard time making games with MZ. I'm using VisuStella's full set of plugins and I don't know how to use it to set up an outfit with armor-piercing and vampire attributes. I'm not sure if the VisuStella plugin will work with my needs, can someone help or suggest?
Welcome!

I'm an MZ rookie and...I'm using VisuStella's full set of plugins
My personal advice: this is not a great path for two reasons.

1 - If you're a rookie, you shouldn't be using any plugins. You should do tutorials and become competent on making things in MZ, learning the event system, understand how default battle works.

2 - Even advanced users aren't going to dump a full set of plugins into their project. You add an individual plugin when you have the need for the features it offers - reading through its instructions and configuring its plugin parameters as you do so.

Number 2 is especially notable with the VisuStella suite, as the plugins tend to be massive with a ton of features. We see a lot of help threads around here from people who are having a problem with their game and it's because they didn't read the instructions/parameters of a plugin they added, so they didn't realize that's a feature.

So with all that said...what is armor-piercing? By default, there's no such thing as armor. You only have the parameters you reference in your damage formula, so typically it's ATK vs. DEF. Thus, "armor-piercing" would simply mean that weapon has a higher ATK than other stuff at its level.

If you're doing something more complex with your damage formulae or using a plugin that adds some kind of armor system, you'll need to tell us that.

As far as the vampire, that's a pretty easy one. Use a VisuStella Battle Core notetag on your weapon:
Code:
<JS Post-Damage as User>
if (this.isPhysical() && this.isDamage())
{
    user.gainHp(Math.round(value/2));
    user.startDamagePopup();
}
</JS Post-Damage as User>

That will cause all physical attacks to heal the user for half of the damage dealt. Adjust the math however you like.
I agree wholeheartedly with ATT_Turan here, you should really start small, plan, and figure out what your project needs before going into plugins. In your specific case, for example, and I mean no disrespect, but the armor piercing attribute and how to use it is clearly explained within the Battle Core plugin introduction.

As well, as ATT_Turan said, I'm pretty certain the attribute itself does nothing unless you establish an armor system in your game using the Armor Reduction notetag.

That being said, I don't want to make an ass of myself, so perhaps you just missed the details on it while you were reading through the plugin information, and so I will direct you to the right location:

Within the Battle Core, here is an outline of how the built-in Armor Penetration stat works:

<Armor Penetration: x>
<Armor Penetration: x%>
- Used for: Actor, Class, Skill, Item, Weapon, Armor, Enemy, State Notetags
- If used on skills and/or items, sets the current skill/item's armor
penetration properties to 'x' and/or 'x%'.
- If used on trait objects, adds 'x' and/or 'x%' armor penetration
properties when calculating a target's armor.
- This applies to physical attacks.
- Use the 'x' notetag variant to determine a flat penetration value.
- Use the 'x%' notetag variant to determine a percentile penetration value.
If you want to do something a bit simpler, following the advice to try and do it without plugins, you have a couple of options, depending on what you want.

You can apply a DEF debuff and call it something like 'Armor Shatter'. All physical attacks will then do more damage for as many turns as you determine.

You can have an attack which does more damage than normal by changing the damage formula. Then only the person with this skill 'penetrates' the armor. Call it something like 'Armor Negator'. It works like this: (I have used the default damage formula for illustration purposes.)

Default damage formula
a.atk * 4 - b.def * 2

Change the last part to give the extra damage you want e.g.
a.atk*4 - b.def

If you want armour to be completly negated then it would be
a.atk*4
I agree wholeheartedly with ATT_Turan here, you should really start small, plan, and figure out what your project needs before going into plugins. In your specific case, for example, and I mean no disrespect, but the armor piercing attribute and how to use it is clearly explained within the Battle Core plugin introduction.

As well, as ATT_Turan said, I'm pretty certain the attribute itself does nothing unless you establish an armor system in your game using the Armor Reduction notetag.

That being said, I don't want to make an ass of myself, so perhaps you just missed the details on it while you were reading through the plugin information, and so I will direct you to the right location:

Within the Battle Core, here is an outline of how the built-in Armor Penetration stat works:

<Armor Penetration: x>
<Armor Penetration: x%>
- Used for: Actor, Class, Skill, Item, Weapon, Armor, Enemy, State Notetags
- If used on skills and/or items, sets the current skill/item's armor
penetration properties to 'x' and/or 'x%'.
- If used on trait objects, adds 'x' and/or 'x%' armor penetration
properties when calculating a target's armor.
- This applies to physical attacks.
- Use the 'x' notetag variant to determine a flat penetration value.
- Use the 'x%' notetag variant to determine a percentile penetration value.
I tried but it didn't work,I write it in the notetag but nothing happened.
<Armor Penetration: 100> <Armor Reduction: 100>
I tried the notetag, but it didn't work,I write it in the notetag but nothing happened. What's the problem?
<Armor Penetration: 100> <Armor Reduction: 100>
_20231113015636.jpg
_20231113015659.jpg
In MZ you can also assign another skill for attack, that's how I did it. So my weapons that ignore DEF I just took DEF out of the damage formula completely, and assigned those weapons that attack skill.

Granted that only works for base attack and not skills, but that is all I wanted.
Welcome!


My personal advice: this is not a great path for two reasons.

1 - If you're a rookie, you shouldn't be using any plugins. You should do tutorials and become competent on making things in MZ, learning the event system, understand how default battle works.

2 - Even advanced users aren't going to dump a full set of plugins into their project. You add an individual plugin when you have the need for the features it offers - reading through its instructions and configuring its plugin parameters as you do so.

Number 2 is especially notable with the VisuStella suite, as the plugins tend to be massive with a ton of features. We see a lot of help threads around here from people who are having a problem with their game and it's because they didn't read the instructions/parameters of a plugin they added, so they didn't realize that's a feature.

So with all that said...what is armor-piercing? By default, there's no such thing as armor. You only have the parameters you reference in your damage formula, so typically it's ATK vs. DEF. Thus, "armor-piercing" would simply mean that weapon has a higher ATK than other stuff at its level.

If you're doing something more complex with your damage formulae or using a plugin that adds some kind of armor system, you'll need to tell us that.

As far as the vampire, that's a pretty easy one. Use a VisuStella Battle Core notetag on your weapon:
Code:
<JS Post-Damage as User>
if (this.isPhysical() && this.isDamage())
{
    user.gainHp(Math.round(value/2));
    user.startDamagePopup();
}
</JS Post-Damage as User>

That will cause all physical attacks to heal the user for half of the damage dealt. Adjust the math however you like.
Thank you very much for your advice. But I really want to make some interesting equipment because it's a big part of my game. It would be best if it could be implemented as a plug-in
After a few tries I found that <Armor Penetration: 100> really worked!Although I don't know what went wrong in the beginning....
Glad you got it working 🙂. As far as I can tell, you wrote the notetag correctly for the Armor Reduction stat to function. That being said, I would guess your Damage Style is probably not setup to function with the Armor Reduction notetag, this being your first foray into the plugin. Go check that out within the plugin parameters and choose (or code your own) damage style to fit within the context of the plugin.

However, I also notice the notetag is placed on a weapon.

While the documentation indicates that the Armor Reduction notetag should function on weapons, it is possible you have run into an error in the documentation, as logically having Armor Reduction on a Sword doesn't make sense, and may not actually function that way in the code.

If you run into this bug in more cases and can repeat it reliably, you may want to send that over to Visustella and see if they will make an update to the Battle Core. They are generally very responsive with bugfixes, from my personal experience using their products.
While the documentation indicates that the Armor Reduction notetag should function on weapons, it is possible you have run into an error in the documentation, as logically having Armor Reduction on a Sword doesn't make sense, and may not actually function that way in the code.
In MZ's engine, there is no difference between Armor and Weapons except which equip slots are referenced for things like determining the weapon animation to show when attacking. And the VisuStella documentation makes a point of saying the notetag works on all trait objects (that is, anything you can put a trait on in the database, such as Weapons) - so why, code-wise, wouldn't it function?

As far as logical, how isn't it logical to have a huge sword, overly heavy hammer, or sniper rifle that you can't move while aiming - any of which reduces your ability to defend yourself while wielding it?
In MZ's engine, there is no difference between Armor and Weapons except which equip slots are referenced for things like determining the weapon animation to show when attacking. And the VisuStella documentation makes a point of saying the notetag works on all trait objects (that is, anything you can put a trait on in the database, such as Weapons) - so why, code-wise, wouldn't it function?

As far as logical, how isn't it logical to have a huge sword, overly heavy hammer, or sniper rifle that you can't move while aiming - any of which reduces your ability to defend yourself while wielding it?
Regardless of how it is referenced in MZ, there are Visustella parameters that will work with armor but not weapons. For example, in the battle core, various life steal related notetags do not work with weapon category items, only armor. It specifically omits weapon compatibility in the documentation and you can test it yourself, I have and they do not function on weapons. As far as the code goes I couldn't tell you why it functions like this, as we know the code is obfuscated. Therefore, it is entirely possible there is a bug in the code preventing armor reduction from working properly on weapon category equipment. That being said, see my next paragraph 🙂.

As far as the armor reduction notetag goes, I may be misunderstanding how it works. It is not clearly explained what the notetag actually does until you scroll down to the action sequence mechanics section of the plugin.

From reading just the notetag section I assumed armor reduction meant the amount of damage taken reduced by equipping that gear, but looks like it actually means it reduces your own armor and I stand corrected.

Entirely possible the OP is misunderstanding what armor reduction is meant to do here as well, which is why he thinks it does not work.

Note: If armor reduction and armor penetration both deal with lowering a calculated armor efficacy, how does one even assign an armor value to an piece of equipment? As far as I can tell there is no notetag to simply assign an armor value to something, and instead the code for a damage style just builds its own assessment of what the armor of a character should be based on their stats?

I suppose this is a question for another thread though.

In terms of what is logical, however, why would wielding a 2 handed weapon reduce a characters armor? Choosing a sword over dagger does not make plate armor less effective in terms of the protection it would provide, it is still the same plate armor. What you're referring to is one's defensive ability, as in wielding a sniper rifle that slows you down would make you less able to avoid an incoming strike.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-up-equipment-with-special-attributes-such-as-armor-piercing-and-vampire-in-the-mz.162447/