Scope of Show Picture numbering

As you probably know, when using the Show Picture function within an event, we're supposed to give it an ID number.

The game I'm working on makes frequent use of this functionality. Sometimes a number of event on a single map will display multiple pictures as part of game interaction.

My question is this : What is the scope of the ID numbers that Show Picture uses? Are they limited to the map, the event, or just the event page currently being executed? Do I need to keep the numbers unique on a given map, or can I start over with 1 each time on different events etc?
Picture IDs are limited to the screen itself. Only one image of the same ID can be active on the screen at once. If you have an image with an ID of 1, and you use Show Picture to set a new ID 1, the old one will be overwritten.

This is independent from events or maps. You can Show Picture 1 from one event and then move that picture 1 from another, even if that event is on another map. Picture 1 will stay active until you erase it.
Picture IDs are limited to the screen itself. Only one image of the same ID can be active on the screen at once. If you have an image with an ID of 1, and you use Show Picture to set a new ID 1, the old one will be overwrittenI

If I'm reading this correctly, I could just use ID #1 in an event over and over and it would change the pictures for me instead of doing Show #1 - Wait - Show #2 Erase #1 Wait Erase #2?

Just Show #1 (pic1) Wait Show #1 (pic2) wait erase #1 and all is good?

Did I read that right?
Also, map and battle pictures are handled separately: map pictures don't carry over to battle, and vice versa. And battle pictures get cleared when a battle starts.
Also, map and battle pictures are handled separately: map pictures don't carry over to battle, and vice versa. And battle pictures get cleared when a battle starts.
At present, I don't use battles though I may in the future. Thanks for the info!
If I'm reading this correctly, I could just use ID #1 in an event over and over and it would change the pictures for me instead of doing Show #1 - Wait - Show #2 Erase #1 Wait Erase #2?

Just Show #1 (pic1) Wait Show #1 (pic2) wait erase #1 and all is good?

Did I read that right?

That is correct. Using Show Picture to show a picture with the ID 1 will erase any previous instance of Picture ID 1 that is currently on the screen. Using different IDs is something you only need to do if you want to stack multiple pictures.
That is correct. Using Show Picture to show a picture with the ID 1 will erase any previous instance of Picture ID 1 that is currently on the screen.

You just cut my future coding time by a factor of 3. 🙂 Thank you!
One additional point:

the ID also determines the order in which multiple pictures are displayed (Z coordinate) if you have multiple active pictures.
that can be usefull if you work with transparency and smaller pictures, like one background picture and several smaller ones on top of it.
One additional point:

the ID also determines the order in which multiple pictures are displayed (Z coordinate) if you have multiple active pictures.
that can be usefull if you work with transparency and smaller pictures, like one background picture and several smaller ones on top of it.
Yeah, I've done that before, though I didn't consciously think about the numbering then..I just put the base image first then the overlay images on top of it.

Thanks for clarifying. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/scope-of-show-picture-numbering.160583/