RGSS3 - Animation graphic z value

Trying to figure out how to adjust the z value of animations placed on a map or in battle manually. (with the "show animation" or "show battle animation" commands).

I'd like to adjust the z value so that it's higher than message and menu windows. I'm looking at Sprite_Base, but I'm not sure if it's viewport-based or not.
Battlers are located in dedicated viewport1 in spriteset. While the menu is dedicated at info_viewport from Scene_Battle. The info_viewport z value is higher (100) than viewport1 (0) from spriteset. Thus the animation will never go beyond the menu even if you set the animation z value to 999.

It's more complicated than you thought. But if you insist to play animation above the menu, you can go by
1. Removing the setup animation from Sprite_Battler
2. Create a newly dedicated viewport above info_viewport
3. Create a dummy sprite in the dedicated viewport solely for play animation.

The 3rd step can be complicated or not depending on your skill, and the compatibility concern with other scripts.

Original thread: https://forums.rpgmakerweb.com/threads/rgss3-animation-graphic-z-value.104665/