The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Shadow Phoenix on August 11, 2009, 05:10:54 AM

Title: [REQUEST] Script to change button layout and to change first party member
Post by: Shadow Phoenix on August 11, 2009, 05:10:54 AM
I know you guys are about to say, "F1 while playing the game!", but this is different

You see, F1 doesn't give me the buttons I want. Basically, I wanted to change it around a bit

A=A
B=S
C=D
X=Enter (I THINK that's the menu pop up button)
Q=L
E=R

I haven't really used Y or Z, so I don't know what those do, but including those in the script would be great, as then they could be changed. Same with the directional keys (hey, might as well go all the way)

Also, is there a script anywhere that allows me to change the order of the party that can also work with Leon_Westbrooke's Party Changer (http://rmrk.net/index.php/topic,20446.0.html) script? Speaking of which, any way to make it so that the party changer script cannot allow you to swap characters of certain classes? After all, being able to swap an escort out of your party until you reach the goal, then swap them back in would defeat the purpose, would it not?
Title: Re: [REQUEST] Script to change button layout and to change first party member
Post by: stripe103 on August 14, 2009, 09:40:41 AM
In Blizz-ABS, there is this kind of script.
You could just use that and disable all the other functions that comes with it.
Or if you can, or someone else can, cut out that part of Blizz-ABS.
Title: Re: [REQUEST] Script to change button layout and to change first party member
Post by: Sthrattoff on November 16, 2009, 08:58:28 PM
the concept is when you press a button (say it's SHIFT), the first party member will be the last and the second will be the first, the third will be the second, and the fourth will be the third.

the code is this, please tell me if it is not working:

class Scene_Map

  alias old_update update
  def update
    old_update
    if Input.trigger?(Input::SHIFT)
      temp = $game_party.actors[0]
      $game_party.actors.delete_at 0
      $game_party.actors.push temp
    end
  end

end
Title: Re: [REQUEST] Script to change button layout and to change first party member
Post by: Grafikal on November 17, 2009, 03:56:01 AM
XP and VX buttons are basically set up for an SNES controller. X and Y are basically more buttons you could use if you wanted to. For like custom event systems or something.