RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RESOLVED] classes with different skills

Started by darkace77450, October 30, 2006, 02:51:50 AM

0 Members and 1 Guest are viewing this topic.

darkace77450

Hello all.  I have a request for you script experts.  I did several searches and didn't see anything, so my apologies if this has already been addressed.  I would like it so that my characters dont all have the generic "Skill" option in battle, but rather have individual abilities based on their class.  For example, a warrior could have "Battle Skills" while a wizards would have "Magic" and a rouge would have "Thief Skills".  Please bear in mind that I have no scripting skills what-so-ever.  Any help with this is appriciated.  Thanks.

darkace77450

Nightwolf

Battle commands.

Near the class thing there will be battle commands, or somewhere on the database page.
Instead of skill , make it as you wish for different characters.
No need for a script...

EDIT-
sorry i just checked, i forgot battle commands were limited to rpg2k3.
I thought theyd be in xp too ..sorry;(
Arlen is hot.

Blizzard

I took that out of my game, but it should work (usually they don't, because my scripts are "merged" intot the game >.< ). Define for each class the name of the Skill Command.

#==============================================================================
# Simple Skill Command Change by Blizzard
#==============================================================================

#==============================================================================
# Scene_Battle
#==============================================================================

class Scene_Battle
 
  alias phase3_setup_command_window_command_name_later phase3_setup_command_window
  def phase3_setup_command_window
    phase3_setup_command_window_command_name_later
    @actor_command_window.actor = @active_battler
    @actor_command_window.setup_command_name
  end
 
end

#==============================================================================
# Window_Command
#==============================================================================

class Window_Command
 
  attr_accessor :actor
 
  def setup_command_name
    return if @actor == nil
    case @actor.class_id
    when 1 then @commands[1] = "Technic"
    when 2 then @commands[1] = "Special"
    when 3 then @commands[1] = "Magic"
    when 4 then @commands[1] = "Vamptech"
    when 5 then @commands[1] = "Psy"
    when 6 then @commands[1] = "Lexitech"
    when 7 then @commands[1] = "Blade"
    when 8 then @commands[1] = "Lucitech"
    when 9 then @commands[1] = "Ability"
    when 10 then @commands[1] = "Wolverine"
    when 11 then @commands[1] = "Ability"
    when 12 then @commands[1] = "Ability"
    when 13 then @commands[1] = "Chaotech"
    end
    refresh
  end
 
end
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

darkace77450

Thanks Blizzard.  It took me a little to put two and two together (the number is the class number), but it works now.  Its a short yet effective code.  Looking around the site it is clear you know your stuff.  Thanks again.

darkace77450