Change Battleback Not Working?

The "Change Battleback" command simply does not run for some reason, I have double checked everything and can't figure out why it isn't working...


EDIT: Another stupid blunder by me. I was trying to change the battleback mid fight, I have now downloaded a script that allows me to do so.
as you realised that command changes the map property and by default does not work in battle.
however there is no need for a full script, a script command to refresh the battleback should be enough.

I know it works that way but unfortunately I don't remember the exact command that is needed in that moment. Just keep this alternative in mind if you ever find compatibility problems with the script you're currently using.
as you realised that command changes the map property and by default does not work in battle.
however there is no need for a full script, a script command to refresh the battleback should be enough.

I know it works that way but unfortunately I don't remember the exact command that is needed in that moment. Just keep this alternative in mind if you ever find compatibility problems with the script you're currently using.
In a stroke of genius, I used an MV script instead of a VXACE one. if you ever remember the script command needed that would be great, you'll have to really spell it out for me because I don't know anything about commands other than copy and pasting them.
if you ever remember the script command needed that would be great,
Change battleback during battle
This command doesn't work for me, it just gives this error: Undefined method 'refresh battleback'
I made sure to test it from the map and not the troop menu, so i'm a little confused.
it just gives this error:
have you read on in the linked toipic? Because exactly that error was discussed there later and alternatives were posted...
alternatives were posted...
The script, and other Commands either did not work or returned an error
The script, and other Commands either did not work or returned an error
I ended up finding a working solution posted by the other guy, thank you!

---

#Posted 12 February 2012 - 03:23 AM

#Here try this:


class Game_Interpreter

alias_method :command_283_orig_kal, :command_283
def command_283
command_283_orig_kal
if SceneManager.scene.is_a?(Scene_Battle)
scene = SceneManager.scene
scene.spriteset.dispose_battleback1
scene.spriteset.dispose_battleback2
scene.spriteset.create_battleback1
scene.spriteset.create_battleback2
end
end
end

class Scene_Battle
attr_reader :spriteset
end
#The Change Battleback command should work in battles too now.
Moved to: RGSS3 Script Requests

and

Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/change-battleback-not-working.156900/