Just as title says.
How to set Battle Background to change depending on region ID without plugins
RPG Maker MZ SupportYou can't.
If you don't specify a battleback in the map properties, and it's a World Type tileset, it will automatically choose a battleback by the tile index; but you can't choose that, and it's not by Region ID.
If you're using event commands to manually do Battle Processing, you can first use the event command to Change Battle Back.
But there's no way to make random encounters use a battleback determined by Region ID without using JavaScript.
If you don't specify a battleback in the map properties, and it's a World Type tileset, it will automatically choose a battleback by the tile index; but you can't choose that, and it's not by Region ID.
If you're using event commands to manually do Battle Processing, you can first use the event command to Change Battle Back.
But there's no way to make random encounters use a battleback determined by Region ID without using JavaScript.
Well, technically you could use the Change Battle Background event command. But then you would need to set up appropriate triggers for that, e.g. a Parallel event like:
A suitable plugin would be more efficient.
◆Comment:Get player's region ID.
◆Get Location Info:Region Check, Region ID, Player
◆Comment:Set battle background based on that.
◆If:Region Check = 1
◆Change Battle Background:Castle1 & Castle1
◆
:Else
◆If:Region Check = 2
◆Change Battle Background:Grassland & Castle1
◆
:Else
◆Change Battle Background:Lava2 & Smoke
◆
:End
◆
:End
◆Comment:Wait a few frames before checking again.
◆Wait:6 framesA suitable plugin would be more efficient.
Good point, @caethyril, I wasn't thinking about a method unrelated to entering battle.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-battle-background-to-change-depending-on-region-id-without-plugins.165789/