Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: lonely_cubone on June 13, 2012, 10:36:26 pm

Title: [XP] Changing Actor Order (SOLVED)
Post by: lonely_cubone on June 13, 2012, 10:36:26 pm
Hi everybody! I'm looking for a script to change the order of the actors in your party. I have one, but it's not compatible with any custom menu systems, because it uses Scene_Menu rather than making a new scene. This seems like a really simple thing, so I'm sure one exists, but I can't find any. Could someone please direct me to where I could find one?
Title: Re: [XP] Changing Actor Order
Post by: Blizzard on June 14, 2012, 05:08:21 am
My Easy Party Switcher allows you to switch the party members around, not just change them. But it might be an overhead, especially since you have the reserves window there.
Title: Re: [XP] Changing Actor Order
Post by: lonely_cubone on June 14, 2012, 01:17:10 pm
Yeah, I saw that, but I was hoping for something without the reserve window. I'll mess around with it and see if I can get rid of the reserve window. Thanks!
Title: Re: [XP] Changing Actor Order
Post by: Landith on June 15, 2012, 06:52:38 am
There was one that allowed you to change the leader of your party on map.

class Scene_Map
 
  alias modern_algebra_change_leader_modification update
  def update
    modern_algebra_change_leader_modification
    if Input.trigger? (Input::R)
      # Remove the Lead Actor
      old_lead = $game_party.actors.shift
      # Add the old leader back into the party
      $game_party.add_actor (old_lead.id)
    end
    if Input.trigger? (Input::L)
      # Remove the last actor in the party
      new_lead = $game_party.actors.pop
      # Insert him as the lead actor
      $game_party.actors.unshift (new_lead)
      # Refresh $game_player to reflect new leader
      $game_player.refresh
    end
  end
end


I'm sure you want one for the actual menu though... Just thought I would try to throw that out there :P
Btw, if you do use that credit goes to Modern Algebra.
Title: Re: [XP] Changing Actor Order
Post by: lonely_cubone on June 15, 2012, 12:11:32 pm
Quote from: Landith on June 15, 2012, 06:52:38 am
There was one that allowed you to change the leader of your party on map.

class Scene_Map
 
  alias modern_algebra_change_leader_modification update
  def update
    modern_algebra_change_leader_modification
    if Input.trigger? (Input::R)
      # Remove the Lead Actor
      old_lead = $game_party.actors.shift
      # Add the old leader back into the party
      $game_party.add_actor (old_lead.id)
    end
    if Input.trigger? (Input::L)
      # Remove the last actor in the party
      new_lead = $game_party.actors.pop
      # Insert him as the lead actor
      $game_party.actors.unshift (new_lead)
      # Refresh $game_player to reflect new leader
      $game_player.refresh
    end
  end
end


I'm sure you want one for the actual menu though... Just thought I would try to throw that out there :P
Btw, if you do use that credit goes to Modern Algebra.


Thanks! That should actually work really well!
Title: Re: [XP] Changing Actor Order (SOLVED)
Post by: Landith on June 15, 2012, 09:20:25 pm
No problem! Don't forget to credit Modern Algebra for the useful snippet :)