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.

Take away attack.

This may seem very simple for anyone who scripts. But what do I edit to take out the ATTACK command during battle. I don't want to change the name, I want to take it out completely. Any help would be great.
 
No. I'm making a different kind of battle system. The Skill becomes attack techniques, no magic in this game. I have a combo system in place of the skills which become attacks, but it's useless if the attack option is still there.
 
I finally found your post!:thumb: lol I lost it ^_^
Anyway, I've figured out how to get rid of Attack in battle but i'm still nooby so I can't garuntee it but it's working so far.

In Scene_Battle 1 replace:
Code:
    # Make actor command window
    s1 = $data_system.words.attack
    s2 = $data_system.words.skill
    s3 = $data_system.words.guard
    s4 = $data_system.words.item
    @actor_command_window = Window_Command.new(160, [s1, s2, s3, s4])
with:
Code:
    # Make actor command window
    s1 = $data_system.words.skill
    s2 = $data_system.words.guard
    s3 = $data_system.words.item
    @actor_command_window = Window_Command.new(160, [s1, s2, s3])
 
That doesn't work, simply because of the command input in update_phase3_basic.

If you use the new SDK (2.0), I can give it to you in 11 lines of code.

Code:
class Scene_Battle < SDK::Scene_Base
  alias_method :seph_noattack_scnbtl_mw, :main_window
  def main_window
    seph_noattack_scnbtl_mw
    commands = @actor_command_window.commands
    if commands.include?(SDK::Scene_Commands::Scene_Battle::Attack)
      commands.delete(SDK::Scene_Commands::Scene_Battle::Attack)
    end
    @actor_command_window.commands = commands
  end
end
 

Grant

Member

I'd like to have this script too.
In fact, I'm spamming the boards about it.
Unintentionally, of course.

[I can't really upgrade from SDK 1.5 to SDK 2.0 either.
It doesn't agree with many of my current scripts.]
 

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