Hi, everyone! As part of his tips & tricks series, Yanfly shared a piece of code to replicate the toxic effect from Pokemon. Every turn, the toxic deals more damage to the afflicted.
I would like toxic to be a short status effect of two turns that will keep increasing in damage if reapplied before it expires. In its current form however, the toxic counter is reset to 1 every time the state is reapplied, meaning that is not possible. I tried tinkering with it some, but really falter as this is not my field of expertise. Would anyone know how to accomplish this? Thank you!
Here the code for the regular toxic in question:
I would like toxic to be a short status effect of two turns that will keep increasing in damage if reapplied before it expires. In its current form however, the toxic counter is reset to 1 every time the state is reapplied, meaning that is not possible. I tried tinkering with it some, but really falter as this is not my field of expertise. Would anyone know how to accomplish this? Thank you!
Here the code for the regular toxic in question: