Changing formation order with a key?

● ARCHIVED · READ-ONLY
Started by diablodevil2 4 posts View original ↗
  1. Heya! 

    I'm wondering if there's an organic or script-related method to allowing party order to be changed without needing to go to the Formation menu each time. Picture like so;

    Actors 1,2,3 are walking along in order.

    1 2 3

    The player presses a key, say one bound to L in game. The party on the map then instantly changes (or, maybe with some animated walking, that'd be fancy) to;

    2 3 1

    Actor 2 moved up to the Leader position, 3 moved up to the second spot, and 1 was shuffled to the rear. 

    Additionally, it'd be neat to have the R command in game bound to the opposite; moving things back the way they were to;

    1 2 3

    I appreciate any suggestions! c:
  2. Try this use R and L command to switch:

    Code:
    class Scene_Map    alias :evg_sm_us_player_swap    :update_scene    def update_scene    evg_sm_us_player_swap    update_change_formation unless scene_changing?  end    def update_change_formation    if Input.trigger?(:L)      $game_party.next_actor_swap    elsif Input.trigger?(:R)      $game_party.prev_actor_swap    end  end  endclass Game_Party    def next_actor_swap    actor = @actors.shift    @actors.push(actor)    $game_player.refresh  end    def prev_actor_swap    actor = @actors.pop    @actors.insert(0, actor)    $game_player.refresh  endend
  3. That works perfectly, thanks so much!
  4. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.