• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Voltseon's A-Star Pathfinding

v20.1 Voltseon's A-Star Pathfinding 1.2

This resource pertains to version 20.1 of Pokémon Essentials.
Pokémon Essentials Version
v20.1 ➖
Download is in the top right by the way ;)

Have you ever wanted to make an event move to a specific location but had to calculate an entire 50 page long move route?
These days are over with VASP! All you have to do is call a simple script command with this plugin, you select the event and its destination and voila! This script will calculate the correct move route for you so you don't have to worry about it.

Does it work with the player as well?
Yes it does! Instead of defining the event ID you just input $game_player and the plugin will do the rest.

Also neat feature you can do with this plugin is make an event look at a specific location or event. This is useful for those situations where you want an event to look at another but you're just not sure where they'll end up.

An example of the plugin in use is shown in this tweet, where a Beedrill automatically finds its way through a maze.



Side note, the pathfinding does take the through toggle into consideration. If it is turned on when the script is called it will just take the shortest path.
Double side note, pathfinding in extremes will lag your game while calculating, this only really happens with huge open areas. And with huge I mean triple digits huge.



Step 1: Download the zip folder using the button on the top right (For v20. Download for older versions is at the bottom)
Step 2: Unzip the contents using unpackaging software like 7zip or WinRAR, some windows desktops also inherit this feature (short video instruction)
Step 3: Open the extracted folder until you see just a Plugins folder.
Step 4: Move the Plugins folder to your project file. (Make sure you're on v19+)
Step 5: Enjoy pathfinding. (Learn how to use the plugin using the spoiler below.)

When you want your event to move / look at a location / event, call a script command within that event with the following:
1629983964739.png

To move an event to a location / event use:
move_to_location(EventID, X, Y, WaitForComplete)
move_to_event(EventID1, EventID2, WaitForComplete)

Example:
1629984032363.png

To make an event turn towards a location / event use:
look_at_location(EventID, X, Y)
look_at_event(EventID1, EventID2)

Example:
1629984073567.png

NOTE: If you want to use the player, instead of EventID use $game_player

Older Versions
Credits
Voltseon
Golisopod User
ENLS
Author
Voltseon
Downloads
1,919
Views
8,800
First release
Last update

Ratings

4.80 star(s) 5 ratings

More resources from Voltseon

Latest updates

  1. VASP version 1.2

    Voltseon's A-Star Pathfinding has been updated to work in Essentials v20.
  2. Patch 1.1.2

    Fixed a small oversight in which the 'look_at...' methods were removed from the script, this has...
  3. Lil bug fix and small QOL change

    Was a bug with pathfinding the player and added a small QOL for when you have nil as the event...

Latest reviews

Lifesaving, not to mention incredibly simple to implement.
This is great, so great that it should be there by default in Pokémon Essentials. Good job!
this good
Back
Top