Field State Effects don't work

I need to change the battle background in the middle of a battle, so I tried using Yanfly's Field State Effects script, but even after following every step, it still doesn't work. Can anyone help me with this?
https://rpgmaker.net/scripts/160/

1646750439330.png
1646750545318.png
I need to change the battle background in the middle of a battle, so I tried using Yanfly's Field State Effects script, but even after following every step, it still doesn't work. Can anyone help me with this?
https://rpgmaker.net/scripts/160/

View attachment 218861View attachment 218862
Is state 38 the one with the highest priority?
there is another way, but unfortunately I don't remember the correct script command. it had been posted on this forum, but VXA is too long in the past to remember it.

Basically the problem with the event command "change battleback" is that it changes the map property for that, and the battlescreen doesn't update its info during battle.
However there is a command to force the battlescreen to update.

you would have to use a sequence of change battleback event command and then the script command during battle to change the background.
that worked in the past, but I don't remember how the script command was spelled.
there is another way, but unfortunately I don't remember the correct script command. it had been posted on this forum, but VXA is too long in the past to remember it.

Basically the problem with the event command "change battleback" is that it changes the map property for that, and the battlescreen doesn't update its info during battle.
However there is a command to force the battlescreen to update.

you would have to use a sequence of change battleback event command and then the script command during battle to change the background.
that worked in the past, but I don't remember how the script command was spelled.
The notetag added by the script is supposed to change it in accordance with the field state tags, though; OP isn't using the event command for this. The only thing I can think of is that they have another active state with higher priority, since that will interfere with the conditions for it.
The notetag added by the script is supposed to change it in accordance with the field state tags, though; OP isn't using the event command for this. The only thing I can think of is that they have another active state with higher priority, since that will interfere with the conditions for it.
Actually, the state priority is 100 and I can't make it higher, so there shouldn't be anything higher than that...
Actually, the state priority is 100 and I can't make it higher, so there shouldn't be anything higher than that...
And you don't have any other priority-100 states active?
And you don't have any other priority-100 states active?
Yeah, I have just checked and "defeated" was 100 too, but even tho I just lowered it and the battleback changed... it doesn't work twice. I want to change it twice in a battle and it doesn't seem like I can even do that more than once in the whole game, because the state must have the highest priority and that means that I can't have more than one field state, and so I can't have more than 1 battleback to change to
theoretically you can have more than one such state - but then you have to be very careful about the order, because you can only change from a lower priority to a higher one.

if that is not possible, you might have to search for the way I described above.
and please answer a question:
what do you want to trigger the change of the background? skill use or troop event or when HP fall to a certain amount or what?
there might be other ways depending on that.
theoretically you can have more than one such state - but then you have to be very careful about the order, because you can only change from a lower priority to a higher one.

if that is not possible, you might have to search for the way I described above.
and please answer a question:
what do you want to trigger the change of the background? skill use or troop event or when HP fall to a certain amount or what?
there might be other ways depending on that.
Im doing it so when the enemy reaches a certain HP number, it makes it use the skill that triggers the field state. It works the first time, but then after another amount of HP, it should do it again with a second skill that triggers a second field state with another battleback. Gotta check if what you said works or not.
theoretically you can have more than one such state - but then you have to be very careful about the order, because you can only change from a lower priority to a higher one.

if that is not possible, you might have to search for the way I described above.
and please answer a question:
what do you want to trigger the change of the background? skill use or troop event or when HP fall to a certain amount or what?
there might be other ways depending on that.
IT WORKED
I'm so stupid lmao, thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/field-state-effects-dont-work.145547/