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.

About MACL. ?WaitCommand?

Status
Not open for further replies.
Hello Again. I have a Little Question again.
In the MACL 2.1. I see in the Game_BattleAction Class, a method called: "WAIT_USING".

Code:
class Game_BattleAction
  #-------------------------------------------------------------------------
  # * Attack Using
  #   - Set this to the basic ids that perform an attack effect
  #-------------------------------------------------------------------------
  ATTACK_USING = [0]
  #-------------------------------------------------------------------------
  # * Skill Using
  #   - Set this to the kinds that perform an skill effect
  #-------------------------------------------------------------------------
  SKILL_USING  = [1]
  #-------------------------------------------------------------------------
  # * Defend Using
  #   - Set this to the basic ids that perform an defend effect
  #-------------------------------------------------------------------------
  DEFEND_USING = [1]
  #-------------------------------------------------------------------------
  # * Item Using
  #   - Set this to the kinds that perform a item using effect
  #-------------------------------------------------------------------------
  ITEM_USING   = [2]
  #-------------------------------------------------------------------------
  # * Escape Using
  #   - Set this to the basic ids that perform an escape effect
  #-------------------------------------------------------------------------
  ESCAPE_USING = [2]
  #-------------------------------------------------------------------------
  # * Wait Using
  #   - Set this to the basic ids that perform a wait effect
  #-------------------------------------------------------------------------
  [COLOR=Red]WAIT_USING  = [3][/COLOR]
end

Can somebody explainme: ?wich is the use of this method?

Thanks.:thumb:
 
I didn't do this, but I can only speculate...

Scene_Battle 4, under make_basic_action_results
Code:
    # If doing nothing
    if @active_battler.current_action.basic == 3
      # Clear battler being forced into action
      $game_temp.forcing_battler = nil
      # Shift to step 1
      @phase4_step = 1
      return
    end

I believe its for customizable commands, like Attack, Item, etc. The 3 is probably used for something like:
Code:
    # If doing nothing
    if Game_BattleAction::Wait_Using.include?(@active_battler.current_action.basic)
      # Clear battler being forced into action
      $game_temp.forcing_battler = nil
      # Shift to step 1
      @phase4_step = 1
      return
    end


Oh wait! Under MACL.RGSS.Action Test
Code:
  #-------------------------------------------------------------------------
  #   Name      : Is a Wait?
  #   Info      : Is Action a wait like command (That is, if basic is three
  #               Or if the action's basic is included in wait using and the 
  #               kind is 0)
  #   Author    : Trickster
  #   Call Info : No Arguments
  #-------------------------------------------------------------------------
  def is_a_wait?
    return (@kind == 0) && (WAIT_USING.include?(@basic) || @basic == 3)
  end

So you can just have:
Code:
    # If doing nothing
    if @active_battler.current_action.is_a_wait?
      # Clear battler being forced into action
      $game_temp.forcing_battler = nil
      # Shift to step 1
      @phase4_step = 1
      return
    end


My best guess at understanding the Boomerman's brain. ;)
 
Its more for like making a new command. Yes, any battler can use this, but I believe is for things like Trickster's Advanced Battle Commands System.

I'll drag Trick over here to see if we wants to add anything...
 
Status
Not open for further replies.

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