Change the name inside $game_temp.battleback_name to the battleback you want. Store the previous battleback in another variable before making the change, and make a Call Script assigning the new battleback name.
#for example...
$game_temp.battleback_name = "001-Grassland01"
# This is instant, the battleback will change
# at the same time you change the name
Or you can do better than that... Copy and paste this into any script below Game_Temp:
class Game_Temp
def change_battleback(name=nil)
if name != nil
@last_battleback = @battleback_name
@battleback_name = name
else
if @last_battleback != nil
@battleback_name = @last_battleback
end
end
end
end
Call this method passing the new battleback name and it will apply the change. If you want to get back to the previous battleback, just call it without passing nothing. Look:
# Changing battleback (actually 001-Grassland01)
$game_temp.change_battleback("002-Woods01")
# Changing to the previous (actually 002-Woods01)
$game_temp.change_battleback
# Now it?s 001-Grassland01 againYou can make as i did to test it, make a battle event calling this, and you?ll see that the changes are instant. You can trigger it via switchs maybe... I triggered it with turns elapsed.
Is that what you want?