I'm trying to create an elemental debuff system in RPGMaker XP but it's proving to be difficult. Sorry for the wall of text.
Our example element will be fire. Using "states," you can create resistances to various elements. It is easy to create a spell that gives a player the "fire resistance" state, reducing all incoming fire damage by 50%. However, I can't figure out how to do the opposite.
I would like to create a spell that would increase fire damage taken by 50%. When creating enemies, you can set their "Elemental Efficiency" which adjusts how much damage they take from various elements. However, you can't adjust this in combat as there is no command for it.
--------------------
I have a theory how this could work: create a state called Fire Debuff, and create a spell that applies the Fire Debuff. Make every fire spell trigger a common event that does a condition branch and checks if the enemy has the fire debuff on. We could store the damage done in a variable, then multiply the variable times 2 and do a force damage command using that variable. Everything should work, the only problem is storing the damage in a variable.
The ultimate goal is to mix elements. A person with a fire debuff would take fire damage normally, but would be weaker against water elements. It would be the same for a lightning debuff and taking extra damage from earth spells (if they were opposites in your game). If each character mastered different elements, they would have to combo their spells and manipulate the debuffs and elemental strengths to maximize damage.
Does anyone have any ideas on how to make this happen? Thank you in advance for any help or even just taking the time to read this.