- Joined
- Jul 2, 2017
- Messages
- 118
- Reaction score
- 4
- First Language
- german
- Primarily Uses
- RMMV
Ok this sounds kinda weird. I hope I can describe my problem as clear as possible.
I have a Spell: it's a fire shield. where the enemy gets damage when he attacks. I managed to implement it with a state, where the damage calculation is located.
Now my problem is there is a another spell which creates a state that protects enemies from physical hits. The state vanishes when the caster gets any kind of damage, this is implemented by the RPG-Maker MV standard function, which is applied for the example of the "sleeping" state as well.
There is one enemy in my game that uses the spell. A way to deal with him would be that you let him attack your fire shield. Now the problem is for some reason, the state won't go away although he takes damage. I assume it doesn't work when the enemy gets damage in his own turn at least it looks like that it doesn't count as "hit". Otherwise this works fine.
So what can I do now? I thought about removing the state of the enemy on the same site where the damage calculation for the fire shield state is located. This is made by a YanFly Plug-in: check this out for example:
www.yanfly.moe
I modified it but, I can't apply the remove state effect for some reason. How should it go? I can't use the same commands that I usually put in damage formulas, right?
Would be thankful for any help here.
I have a Spell: it's a fire shield. where the enemy gets damage when he attacks. I managed to implement it with a state, where the damage calculation is located.
Now my problem is there is a another spell which creates a state that protects enemies from physical hits. The state vanishes when the caster gets any kind of damage, this is implemented by the RPG-Maker MV standard function, which is applied for the example of the "sleeping" state as well.
There is one enemy in my game that uses the spell. A way to deal with him would be that you let him attack your fire shield. Now the problem is for some reason, the state won't go away although he takes damage. I assume it doesn't work when the enemy gets damage in his own turn at least it looks like that it doesn't count as "hit". Otherwise this works fine.
So what can I do now? I thought about removing the state of the enemy on the same site where the damage calculation for the fire shield state is located. This is made by a YanFly Plug-in: check this out for example:
Thornmail (MV Plugin Tips & Tricks) - Yanfly.moe Wiki
I modified it but, I can't apply the remove state effect for some reason. How should it go? I can't use the same commands that I usually put in damage formulas, right?
Would be thankful for any help here.
