Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Filed] Change Lead Party Member

This is a small request, that may have already been done. Basiclly, you press a certain button and the player list will rotate, and the graphic on the map and the actor order on the menu and in battle will change accordingly. So, one full loop would be pressing the button 4 times.
 
I wonder how many times I have done this...


Code:
class Game_Party
  def rotate_party_forward
    @actors << @actors.shift
    $game_player.refresh
  end
  def rotate_party_backward
    @actors.insert(0, @actors.pop)
    $game_player.refresh
  end
end

class Scene_Map
  alias seph_partyrotate_scnmap_update update
  def update
    if Input.trigger?(Input::X)
      $game_party.rotate_party_forward
    elsif Input.trigger?(Input::Y)
      $game_party.rotate_party_backward
    end
    seph_partyrotate_scnmap_update
  end
end

Copy and paste below everything.
 

Jason

Awesome Bro

Wow, I tried scripting this before, I'm not so good with scripting, but thats pretty cool, It takes me back to the old days, with Final Fantasy 4, where you press a button and the party formation/order switches, Nice work !
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top