Elemental damage and ailment?

Hello,

I'am developing a classic RPG in based-turn combat and i am strugling with few problems:

-I can't manage to afflict an ailment (poisoning,bleeding for example) with my character(standard attack) .I used the "chance to inflict" in a weapon attribute and didn't work but the same state(poisonning,bleeding) work perfectly when used with a skill inflicting this state.Any idea what the problem can be?
The final goal is that if the player got a weapon with 100% chance to inflict poison,the poison will be inflicted with standard attack and skills even if the skill initially don't.

-I'am struggling with magical defense.This what i want to do : the term magical defense add défense for 6 "elements"(darkness,light,water,fire,earth,wind) and some item give only def and atk bonus for one of these elements.
But with the engine i only can choose one element per skills (for the monster),so if it use fire element,the player can have 1 million magical defense but take all the damage ?

So is there a way to add fire defense,water defense etc to make my idea possible or make the magical defense absorb all element if i choose one in damage type skill?

Thank for any help or idea close to this ^^
the default part should work, but if you want a bit more advanced and work smoother,
you need some of yanfly plugins and use lunatic code.

you need YEP_BattleEngineCore and YEP_Buff&StteCore to make it work nicely.
you can look through his plugin and see what is usefull.

but for lunatic code, you can search for poison, bleed etc on tips and trick part
so you can do tiny modifications to fit your needs.
Ok thanks, i will see for these ,but for the magical defense part with custom def element,is in this plugins too?
I think if you want to include those, you might a plugin to add custom params,
yanfly might have 1, but there are others that adds params as well.

but I think magic def for default can work unless you want a specific resistance to
the element, that you need yanfly one so it can work nicely together.
Ok i see because yeah the main idea is to have 6 different magical resistances ^^
Thank for your suggestion =)

Original thread: https://forums.rpgmakerweb.com/threads/elemental-damage-and-ailment.121045/