Yesterday, 04:46 AM
(09-06-2025, 10:42 AM)kyonides Wrote:I forgot to include an important step, to pass the actor's ID to the $game_actors array before looking for his current position.
Stuff happens, you know.
Here's the fixed code!
Code:--------------------------
This works perfectly now!! Also reorders the party in the menu and is really easy to implement the script call. I'm going to go through my older quests to swap characters around. Thank you so much, kyonides!
(09-06-2025, 01:37 PM)DerVVulfman Wrote:(09-06-2025, 05:49 AM)Ace_V Wrote: Thank you so much for these two scripts!! I tried them both but Dervv's script seems to only move around the caterpillar and not the main character? (the three characters behind do swap around, but it duplicates the lead into the second, then into the third, and fourth, but the lead doesn't swap out for some reason.)
I'm puzzled. It works just as its meant with no duplication of the lead actor. Video attached.
Couple that, it affects the entire party, and not just the caterpillar system. For any caterpillar script, the party leading the caterpillar script must be the actual party leader, not some designated temp leader. So the party itself must reflect who is in the lead. The caterpillar system is completely dependent upon the party and its order.
You and kyonides seem to be in a more compatible set of time-zones, so I'll back away from the repair. However, if you have an issue with my script not functioning as above that there may also be something else in play.
It really is odd! I tested your script on a blank project that also contained my game's scripts.rxdata just now and it still duplicates the lead for some reason.

I appreciate all the help with this request despite the time zone difference! It also gave me a reason to look over my game's various scripts and I began rediscovering what my 2005 self was tinkering with back then. (among other things, I had forgotten I implemented a janky regen script that involved changing some of the standard scripts instead of being a new entry in itself, and it changed the regen text color as well) The little break from graphics and event-work was also refreshing.
![[Image: SP1-Writer.png]](https://www.save-point.org/images/userbars/SP1-Writer.png)
![[Image: SP1-PixelArtist.png]](https://www.save-point.org/images/userbars/SP1-PixelArtist.png)