Hello. So right now in my game I have certain skills that have special effects when used against certain enemies. The first example is undead enemies, which I've marked as such with a passive state using Yanfly's passive states plugin. I have two skills called "Smite" and "Purge" which are supposed to instantly kill any enemies that are undead, IE inflicted with the undead passive state with the only difference being that "smite" only targets one enemy while "purge" targets all enemies. While the skills can instantly kill any undead enemies inflicted with the passive state, if used against any other type of enemy the skill will fail. The other examples are skills like "Aerial Slam," "Air Braver," and "Suplex" which are meant to do extra damage against flying enemies, once again indicated with passive state. How do I do these two things? I assume it's done in engine with java, but I don't know java or how MV works with it. Can someone please help me out? Thanks.
How to make skills have extra effects when the target is inflicted with a certain state
RPG Maker MV Supportdamage formula
b.isStateAffected(X) ? formulaA : formulaB
change everything in bold.
for the smite/purge formulaA can be b.die()
www.rpgmakercentral.com
b.isStateAffected(X) ? formulaA : formulaB
change everything in bold.
for the smite/purge formulaA can be b.die()
Damage Formulas 101 (MV Edition)
Damage Formulas 101 MV Edition You probably wondered how to make a skill do more damage against enemies with a state, or heal more if player has a state, or deal exactly half of enemys HP. And so on. All of that and more can be done through custom damage formula. Basics: Type - sets what does the...
In most Cases , using the Battleformula, like tiamat showed, should do the job..
If you want to make some skills only work under some requirements, or only be shown in some cases, you could also use yeps SkillCore
www.yanfly.moe
If you want to make some skills only work under some requirements, or only be shown in some cases, you could also use yeps SkillCore
Skill Core (YEP) - Yanfly.moe Wiki
Thanks for the help! It's all fixed now. Thank you so much.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-skills-have-extra-effects-when-the-target-is-inflicted-with-a-certain-state.130286/