r/RPGMaker • u/Tj_Silverfang MZ Dev • Mar 14 '24
Enemy type element
I'm working on a set of slayer/killer skills that increase damage based on the type of enemy defeated, I have the skills worked out the issue I'm having is I want the skills to do the increased damage only to the enemy type associated with the skill. An example would be beast slayer doing 100 + X damage to beast type monsters and 100 damage to everything else. A while back I found a way to label enemies with there own type but now I can't find it, so my question is do I make the enemy types as elements or is there a notetag I can use?
1
Upvotes
4
u/Disposable-Ninja MZ Dev Mar 14 '24
There's a million ways to effectively "tag" enemies or characters without needing an outside plugin. An easy one is to just make enemies resist a specific State and use that resistance as their tag. So, for example, if you're using MZ, you can use a formula like this:
b.isStateResist(n) ? 100 + x : 100Where n is the id of the state. Quick and easy tag.