Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Quick Row/Character Changer 1.0 (With the ease of a button!), Good especially for ABS's.
romeboy109
post Aug 1 2010, 10:39 AM
Post #1


Level 5
Group Icon

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


__________________________
The Names Romeboy. Romeboy109.

Yo, who likes to write stories or poems? Come to this website if thats you: http://trstories.spruz.com/

[Show/Hide] Games in Production

Cyrus -
Resident Evil XP -
Naruto: The Lost Stories & Missions -
Cyrus 2



Cyrus' Curse

My New game: Cyrus' Curse. This is the link to the website, and I just uploaded the demo not too long ago.

Cyrus' Curse Website

The the direct link to the demo:

Cyrus' Curse Demo






User-Bars (some I copied from other people because they related to me...will I get in trouble?)







Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies (1 - 1)
Night_Runner
post Aug 2 2010, 03:08 AM
Post #2


Level 50
Group Icon

Group: +Gold Member
Posts: 1,529
Type: Scripter
RM Skill: Undisclosed




Ahhhh, codeboxes, my mortal enemy.

Otherwise, glad you liked it smile.gif


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th June 2013 - 02:26 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker