Event Updater Support

Hi, below is a short script by Kread that helps update events, can someone please explain what the numbers for dx and dy do and why, when I increase them, I don't notice a difference.

Spoiler
# Put [update] in the event's name and the move route will always update.
#
# ~Kread
 
class Game_Event < Game_Character 
  #--------------------------------------------------------------------------
  # * Determine if Near Visible Area of Screen
  #--------------------------------------------------------------------------
  alias_method🙂krx_alfix_ge_nts?, :near_the_screen?)
  def near_the_screen?(dx = 12, dy = 8)
    # YEA compatibility
    if $imported && $imported["YEA-CoreEngine"]
      dx = dy = nil
    end # YEA compatibility
    return true if @event.name.include?('[update]')
    return krx_alfix_ge_nts?(dx, dy)
  end
end
Could someone explain how I could alter this script to extend the distance it updates my events?

Also, could I rename "[update]" to "update" because the brackets are interfering with a different script I am using.

thanks.
You can change [update] as long as you change it in the script and all events as well. I believe dx ad dy would be the number of tiles around the screen to check. Look at the default near_the_screen? method.
I thought so, but when I increased the dx and dy parameters, I didn't notice an increase in event update
You won't notice it if you put the [update] thing...
You won't notice it if you put the [update] thing...
This is actually in reference to a different script --- I am using an event spawner by Kread that does not recognize brackets in event names
I know. I am talking about the script included in your first post.

Hi, below is a short script by Kread that helps update events, can someone please explain what the numbers for dx and dy do and why, when I increase them, I don't notice a difference.
# Put [update] in the event's name and the move route will always update.## ~Kread class Game_Event < Game_Character #-------------------------------------------------------------------------- # * Determine if Near Visible Area of Screen #-------------------------------------------------------------------------- alias_method🙂krx_alfix_ge_nts?, :near_the_screen?) def near_the_screen?(dx = 12, dy = 8) # YEA compatibility if $imported && $imported["YEA-CoreEngine"] dx = dy = nil end # YEA compatibility # If you use the tag, the event should always update the movement. return true if @event.name.include?('[update]') # If you don't, then it will call the original method, and THIS is where # dx and dy are used. return krx_alfix_ge_nts?(dx, dy) endendIf you change dx or dy, you will only see a difference if you don't use the tag in the event name. 

Original thread: https://forums.rpgmakerweb.com/threads/event-updater-support.25568/