Theo - Pathfinding and Event Chase Player

Wherever you put that line, it is typed incorrectly. there is no space between the h and bracket.
getting this error
Wherever you put that line, it is typed incorrectly. there is no space between the h and bracket.
Thank you so much! I over thought the problem.
I'm having a different problem now unfortunately.
On a new map this works perfectly but on a map I've completed it does not, they just stand still... The player can walk over all the tiles in the room completely fine so I don't know what the problem is...
*Edit. I found out it was due to an event in the way that is set to below characters. Is there any way to make the npc ignore events that are "in the way"?
Is there any way to make the npc ignore events that are "in the way"?
Try this. Don't know if it will cause any other issues.
Ruby:
# roninator2
# events can move on top of other events that are below character.

class Game_CharacterBase
  def collide_with_events?(x, y)
    $game_map.events_xy_nt(x, y).any? do |event|
      event.normal_priority? || (self.is_a?(Game_Event) && event.normal_priority?)
    end
  end
end
Try this. Don't know if it will cause any other issues.
Ruby:
# roninator2
# events can move on top of other events that are below character.

class Game_CharacterBase
  def collide_with_events?(x, y)
    $game_map.events_xy_nt(x, y).any? do |event|
      event.normal_priority? || (self.is_a?(Game_Event) && event.normal_priority?)
    end
  end
end
This works up until the npc is directly beside the event but won't pass over it.
*Edit. I'm dumb, I forgot I changed the move route to something else to test an idea that didn't work. This works completely fine. Thank you so much!
This could be fun for chase events XD
I am getting this error with this script installed. I don't know what's wrong. I haven't touched any of the starting scripts in the game when you make a new project.
Any help would be so appreciated.
View attachment 224341

this is how you use find_path(x,y)

1 insert an event "Set Move Route..."
2 Choose script
3 set find_path(x,y)
This is a very useful plug-in! Currently, I'm trying to modify it slightly so that the enemy performs only the first step in the movement route.

For context, my game functions similarly to "mystery dungeon" or rouge-like games. That is, all units take turns moving one tile on the map. The pathfinding code is simple enough to modify for this effect (in theory). The following code retrieves only the first step in the movement route:

mv_list.slice(0, 2)

However, the movement route never seems to clear after this. As a result, the player gets soft-locked if an enemy moves. Perhaps there's a better way I should go about this, but I'm fairly new to VX Ace and Ruby, so I don't quite know the solution.

I know it's been some years, but I'm hoping someone will see this post!
This is a very useful plug-in! Currently, I'm trying to modify it slightly so that the enemy performs only the first step in the movement route.

For context, my game functions similarly to "mystery dungeon" or rouge-like games. That is, all units take turns moving one tile on the map. The pathfinding code is simple enough to modify for this effect (in theory). The following code retrieves only the first step in the movement route:

mv_list.slice(0, 2)

However, the movement route never seems to clear after this. As a result, the player gets soft-locked if an enemy moves. Perhaps there's a better way I should go about this, but I'm fairly new to VX Ace and Ruby, so I don't quite know the solution.

I know it's been some years, but I'm hoping someone will see this post!
posting in the wrong thread. this is vx ace scripts
posting in the wrong thread. this is vx ace scripts
I'm aware that this is VX Ace. That's the engine that I'm using for my project, and I'm using this specific script for it. That's why I'm posting here.
It so very good script. I'm sorry that the content of the game I'm making isn't good for people, but... I'm trying to use this for commercial use. I hope I can get you a copy of the game soon.

Original thread: https://forums.rpgmakerweb.com/threads/theo-pathfinding-and-event-chase-player.35677/