# v20.1Voltseon's A-Star Pathfinding 1.2

This resource pertains to version 20.1 of Pokémon Essentials.
Pokémon Essentials Version
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: To move an event to a location / event use: move_to_location(EventID, X, Y, WaitForComplete) move_to_event(EventID1, EventID2, WaitForComplete) Example: To make an event turn towards a location / event use: look_at_location(EventID, X, Y) look_at_event(EventID1, EventID2) Example: NOTE: If you want to use the player, instead of EventID use$game_player

Older Versions
Credits
Voltseon
Golisopod User
ENLS
Author
Voltseon
844
Views
5,463
First release
Last update
Rating
4 ratings

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

This is great, so great that it should be there by default in Pokémon Essentials. Good job!
this good