Alternative battle messages

Kricketot

The
Veteran
Joined
Apr 19, 2015
Messages
49
Reaction score
1
First Language
English
Primarily Uses
RMVXA
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.
 

Victor Sant

Veteran
Veteran
Joined
Mar 17, 2012
Messages
1,694
Reaction score
1,452
First Language
Portuguese
Primarily Uses
This will require a script, there is no way to make the game display different "emerge" messages without editing the scripts.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
 

Kricketot

The
Veteran
Joined
Apr 19, 2015
Messages
49
Reaction score
1
First Language
English
Primarily Uses
RMVXA
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

HopeFragment

H'witch Nerd
Veteran
Joined
Mar 15, 2014
Messages
121
Reaction score
11
First Language
English
Primarily Uses
RMVXA
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...
 
Last edited by a moderator:

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
@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).
 

HopeFragment

H'witch Nerd
Veteran
Joined
Mar 15, 2014
Messages
121
Reaction score
11
First Language
English
Primarily Uses
RMVXA
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. 
 

Super121830

Play-fighter
Veteran
Joined
Jul 24, 2014
Messages
107
Reaction score
55
First Language
Spanish
Primarily Uses
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.
 
Last edited by a moderator:

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
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)
 
Last edited by a moderator:
  • Like
Reactions: BCj

Kricketot

The
Veteran
Joined
Apr 19, 2015
Messages
49
Reaction score
1
First Language
English
Primarily Uses
RMVXA
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"
 

Super121830

Play-fighter
Veteran
Joined
Jul 24, 2014
Messages
107
Reaction score
55
First Language
Spanish
Primarily Uses
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.
 

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
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. ;)
 

Kricketot

The
Veteran
Joined
Apr 19, 2015
Messages
49
Reaction score
1
First Language
English
Primarily Uses
RMVXA
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. ;)

I'll try it
 

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
Good luck and do let us know how it turns out. ;)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top