For my game I need to figure this out. How (at all) can I give certain enemies custom battle messages, for example, one battle would be "Enemy appears!" and another would be "Enemy confronts you!" Maybe using a script or something.
Alternative battle messages
RGSS3 Script RequestsThis will require a script, there is no way to make the game display different "emerge" messages without editing the scripts.
This script by Hime is not exactly what you are looking for since it modifies the troop name in the emerge message rather than the "emerged" part of it; however, it should be immensely helpful reference in case you need to script it yourself.
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
I never requested a script, I simply stated that I needed a method of performing the simple task I needed for my game. I may have questioned if a script was available, but I certainly didn't request someone make one.
It cannot be done without scripts, therefore if you still want it done, it needs to be in Script Requests.
And you did say "maybe using scripts or something", so you kind of did request a script.
And you did say "maybe using scripts or something", so you kind of did request a script.
I would like a script that does this sort of thing too, I can't seem to decide on one single battle start message for every single enemy in the game to use...
@HopeFragment By default the game should display name once for each enemy type at battle start message (without repeating the same type name). So if you have 2 Hornets, 1 Snake appearing, it will only show "Hornet appeared, Snake appeared", if you want it to display the start message as "Hornet A appeared, Hornet B appeared, Snake appeared", a small change to the script is required to have it read from unique names instead of original names.
@Kricketot If you mean you want the game to show different vocabs, like a random choice of "XXX appeared" or "XXX confronts you", it's doable but will certainly require a script to add a randomize pick from the vocab library(or in this case an alternative module).
@Kricketot If you mean you want the game to show different vocabs, like a random choice of "XXX appeared" or "XXX confronts you", it's doable but will certainly require a script to add a randomize pick from the vocab library(or in this case an alternative module).
I meant I want the same kind of script that Kricketot wants. I can't decide on if I want all enemies to "appear", "confront", "challenge" you, etc. 95% of my game's bosses are human, while most of the normal enemies are not, so usually the bosses "challenge" you, while the non-bosses "appear", if you get what I mean.
You would need Yanfly's Battle Core script.
With this script you can hide the default "Enemy emerged" text.
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# - Streamlined Messages -
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Want to remove some of those annoying messages that appear all the time?
# Now you can! Select which messages you want to enable or disable. Some of
# these messages will be rendered useless due to popups.
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
MSG_ENEMY_APPEARS = false # Message when enemy appears start of battle.
Find this part of the script and leave it as false.
Then add a "Show text" command in every troop at Turn 0, and write whatever you want, that way you can customize your battle start messages.
This can be time consuming, but does the job.
With this script you can hide the default "Enemy emerged" text.
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# - Streamlined Messages -
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Want to remove some of those annoying messages that appear all the time?
# Now you can! Select which messages you want to enable or disable. Some of
# these messages will be rendered useless due to popups.
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
MSG_ENEMY_APPEARS = false # Message when enemy appears start of battle.
Find this part of the script and leave it as false.
Then add a "Show text" command in every troop at Turn 0, and write whatever you want, that way you can customize your battle start messages.
This can be time consuming, but does the job.
Yup, what Super121830 said might be your best way round and mostly uses troop event should do the trick.
As for adding Yanfly engine, you don't have to do that.
Simply go into BattleManager in your script editor and look under
def self.battle_start
change these to
$game_troop.enemy_names.each do |name|
$game_message.add(sprintf(Vocab::Emerge, name))
end
these
#$game_troop.enemy_names.each do |name|
#$game_message.add(sprintf(Vocab::Emerge, name))
#end
or simply delete that 3 lines (not recommended)
As for adding Yanfly engine, you don't have to do that.
Simply go into BattleManager in your script editor and look under
def self.battle_start
change these to
$game_troop.enemy_names.each do |name|
$game_message.add(sprintf(Vocab::Emerge, name))
end
these
#$game_troop.enemy_names.each do |name|
#$game_message.add(sprintf(Vocab::Emerge, name))
#end
or simply delete that 3 lines (not recommended)
What I want is... For a Slime it would say "Slime attacks!" for a Rat it would say "Rat runs into you!" and for a certain boss it would say "Boss steps forward!"
So if Slime and Rat appears at the same time it would display "Slime attacks and Rat came too"
So if Slime and Rat appears at the same time it would display "Slime attacks and Rat came too"
Yeah, more or less, let's say you have four troops in your database. Slime, Rat, Boss, and Slime+Rat. And the text at the battle start could be the following:
Slime: Slime attacks!
Rat: Rat runs into you!
Boss: Boss steps forward!
Slime+Rat: Slime attacks and Rat came too!
Note that this would be impossible to do with random generated troops.
Slime: Slime attacks!
Rat: Rat runs into you!
Boss: Boss steps forward!
Slime+Rat: Slime attacks and Rat came too!
Note that this would be impossible to do with random generated troops.
Simply disable the start message box using the code example above then add a message to your troop event at the start of the battle will do. You can type anything you like in a message. 😉
Good luck and do let us know how it turns out. 😉
Original thread: https://forums.rpgmakerweb.com/threads/alternative-battle-messages.57115/