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.

Changing "Skills" Command In Battle

rexkim

Member

In battle, it says Skills for the skills list for all characters. What I need is a script that allows me to change "Skills" to something else for each character.

For example, one character may have Cast instead of Skills while another character may have...I don't know...Unleash instead of Skills.

Can anyone help me out?
 
use the script below... it's easier to set up.


#==============================================================================
# ** Individual Commands
#==============================================================================
# Vash (rmxp.org)
# 2006-08-24 (Date Reposted)
#------------------------------------------------------------------------------
# * Instructions:
# Change the "Attack1" and "Skills1" (same for the others) to
# whatever you want (corresponding to the class' id), if you have more than 4
# classes, you can add {'CLASS_ID'=>5,'Attack'=>'Attack5'} and as much as you
# need...
#==============================================================================

#==============================================================================
# ** Scene_Battle
#==============================================================================
class Scene_Battle

Skills_command_names = [
{'CLASS_ID'=>1,'Skills'=>'Skills1'}, # Change "Skills1" to what you want.
{'CLASS_ID'=>2,'Skills'=>'Skills2'},
{'CLASS_ID'=>3,'Skills'=>'Skills3'},
{'CLASS_ID'=>4,'Skills'=>'Skills4'},
{'CLASS_ID'=>5,'Skills'=>'Skills5'},
{'CLASS_ID'=>6,'Skills'=>'Skills6'},
{'CLASS_ID'=>7,'Skills'=>'Skills7'},
{'CLASS_ID'=>8,'Skills'=>'Skills8'},
{'CLASS_ID'=>9,'Skills'=>'Skills9'},
{'CLASS_ID'=>10,'Skills'=>'Skills10'}
]
end

#==============================================================================
# ** Window_Command
#==============================================================================
class Window_Command
def set_command_name(index,name)
@commands[index] = name
refresh
end
end
#==============================================================================
# ** Scene_Battle (Skills)
#==============================================================================
class Scene_Battle
alias diverse_skills_commands_phase3_setup_command_window phase3_setup_command_window
def phase3_setup_command_window
diverse_skills_commands_phase3_setup_command_window
return if @active_battler.nil?
Skills_command_names.each do |names|
if names['CLASS_ID'] == @active_battler.class_id
# The number represents each command 0:attack, 1:skills, 3:defend, and 4:items
@actor_command_window.set_command_name(1,names['Skills'])
break
end
end
end
end

credit to vash, not me.
 
Line 46 is giving an error message. The line is as follows:

alias diverse_skills_commands_phase3_setup_command_windo w phase3_setup_command_window

Any ideas how this can be fixed?

darkace77450
 

rexkim

Member

alias diverse_skills_commands_phase3_setup_command_windo w phase3_setup_command_window
def phase3_setup_command_window
diverse_skills_commands_phase3_setup_command_windo w

Get rid of the spaces in window.

...in other words, make it "window" instead of "windo w"

That's how I fixed it.

Thanks for th scripot btw.
 
Thanks for the reply. The change you mentioned got rid of the error, but the changes I'm making in the script aren't working in game. The in game menu is still showing up as "Skill". Any ideas why? (other scripts running during test are SDK, MCL, Trickster's Bestiary, and Guillaume777's multi-equip script...hopefully none of these are incompatabe with the Custom Skills script).

darkace77450
 

rexkim

Member

I don't think this script changed the ingame menu ones. I think you have to change it yourself within those scripts. =/

I'm not a codder so I can't help. Sorry. >.<
 

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