FANDOM


Rotate party keys
This tutorial was written by -FL-. Please give credit.

This tutorial is related to the following pages:

Click here for more tutorials!


This tutorial explains how to add a key to rotate the party. I use the keys A and S (the buttons X and Y as listed in buttonToKey method).

Example ; If you have a party with Bulbasaur, Charmander, Squirtle and Caterpie, in this order (Bulbasaur at first), if you press the "A" key, the order will be Charmander, Squirtle, Caterpie and Bulbasaur. If, instead, you press the "S" key, the order will be Caterpie, Bulbasaur, Charmander and Squirtle.

In Scene_Map, before line 'if Input.trigger?(Input::F5)' add:

if Input.trigger?(Input::X) && $Trainer.party.size > 1
  $Trainer.party.push($Trainer.party.delete_at(0))
end
if Input.trigger?(Input::Y) && $Trainer.party.size > 1
  $Trainer.party.insert(0,$Trainer.party.pop)
end

I recommend to use this script with Simple HUD. If you do so, before each of the two above 'end's add the line '$hud_need_refresh = true', so the HUD will be refreshed after you rotate the party.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.