How would someone go about making a combat skill work differently depending on the enemy's status effects? For an example: say an attack would normally would just do damage unless an enemy had a specific state, then the attack would add an extra debuff or something of that sort. Is there any way I can do that? If so, let me know.
How do I make a combat skill work differently depending on the enemy's status effect?
RPG Maker MV Supportthere are multiple ways, each having their own advantages and limitations.
as such it depends on what you want the different effects to be before we can tell you if you have to use a common event, or damage formula coding, or action sequence coding or multiple effects etc.
as such it depends on what you want the different effects to be before we can tell you if you have to use a common event, or damage formula coding, or action sequence coding or multiple effects etc.
plugins and coding.
All I'm trying to have this do is more damage and add another state
This can be done using damage formulas, if you want to go that route. Skunk has some helpful examples, including adding a state on the condition that an enemy has a different state. https://forums.rpgmakerweb.com/index.php?threads/damage-formulas-101.81905/
Edit: As it happens, someone asked this exact question today and got an answer, vis a vis damage fomulas. https://forums.rpgmakerweb.com/inde...ion-and-multiple-results.149729/#post-1289548
Here is Jeivalien's formula:
if(b.isStateAffected(x)){ b.addState(x); <formula>} else{ <formula>;}
Edit: As it happens, someone asked this exact question today and got an answer, vis a vis damage fomulas. https://forums.rpgmakerweb.com/inde...ion-and-multiple-results.149729/#post-1289548
Here is Jeivalien's formula:
if(b.isStateAffected(x)){ b.addState(x); <formula>} else{ <formula>;}
Thank you!
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-combat-skill-work-differently-depending-on-the-enemys-status-effect.149723/