[XP] Changing Actor Order (SOLVED)

Started by lonely_cubone, June 13, 2012, 10:36:26 pm

Previous topic - Next topic

lonely_cubone

June 13, 2012, 10:36:26 pm Last Edit: June 15, 2012, 12:11:45 pm by lonely_cubone
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?

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

lonely_cubone

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!

Landith

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.

lonely_cubone

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!

Landith

No problem! Don't forget to credit Modern Algebra for the useful snippet :)