RPG Maker MV
Jatampei 8 ABR 2018 a las 5:08
nullify damage state with remove by damage?
Is there any way to "remove state by damage" after taking 0 damage? I'm trying to add a 'force field' state, where the user will not take damage from the next attack only. I've managed to reduce the damage taken to 0, but then the state will not be removed.
Reducing the minimum damage to 1 would solve this problem, but it would make the state pointless as 1 point of damage is still relevant as I'm using very low numbers.
Publicado originalmente por Caethyril:
There may be an easier way, but you could do this with a plugin like Yanfly's Buffs & States Core[yanfly.moe], which offers various notetags for states such as Custom React Effect, e.g:
<Custom React Effect> if (!this.isRecover() && value >= 0) { value = 0; defender.removeState(state.id); } </Custom React Effect>
This will process when a battler with the state is hit. The value variable is the damage of the incoming action (negative for healing), and the isRecover() bit checks to see if it's a healing action. Feel free to remove one (or both) of the conditions if you like. =)
< >
Mostrando 1-2 de 2 comentarios
El autor de este hilo ha indicado que este mensaje responde al tema original.
Caethyril 8 ABR 2018 a las 5:49 
There may be an easier way, but you could do this with a plugin like Yanfly's Buffs & States Core[yanfly.moe], which offers various notetags for states such as Custom React Effect, e.g:
<Custom React Effect> if (!this.isRecover() && value >= 0) { value = 0; defender.removeState(state.id); } </Custom React Effect>
This will process when a battler with the state is hit. The value variable is the damage of the incoming action (negative for healing), and the isRecover() bit checks to see if it's a healing action. Feel free to remove one (or both) of the conditions if you like. =)
Jatampei 9 ABR 2018 a las 14:29 
It works perfectly. Thanks.
< >
Mostrando 1-2 de 2 comentarios
Por página: 1530 50

Publicado el: 8 ABR 2018 a las 5:08
Mensajes: 2