09-05-2025, 02:40 PM
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:
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).
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).