Persistant Event Graphic through multiple pages

Hey guys, looking to see if this is possible.

I'm wondering if there is a way to change an events graphic and keep it consistent regardless of which page it changes to.

Here's what I'm looking for:

  • Map loads. There are multiple NPC Events with a standard graphic, each one with multiple pages.
  • Autorun event goes through a custom database and changes these NPC Events graphics for all pages.
  • If NPC Events change pages, the new graphic should persist.
  • If leaving map, NPC Event doesn't need to save the graphic, it can revert to the original.
All I would need is a script call that designates which event and what graphic filename and entry to apply it to. Not sure if it would be necessary to tell the script which pages to change.

Thanks in advance~
Yeah, you'd need a new script for this. I'm not aware of any that will do it.


If someone else hasn't done this for you by the time I get home this evening, I'll see if I can take care of it.
Try this:

Spoiler
class Game_Event < Game_Character #-------------------------------------------------------------------------- # * Public Instance Variables #-------------------------------------------------------------------------- attr_accessor :keep_graphic # true - keep same graphic when changing # pages #-------------------------------------------------------------------------- # * Initialize Public Member Variables #-------------------------------------------------------------------------- alias shaz_event_graphic_init_public_members init_public_members def init_public_members shaz_event_graphic_init_public_members @keep_graphic = false end #-------------------------------------------------------------------------- # * Clear Event Page Settings #-------------------------------------------------------------------------- alias shaz_event_graphic_clear_page_settings clear_page_settings def clear_page_settings if @keep_graphic old_character_name = @character_name old_character_index = @character_index end shaz_event_graphic_clear_page_settings if @keep_graphic @character_name = old_character_name @character_index = old_character_index end end #-------------------------------------------------------------------------- # * Set Up Event Page Settings #-------------------------------------------------------------------------- alias shaz_event_graphic_setup_page_settings setup_page_settings def setup_page_settings if @keep_graphic old_character_name = @character_name old_character_index = @character_index old_direction = @direction old_original_direction = @original_direction old_prelock_direction = @prelock_direction old_pattern = @pattern end shaz_event_graphic_setup_page_settings if @keep_graphic @character_name = old_character_name @character_index = old_character_index @direction = old_direction @original_direction = old_original_direction @prelock_direction = old_prelock_direction @pattern = old_pattern end endend
calls are:

$game_map.events[id].keep_graphic = true$game_map.events[id].keep_graphic = falseOnce you've set the correct graphic, do the above call to set keep_graphic to true, and the current sprite will be maintained even when the event page changes.Now, the script as is will keep the event's graphic on ALL pages. If you only want it to keep the graphic on pages that already have a graphic, so if it switches to a page without a graphic, it will not be shown, just remove the clear_page_settings alias and method.

Original thread: https://forums.rpgmakerweb.com/threads/persistant-event-graphic-through-multiple-pages.26333/