Lead Actor Swapper script error
#16
The philosophies:

Caterpillar systems (Train Actor, and other): They assume the NPC in position #1 (index #0) within Game_Party.actors is the party leader, and all others are the followers. If you remove Aluxes from the party, the array of actors shift and Basil takes position #1. And adding Aluxes back, he is stuck at the end as the last member of the party. The system is based on the actual list of party members.

Lead Actor Swap: Does not affect the list of actors within Game_Party.actors. Using the system does not change the order of the party and the first member within the list remains unaffected. It does not actually change the party order, merely making an attempt to fake who the party leader actually is during gameplay. If you change the party leader with this system and then enter the main menu, you will see that the party member order is actually unaffected.

Indeed, Lead Actor Swap may look nice, but it doesn't fully change the party leader.

I just cranked this out as a replacement for Sheol's work:
Code:
#==============================================================================
# ** DerVV's Party Order Shifter
#------------------------------------------------------------------------------
#    by DerVVulfman
#    version 1.0
#    09-05-2025 (mm/dd/yyyy)
#    RGSS / RPGMaker XP
#==============================================================================


module D_Party_Order

  BLOCK_SWITCH  = 5             # Switch ID that stops cycling if turned on
  FORWARD_KEY   = Input::L      # Defined key to cycle party forward
  BACKWARD_KEY  = Input::R      # Defined key to cycle party backward

end



#==============================================================================
# ** Game_Player
#------------------------------------------------------------------------------
#  This class handles the player. Its functions include event starting
#  determinants and map scrolling. Refer to "$game_player" for the one
#  instance of this class.
#==============================================================================

class Game_Player < Game_Character

  #--------------------------------------------------------------------------
  # * Alias Listing
  #--------------------------------------------------------------------------
  alias dervv_party_actor_order_update update

  #--------------------------------------------------------------------------
  # * Update
  #--------------------------------------------------------------------------
  def update
    #
    dervv_party_actor_order_update
    return                    if $game_switches[D_Party_Order::BLOCK_SWITCH]
    return cycle_party        if Input.trigger?(D_Party_Order::BACKWARD_KEY)
    return cycle_party(true)  if Input.trigger?(D_Party_Order::FORWARD_KEY)
    #
  end

  #--------------------------------------------------------------------------
  # * Cycle party forward
  #     d : direction cycles forward (True/false)
  #--------------------------------------------------------------------------
  def cycle_party(d=false)
    #
    temp = (d==true) ?  $game_party.actors.pop : $game_party.actors.shift
    (d==true) ? $game_party.actors.unshift(temp) : $game_party.actors.push(temp)
    #
  end

end

It not big. Its short and sweet. Its tiny config section lets you determine an RMXP switch to disable the feature and lets you determine what keys cycle the members forward or backward (should be full keyboard compatible too).

And as it actually changes the actual party order, it affects the main menu AND does work with Train Actor (and likely other caterpillars).
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
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 DerVVulfman - 09-05-2025, 02:40 PM
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)