You don't need notetags to add elements to a weapon.
There is a trait that gives attack elements. By giving a fire and a slash attack elements to a weapon it should work.
If you want something more advanced where elements, weapon, skill and item types matter you should try ICF-Soft Elements Core and ICF-Soft Main Utility.
I can help you with them.
Well. You need both plugins on latest versions. Main Utility should be before Elements Core.
My Element Core plugin uses a revolutionary formula where all is combined and gives tactical depth. It's a bit complex but it can make players think much more about how to attack enemies.
There are rules for physical, magic and dual.
When attacking with a fire sword you use fire element and sword type. You need tag <WEAPON RESISTANCES: x rate, x rate> to add weapon resistances.
I'm against additive multi-element rate rule (three 50% resistances result into a 50% absorbtion), so I don't have this in my plugin, but it has a very good alternative.
If you still want that rule with Yanfly's plugin, ensure that Multi-Element Rulings parameter is equal to 1.
so if the sword has the tag <WEAPON ELEMENTS: 1, 4> 1 being slash other being fire, <WEAPON RESISTANCES: x rate, x rate> does what? and x rate is? i have both plugins now and in order
That sword wouldn't have any tag, just sword weaponType (2) and fire attacking element trait (2).
Enemy would need <WEAPON RESISTANCES: 2 0.5> to resist sword or <WEAPON RESISTANCES: 2 0.5, 4 1.5> to resist sword and being weak to axes.
<WEAPON ELEMENTS: 1, 4> will make an enemy or an unarmed actor to attack as having a dagger and an axe.
There are notetags for elements, weapontypes, skilltypes and item-damage.
It makes a final element rate, final weapon rate, skill rate and item rate; then it mixes to calculate rate.
When there are more than one element it calculate final element rate based on Blend mode rule, same for weapons. Skill and item types doesn't need to be calculated because there can be only one type at same time.
Returning to fire sword to an enemy that has 50% fire rate and 50% sword rate it will still result into a 50% damage in this case. It's not a 0 damage but I think it seems better and can give more depth.
that code worked thanks 😀
I don't know if there is that tag.
Try:
<Before Eval>
this._formerItemSuccessRateMS = this.item().successRate;
if (target.hp / target.mhp > 0.2) {
this.item().successRate = 0;
}
</Before Eval>
<After Eval>
this.item().successRate = this._formerItemSuccessRateMS;
</After Eval>
This will make skill fail if target has more than 20% hp.