Topic: Elemental defense debuff code (Read 134 times)

  • Group: Member
  • Joined: Sep 10, 2003
  • Posts: 9
I'm trying to create an elemental debuff system in RPGMaker XP but it's proving to be difficult (or it's late and I'm tired/stupid).

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'm sure there must be a simple solution!
  • Group: Member
  • Joined: Sep 10, 2003
  • Posts: 9
I came up with a theory (since no one else did :P)

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. If 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.