Save-Point
Lead Actor Swapper script error - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Games Development (https://www.save-point.org/forum-4.html)
+--- Forum: Code Support (https://www.save-point.org/forum-20.html)
+--- Thread: Lead Actor Swapper script error (/thread-12712.html)



Lead Actor Swapper script error - Ace_V - 08-29-2025

Hi! I tried implementing the Lead Actor Swapper script by Sheol:
https://www.save-point.org/showthread.php?tid=6559


But when I tried swapping a character out using the Q button (L on a gamepad), I encounter an error on line 64:

Code:
      $game_system.lead_actor = ($game_system.lead_actor - 1) % $game_party.actors.size


I use a caterpillar script, could that be the problem? I was hoping I could swap/change character's party positions using the script and they would also swap on the caterpillar.  Fear