Lead Actor Swapper script error
#25
(09-06-2025, 10:42 AM)kyonides Wrote: Oops! I forgot to include an important step, to pass the actor's ID to the $game_actors array before looking for his current position.
Happy with a sweat 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.  Indifferent (Though I was able to get Basil back by cycling a few more times until there was no more duplicate of Aluxes, haha)
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.


Attached Files Thumbnail(s)
   
[Image: SP1-Writer.png]
[Image: SP1-PixelArtist.png]
Reply


Messages In This Thread
Lead Actor Swapper script error - by Ace_V - 08-29-2025, 07:32 AM
RE: Lead Actor Swapper script error - by kyonides - 08-30-2025, 05:01 AM
RE: Lead Actor Swapper script error - by kyonides - 08-30-2025, 10:01 PM
RE: Lead Actor Swapper script error - by Ace_V - 08-31-2025, 07:44 AM
RE: Lead Actor Swapper script error - by kyonides - 08-31-2025, 10:11 AM
RE: Lead Actor Swapper script error - by Ace_V - 09-02-2025, 09:33 AM
RE: Lead Actor Swapper script error - by kyonides - 09-02-2025, 10:55 AM
RE: Lead Actor Swapper script error - by kyonides - 09-02-2025, 04:10 PM
RE: Lead Actor Swapper script error - by Ace_V - 09-04-2025, 03:09 AM
RE: Lead Actor Swapper script error - by Ace_V - 09-05-2025, 06:30 AM
RE: Lead Actor Swapper script error - by Ace_V - 09-05-2025, 08:41 AM
RE: Lead Actor Swapper script error - by kyonides - 09-05-2025, 03:10 PM
RE: Lead Actor Swapper script error - by Ace_V - 09-06-2025, 05:49 AM
RE: Lead Actor Swapper script error - by kyonides - 09-06-2025, 06:50 AM
RE: Lead Actor Swapper script error - by Ace_V - 09-06-2025, 07:39 AM
RE: Lead Actor Swapper script error - by kyonides - 09-06-2025, 08:25 AM
RE: Lead Actor Swapper script error - by Ace_V - 09-06-2025, 09:47 AM
RE: Lead Actor Swapper script error - by kyonides - 09-06-2025, 10:42 AM
RE: Lead Actor Swapper script error - by Ace_V - Yesterday, 04:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Actor Voices by diamondandplatinum3, note-tag commands not working! Starmage 1 524 08-04-2025, 09:02 AM
Last Post: Starmage
   Plugin or Script help with Item menu, SKill menu, and Equip menu JayRay 3 2,796 11-22-2024, 07:02 PM
Last Post: JayRay
   Atoa ACBS, Equipment Set Add-on Error Solitaire 10 5,895 10-13-2024, 11:41 PM
Last Post: Solitaire
   Personal graph by actor zlsl 4 7,898 10-23-2021, 06:43 AM
Last Post: zlsl
   Script compatibility help Lord Vectra 3 7,111 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 22,382 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 21,683 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 21,617 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   (RMVXace) Battle error with Tankentai's battle system, help. x( Starmage 0 5,059 02-14-2018, 04:25 PM
Last Post: Starmage
   Help iwth script (RGSS Player crash) Whisper 3 10,488 06-17-2017, 05:03 PM
Last Post: Whisper



Users browsing this thread: 1 Guest(s)