spell that changes the battle background for a number of turns

As in the title, I was trying to create a skill that sets a different battle background. I put a common event to do that in the skill effects, but it doesnt work. Guess I'm doing something wrong. Plus I dont know how to set the limit of turns. Can someone help?
The change battleback event command doesn't do anything in battle. If you Google it, you can find plugins that will make that work.

Or you can program the skill with Yanfly's Action Sequences, there are commands to manipulate the battleback there.

As far as the timing, just have the skill set a variable? Then you have a troop event run every round, see if the variable is 0, and revert the battleback; otherwise, decrement the variable.

Or you could put a state on the actor that used the skill and use Yanfly's Buffs & States Core to run code when the state expires to revert the battleback.

Original thread: https://forums.rpgmakerweb.com/threads/spell-that-changes-the-battle-background-for-a-number-of-turns.163487/