[SOLVED] Customized battleback with numbered zone (RMMZ)

Status
Not open for further replies.

Timmy77

Villager
Member
Joined
Oct 6, 2021
Messages
29
Reaction score
20
First Language
French
Primarily Uses
RMMZ
Hello,

I would like my battleback against encounters to be modified according to the framing, after trying several methods I have not been able to do it properly.

99ccf4e87af8acee8de9c4434ea5be50.png


For example here I can be attacked in zone 2 or zone 1, and I would like a specific battleback in each.

I tried to add "modify battleback" in troop event, but it's not instantaneous, even at the beginning of the fight after one second you see the battleback change, which makes it ugly in game :/

If you have any ideas (without adding plugins if possible) I am interested!

Thanks in advance !
 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,306
Reaction score
8,750
First Language
German
Primarily Uses
RMMV
The event command "change battleback" changes the map property "battleback" and as such this is usually loaded for the next battle, not the current one.

If you have evented battles, you can use that command without problems before the battle processing and the battleback will be changed correctly.
If you use random battles, you have to go one of two possible other ways:

1) change the battleback with a regular event on entering the region ID.
either by a plugin that runs a common event on event ID, or with a parallel process using get location info to detect a change in region ID and react accordingly (place a wait(10) in that parallel process)

2) force a background update on the troop event
you'll need two commands in the troop event in this case, first the one you are already using to change the map property battleback.
and then followed by a script command that forces an update on the battleback to load it with the new setting.
this script command exists, but I don't have the reference ready and can't tell you how it is for MZ
 

Timmy77

Villager
Member
Joined
Oct 6, 2021
Messages
29
Reaction score
20
First Language
French
Primarily Uses
RMMZ
Thanks to your help I succeeded, here is how I did it (my game is in French so I translated on the screen) :)

7b3417e0e2663821295e8a7264f583ab.png
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
9,115
Reaction score
5,968
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I'm just so close to replacing LUK with a different stat, maybe DEX but we'll see.
Slapped together a title screen and working on some dungeon clutter + portraits for Dubhghaill and Einar. Usual CW for minor body horror wrt Einar
QVLJIgD.png

OaPcYUy.png

r55FiUJ.png

EIgO94y.png
cT1V4nb.png
>studying for months for an exam
>does exam
>waits 3 months for the results to come out
>me trying to login, incorrect password
>I get recovery password
>me trying to login, incorrect password

What the heck. As a son of a Karen, I'm going to file a few complaints.
Apparently Amazon Prime users get free Genshin Impact stuff like primogems and whatnot every month, but I'm not sure I ever want to fall into the abyss of F2P ever again.

Forum statistics

Threads
117,148
Messages
1,104,950
Members
153,221
Latest member
Kostec
Top