Group: Member
Posts: 60
Type: Event Designer
RM Skill: Intermediate
This is Night Runner's excellent script. (Don't worry all credits are handled)
Quick Character Changer 1.0
Description: This script simply allows you to switch to another character (in your party) at anytime on the map. This is good if your not using Blizz's ABS, and you have an abs when you could only use one char. at time, this just makes it all easier. So basically this script is designed to allow the player to press a button, and the script will take the player in the first position, and move them to the end of the party's actor's list.
Customization: You just simply change the letter of the key you wish to use [to change character] at line 53.
[Show/Hide] Night Runner's Quick Character Changer
CODE
#==================================================== # ** Night_Runner's Quick Character Changer #------------------------------------------------------------------------------ # History: # Date Created: 31/July/10 # Created for: romeboy109 # # Description: # This script is designed to allow the player to press a button, and # this script will take the player in the first position, and move # them to the end of the party's actor's list. # # How to Install: # Copy and Paste into your Tools >> Script Editor, make sure to scroll # down to main, right click, and insert a new page for this to be on. # # Customization: # Line 53 reads: # if Input.trigger?(Input::L) # L corresponds to the Q key # R corresponds to the W key, # X corresponds to the A key, # Y corresponds to the S key, # Z corresponds to the D key, # A corresponds to the Z key, # B corresponds to the X key, # C corresponds to the C key, # by default, so change the L to the input desired #==============================================================================
#============================================================================== # ** Scene_Map #------------------------------------------------------------------------------ # Edited to check if 'Q' is pressed. #==============================================================================
class Scene_Map #-------------------------------------------------------------------------- # * Alias Methods #-------------------------------------------------------------------------- alias nr_party_rotator_update update unless $@ #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- # alias nr_party_rotator_update update unless $@ def update(*args) # If the message window is not showing if not $game_temp.message_window_showing # If the L input (Q button) is pressed if Input.trigger?(Input::L) # Rotate leading hero to end $game_party.rotate_hero end end # Run original update return nr_party_rotator_update(*args) end end
#============================================================================== # ** Game_Party #------------------------------------------------------------------------------ # Edited to have a simple command that rotates the leading hero to the end # of the party. #==============================================================================
class Game_Party #-------------------------------------------------------------------------- # * Rotate Hero #-------------------------------------------------------------------------- def rotate_hero # Get the ID of the hero in position 0 id = @actors[0].id # Remove him from the party remove_actor(id) # Add him to the end of the party list. add_actor(id) end end
#============================================================================== # ** End of Script. #==============================================================================
This post has been edited by romeboy109: Aug 29 2010, 11:16 AM