the game that I'm making has a very heavy emphasis on element rates for its combat system and I've been looking for a way to allow skills to ignore enemy element rate. I've found a script for MV, but it seems no such thing exists for VXA. basically, I want it to work in the same way that pierce in SMT works or something like the type bulldozer ability in pokemon super mystery dungeon where you can ignore resistances, but weaknesses still apply. the closest I've got is making a separate element for the pierce element and have enemies be weak to the same thing but not resist it but the problem with that is if you use a pierce move on an enemy who has a resistance to the regular version of the element then that element doesn't show up as a resistance on the analysis screen so you can't use it to safely check for weaknesses
element pierce mechanic/ignore element rate? (VXA)
RPG Maker VXAce SupportThe easiest solution I can think of would be that of making the skill of a different element, then check its intended element weakness directly in the damage formula.
Something along these lines, although I am not 100% sure about the syntax since I am going by heart here.
Ruby:
r = your_dmg_formula; m = b.element_rate[your_element_id]; m > 1 ? m*r : r
# or, a shorter version
(your_dmg_formula) * [1, b.element_rate[your_element_id]].max
Something along these lines, although I am not 100% sure about the syntax since I am going by heart here.
so what if the target absorbs or reflects the element using yanfly's element absorb/reflect scripts? does this still apply to that case?
If that is the case and you implement this solution, it will definitely not work, since the script is not able to reflect anything that is not of the declared element. I have never used the Yanfly's scripts that you mentioned, so my answer here needs some testing, but another option could be to divide damage by the target's resistance (see below).
This is an inversion of paradigm compared to the previous one: if the target is weak to that element, you deal normal damage and let the element weakness apply, if it is resistant to it, you deal increased damage to compensate for its resistance.
I have no clue on how the script will react when absorbing or reflecting it, though. It is possible that absorption and reflection are handled prior to element resistance/weakness calculation, leading to unwanted behaviour (which is exactly why I am saying you should test it).
Ruby:
r = your_dmg_formula; m = b.element_rate[your_element_id]; m > 1 ? r : r/m
This is an inversion of paradigm compared to the previous one: if the target is weak to that element, you deal normal damage and let the element weakness apply, if it is resistant to it, you deal increased damage to compensate for its resistance.
I have no clue on how the script will react when absorbing or reflecting it, though. It is possible that absorption and reflection are handled prior to element resistance/weakness calculation, leading to unwanted behaviour (which is exactly why I am saying you should test it).
Original thread: https://forums.rpgmakerweb.com/threads/element-pierce-mechanic-ignore-element-rate-vxa.169074/