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.

Scripting Question regarding actor class

You should probably explain it more.

Do you mean:

John is a Warrior.
His commands are -
Attack
Warrior Technique
Equipment
Etc

While Bob is a Lancer
Attack
Lancer Technique?
?

Or do you want custom skillsets based on the class?
Warrior - Sword Skills
Lancer - Spear Skills
Fighter - Bushido Ass-Kickin'
?
 
Here is something I made very quickly. Untested, but it should work. Just tell me if there's something wrong with it.
Just put it in a new script window above Main.
Code:
class Window_Command < Window_Selectable
  attr_accessor :commands
end

class Scene_Battle
  alias raz_commands_battle_update update
  def update
    unless @active_battler == nil or @active_battler.is_a?(Game_Enemy)
      @actor_command_window.commands[1] = @active_battler.class_name + " Technique"
      @actor_command_window.refresh
    end
    raz_commands_battle_update
  end
end
 

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