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.

No Attack command

Sorry to be a bother,
To put it simply, I don't want the "Attack" Command in battle.  It's too generic.  Instead, I would rather the player have to pick from either "Attack" (which would be the default command "skill") "Defend" or "Item".  This way, he/she could pick a move rather than just the basic "attack".  Thanks to anyone who takes an interest in this! 
 

poccil

Sponsor

Lines 30-31 of script section Scene_Battle 1:

Code:
    @actor_command_window = Window_Command.new(160, [s1, s3, s4])
    @actor_command_window.y = 192

Lines 121-132 of script section Scene_Battle 3:

Code:
      case @actor_command_window.index
#      when 0  # attack
        # Play decision SE
#        $game_system.se_play($data_system.decision_se)
        # Set action
#        @active_battler.current_action.kind = 0
#        @active_battler.current_action.basic = 0
#        # Start enemy selection
#        start_enemy_select
      when 0  # skill
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
 
Works great except for 1 correction:

Replace lines 121-144 in Scene_Battle 3:
Code:
      case @actor_command_window.index
#      when 0  # attack
        # Play decision SE
#        $game_system.se_play($data_system.decision_se)
        # Set action
#        @active_battler.current_action.kind = 0
#        @active_battler.current_action.basic = 0
#        # Start enemy selection
#        start_enemy_select
      when 0  # skill
        # Play decision SE
        $game_system.se_play($data_system.decision_se)        # Set action
        @active_battler.current_action.kind = 1
        # Start skill selection
        start_skill_select
      when 1  # guard
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Set action
        @active_battler.current_action.kind = 0
        @active_battler.current_action.basic = 1
        # Go to command input for next actor
        phase3_next_actor
      when 2  # item

Thanks poccil, you are getting credit in my game!
 

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