How to temporarily disable the "[Enemy] has appeared" message?

Discussion in 'RPG Maker VX Ace' started by FishStickMystic, Feb 25, 2018.

Thread Status:
Not open for further replies.
    Tags:
  1. FishStickMystic

    FishStickMystic The Nerdiest Nerd Veteran

    Messages:
    30
    Likes Received:
    30
    Location:
    City Z
    First Language:
    English
    Primarily Uses:
    RMVXA
    Hello! I just need some simple help.

    I want to temporarily disable the "[Bleh] has appeared!" message for a specific fight (with switches, calls or whatever is easiest) since the boss is supposed to be revealed after some beginning dialogue.

    Thanks!
     
    #1
  2. Shaz

    Shaz Veteran Veteran

    Messages:
    37,970
    Likes Received:
    11,632
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    I haven't tested this, so not sure if it will work. Replace 15 below with whatever switch you want to use, then turn the switch ON when you DON'T want the window to show.

    Code:
    module BattleManager
      #--------------------------------------------------------------------------
      # * Battle Start
      #--------------------------------------------------------------------------
      def self.battle_start
        $game_system.battle_count += 1
        $game_party.on_battle_start
        $game_troop.on_battle_start
        return if $game_switches[15]
        $game_troop.enemy_names.each do |name|
          $game_message.add(sprintf(Vocab::Emerge, name))
        end
        if @preemptive
          $game_message.add(sprintf(Vocab::Preemptive, $game_party.name))
        elsif @surprise
          $game_message.add(sprintf(Vocab::Surprise, $game_party.name))
        end
        wait_for_message
      end
    end
    
     
    #2
  3. FishStickMystic

    FishStickMystic The Nerdiest Nerd Veteran

    Messages:
    30
    Likes Received:
    30
    Location:
    City Z
    First Language:
    English
    Primarily Uses:
    RMVXA
    @Shaz Yup, it works!! Thanks so much Shaz! ^-^
     
    #3
  4. Kes

    Kes Global Moderators Global Mod

    Messages:
    21,121
    Likes Received:
    10,722
    First Language:
    English
    Primarily Uses:
    RMVXA

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

     
    #4
Thread Status:
Not open for further replies.

Share This Page