[Probably simple] A way to display the enemy's name in the battle victory message

Austintatious

Veteran
Veteran
Joined
Jul 16, 2015
Messages
35
Reaction score
8
First Language
English
Primarily Uses
After every battle I want it to read:

"You ended [insert enemy name here]'s life! And for what?"

"200 Gold"

"Broadsword"

Is there something that will allow this built into VX Ace? Right now it lets me insert the protagonist's name but that's it.
 

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
Try this:

Code:
#==============================================================================# ■ Meow Face Battle End Enemy Name display#------------------------------------------------------------------------------# Display Defeated Enemy names at the end of Battle#==============================================================================# How to Use:# Plug & Play, Put this script below Material and above Main#==============================================================================module BattleManager#--------------------------------------------------------------------------# ◎ Starting of Alias Methods#--------------------------------------------------------------------------  class <<self      alias meow_battle battle_start    alias meow_win process_victory  end  def self.battle_start    meow_battle    @meownames = $game_troop.enemy_names2  end  def self.process_victory    @meownames.each do |name|      $game_message.add("You have defeated "+name)    end    $game_message.add("And for what?")    meow_win  end#--------------------------------------------------------------------------# ◎ End of Alias Methods#--------------------------------------------------------------------------endclass Game_Troop < Game_Unit#--------------------------------------------------------------------------# ○ New Method#--------------------------------------------------------------------------  def enemy_names2    names = []    members.each do |enemy|      names.push(enemy.original_name)    end    names  endend
 
Last edited by a moderator:

Austintatious

Veteran
Veteran
Joined
Jul 16, 2015
Messages
35
Reaction score
8
First Language
English
Primarily Uses
That works beautifully MeowFace. The only thing I had to do was delete the existing victory message in the Vocab script. Thanks again!
 

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
You're welcome! ;)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top