Help with elemental type damage

For some reason I have had the toughest time wrapping my head around states when dealing with how they're actually used in game.

The idea is setting a base damage resist/weakness.

Example 1: skeleton resists piercing damage but vulnerable to blunt damage. No change for slashing damage.

Dagger is set to piercing damage. Skeleton has a state that shows 75% for piercing.

If the character does 100dmg normally, I want them to only do 75dmg if a piecing weapon is used.

All the tuts I have watched don't seem to address this. I am sure it's much simpler than I am making it.

Any help would be much appreciated 🙂
Set Pierce as an element in Types, and then go to Enemies and select the Skeleton. In Traits, select Element Rate and set it to 75% (for this case).
For other cases, you can do the math XD
When I get home I will goof with this.

Thanks for the fast reply.
If you're setting element damage, it needs to be done with the Features of the enemies. You can set up resistances and weaknesses to element types via the Features.

States is meant to be things like Poison, Burn, Health Regen, etcetera.
Here's what I have. Under this setup everything should work fine then?

I have Piercing defined under Elements on the Types tab.

I have the Pierce Element Rate set to 75% on my Skeleton under Traits.

I have my Dagger that shows both Attack Element: Pierce. ( I removed Attack Element: Physical after I took the screen shot. )

If the skeleton is attacked by a weapon/skill set to Attack Element: Pierce, it should only take 75% of the damage.

Final question: Will this work with a standard damage formula on a skill? (i.e. a.atk * 4 - b.def * 2)
It will, but you'll need to use a different formula for it
I can't at the moment see why you would need a different formula in order to ensure that resistances/weaknesses work correctly. Remember that although the skeleton resists Pierce, another enemy might be weak to it, and a third neither weak nor resistant, and you can't have a different formula for every enemy. That is why you change the stats of the individual enemy, to take account of those differences.
I was hoping that the above mentioned wouldn't require any additional formulas to work out of the box on it's most basic level. Seems like I am all set to go!

Thanks everyone!
Oh, sorry. I'm using a formula for when a weakness is hit, it gives the enemy a state. Must've mixed it up in my head XD.
If you want to test whether resistances work the way you want, create a weapon that does exactly 101 damage with 0% variance. Make a monster that has 100 HP and only 1 Defense. You already have the Pierce element type on the dagger and Pierce 75% on the skeleton.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-elemental-type-damage.78924/