Heyho!
I'd like to create some kind of burning enemy, that when it gets hit by wind or water stops burning and loses some of it's powers, but gains this state again, when it gets hit by fire. Also I'd like to play an animation upon adding/removing this states and change the battler image.
I figured to use Yanfly's Buffs & States Core & AutoPassive States.
Here's what I came up with so far:
Burning State
This is the enemies Passive State.
When it get's hit by wind or water, while in this state it will be removed, the "Not Burning" state will be added, an animation will play and the enemy will change it's appearance.
Not Burning State
When the enemy get's hit by fire while in this state, this state will be removed, the "Burning" State will be added again, an animation will play and the enemy will change it's appearance.
I started with this code for the Burning State notetag, just to try out if I can remove the state, but it doesn't even work and I couldn't figure out why yet.
Burning State ID: 55
Not Burning State ID: 56
Wind Element ID: 6
Water Element ID: 4
Since I failed this early in the process I decided to ask for help rather than spending days trying to make all the other things work, that are still to be done to complete these states.
Thanks ~
I'd like to create some kind of burning enemy, that when it gets hit by wind or water stops burning and loses some of it's powers, but gains this state again, when it gets hit by fire. Also I'd like to play an animation upon adding/removing this states and change the battler image.
I figured to use Yanfly's Buffs & States Core & AutoPassive States.
Here's what I came up with so far:
Burning State
This is the enemies Passive State.
When it get's hit by wind or water, while in this state it will be removed, the "Not Burning" state will be added, an animation will play and the enemy will change it's appearance.
Not Burning State
When the enemy get's hit by fire while in this state, this state will be removed, the "Burning" State will be added again, an animation will play and the enemy will change it's appearance.
I started with this code for the Burning State notetag, just to try out if I can remove the state, but it doesn't even work and I couldn't figure out why yet.
<Custom Respond Effect>
var wind = 6;
if (this.item().damage.elementId === wind) {
var stateId = 55;
target.removeState(stateId);
}
</Custom Respond Effect>
Burning State ID: 55
Not Burning State ID: 56
Wind Element ID: 6
Water Element ID: 4
Since I failed this early in the process I decided to ask for help rather than spending days trying to make all the other things work, that are still to be done to complete these states.
Thanks ~