Enter Monster Message ACE
#1
Enter Monster Message ACE

by Kyonides

Introduction

In the last few days of RMW, a forumer called avelanch had made a couple of requests. One of them was monster related: the engine should display a custom enter monster message before you can get access to the battle menu. This script is a very simplistic approach to the original concept.

Required Steps

  1. Create a new Constant inside the small Vocab module extension my scripts has provided you.
  2. Add a new entry to the LIST hash. Use the enemy's name as the key and any of the Vocab Constants as its specific value.

The Script(s)

Constant Version
- Because it relies on CONSTANTS to store all the custom text messages.

Code:
# * Enter Monster Message ACE * #
# * Constant Version          * #
#   Scripter : Kyonides
#   2026-06-19

module Vocab
  Bite    = "%s is ready to bite you!"
  Chewing = "%s started chewing some cheese!"
  SlipIn  = "%s slips into the battlefield!"
  Buzzing = "%s starts buzzing!"
  Bonfire = "%s lit a bonfire!"
end

module EnterMonster
  include Vocab
  LIST = {} # Leave this line alone!
  LIST.default = Emerge
  LIST["Slime"] = SlipIn
  LIST["Bat"] = Bite
  LIST["Hornet"] = Buzzing
  LIST["Spider"] = Bite
  LIST["Rat"] = Chewing
  LIST["Wisp"] = Bonfire
end

module BattleManager
  def self.find_monster_start_message(name)
    template = EnterMonster::LIST[name]
    sprintf(template, name)
  end

  def self.battle_start
    $game_system.battle_count += 1
    $game_party.on_battle_start
    $game_troop.on_battle_start
    $game_troop.all_enemy_names.each do |name|
      text = find_monster_start_message(name)
      $game_message.add(text)
    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

class Game_Troop
  def all_enemy_names
    members.map(&:original_name)
  end
end

In the future I may publish another version that relies on custom note tags placed in the enemy's notebox.

Terms & Conditions

Under MIT License.
That's it! Tongue sticking out
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply


Messages In This Thread
Enter Monster Message ACE - by kyonides - Today, 12:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Animated Message Profiles VX DerVVulfman 1 2,833 06-14-2025, 11:48 PM
Last Post: DerVVulfman
   Toggle Message Window VX kyonides 0 2,442 11-11-2024, 01:36 AM
Last Post: kyonides
   Disable F1, Alt+Enter and F12 DerVVulfman 0 2,195 07-14-2019, 03:56 AM
Last Post: DerVVulfman
   Universal Message System VX ccoa 2 14,241 03-10-2010, 07:01 PM
Last Post: DerVVulfman



Users browsing this thread: 1 Guest(s)