Parlu10

Veteran
Veteran
Joined
Jul 30, 2018
Messages
49
Reaction score
8
First Language
Italian
Primarily Uses
RMMV
Hi everyone,
I was wondering if it's possible to make a skill that can bypass buffs and debuffs applied on the target.
Thanks in advance for your help
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,759
Reaction score
2,108
First Language
EN
Primarily Uses
RMMZ
There are several relevant functions:
  • paramBase(paramId)
    This gets the base value, ignoring all additive and multiplicative adjustments.
  • paramPlus(paramId)
    This gets the additive adjustment, from permanent bonuses and equipment.
  • paramRate(paramId)
    This gets the multiplicative rate from active traits.
  • paramBuffRate(paramId)
    This gets the multiplicative rate due to any active (de)buffs.
paramId is an integer indicating which parameter to check. 0 = MHP, 1 = MMP, 2 = ATK, etc. Typically these functions' results are all combined to yield the final value, but you could construct your own formula to omit one or more stages. :kaopride:

Couple of skill formula examples:
  1. a.atk * 4 - b.paramBase(3) * 2
    Like the default Attack formula, except it only considers the base value of the target's DEF.
  2. a.mat - (b.paramBase(5) + b.paramPlus(5)) * b.paramRate(5)
    Subtracts the target's "MDF without buffs" from the defender's MAT.
 

Parlu10

Veteran
Veteran
Joined
Jul 30, 2018
Messages
49
Reaction score
8
First Language
Italian
Primarily Uses
RMMV
Thanks for the reply, you couldn't have been more precise!
 

Latest Threads

Latest Profile Posts

 …I think I might need to switch from standard ATK/DEF up/down buffs to parameter altering states. I just had an actor whose usual attack against an enemy does ~25 do a buffed attack against a debuffed enemy for ~600…
just saw that titan quest is free on steam until the 23rd
Zombie status is now complete. I didn't have to do much in the way of changing how healing is applied to undead targets, was just a simple 3 line code. I thought I had to overhaul Game_Action lol. Everything else was doable by events. So.. Zombie: You turn undead. Your element changes to darkness. You're weak to light, you're strong to physical attacks and healing hurts you and revival items will kill you.
My Overworld might be a mix of inspiration from 2D Final Fantasy games, Breath of Fire, Battlechasers: Nightwar, Super Mario World, and Pillars of Eternity. If I can make it more in-depth than just walking from point A to point B, that might do a lot for the gameplay experience. Hmm...

Forum statistics

Threads
115,223
Messages
1,088,198
Members
149,813
Latest member
Mudge
Top