As the title suggests. I've tried using other people's plugins, but for whatever reason, they cause the game to lag. I have typed out a script, but I'm unsure if the script was typed correctly because it worked at first, then I made some kind of edit, which I don't remember what I tweeked. Maybe someone who knows more than I could help me identify the issue within my script or provide me with a new one that works better?
I did use Google to try and find answers, but this is a more specific issue regarding the uploaded photo with my script.
Did I miss something in my scripts?
These kind of answers can be usually found easily with search engines.
$gamePlayer.followers().follower(f).setDirection(d);
where f is a number representing the follower's position (0 being the first follower, 1 being the second, etc.) and d is a number representing the direction: 2 Down, 4 Left, 6 Right, 8 Up
If your title and post asks how to set the facing direction of followers, then people are going to answer that, not anything else going on in your mind. And the script I posted above works for me. You can find the move route scripts in the script call list (EDIT: Don't know if they will help you with your new question though. I think I've only seen follower move routes made with plugins).
Dollars to donuts the OP's game lagged hard because he tried to use a pathfinding script on multiple followers at once.
Even just one event pathfinding can lag the game. Pathfinding is expensive on system resources.
The script you posted has multiple red flags suggesting AI made it. But hey, you says it works and fixed all your lag so sounds like problem solved to me.
I was going to try helping you but to be honest the attitude you've displayed towards people trying to do that has put me off entirely. Good luck sorting it out!
I'll give this one more go.
I'm not going to try to puzzle through and test the code that you typed out - it looks overly complex and you still haven't described how you want it used at all.
I will offer these things:
- The typical, easy way to do this is to turn followers off via event command, turn on event pages that have the images of your party members, and move those events.
- The plugin, easy way to do this is with something like Tyruswoo's Follower Control plugin, which gives you move route commands to control each follower. The plugin does not make a game lag, using the commands correctly does not make a game lag.
The fact that you jumped directly to this instead of trying to troubleshoot or get help with your unnamed plugins seems odd to me. But you do you.
This thread is now closed due to being solved. Make sure to report threads in the future for closure. I’ve also merged three double posts. Thank you!