aaronjmcd2

Veteran
Veteran
Joined
Aug 19, 2015
Messages
36
Reaction score
0
First Language
English
Primarily Uses
I'm trying to create a battle in which the function that alphabetizes the enemies (i.e., Bat, Bat A, Bat B, Bat C, etc...) is turned off, so all the bats would just be called "Bat."  I would prefer this to be the case for just this one evented battle.  But I'm willing to completely turn it off if needed. Thanks for your help!    
 

Dachimotsu

Veteran
Veteran
Joined
Oct 26, 2015
Messages
61
Reaction score
13
First Language
English
If it's just one battle, make duplicates of the enemy and use the same exact name. It only adds letters to multiple enemies with the same id.

I think. I haven't tested it, but you can give it a shot.
 
Last edited by a moderator:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
45,479
Reaction score
16,398
First Language
English
Primarily Uses
RMMV
Comment out line 5235 of rpg_objects.js:

Code:
this.makeUniqueNames();
Or if you want it as a plugin that you can just add to the game (which means you don't need to remember to make the change every time there's an update to the default scripts, and it's easy to add to new projects), save the following into a new .js file (any name) in your js/plugins folder and add it to your game via the plugin manager:
Code:
Game_Troop.prototype.makeUniqueNames = function() {};
 
Last edited by a moderator:

aaronjmcd2

Veteran
Veteran
Joined
Aug 19, 2015
Messages
36
Reaction score
0
First Language
English
Primarily Uses
Comment out line 5235 of rpg_objects.js:

this.makeUniqueNames();Or if you want it as a plugin that you can just add to the game (which means you don't need to remember to make the change every time there's an update to the default scripts, and it's easy to add to new projects), save the following into a new .js file (any name) in your js/plugins folder and add it to your game via the plugin manager:
Code:
Game_Troop.prototype.makeUniqueNames = function() {};
I just inserted the plugin, and it works great! Thanks!  It should be noted for anybody who tries to use this plugin that the plugin does not work in the Battle Tester.  I had to test it during actual game play.  Thanks again!
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
45,479
Reaction score
16,398
First Language
English
Primarily Uses
RMMV
Did you save it first before trying the battle test? Normally when you play test, it asks you to save first, and at that point all the plugin settings you've changed are saved, and available for reading when the game launches. If you add the plugin but don't save, then it's only in memory that it knows about the plugin, and not the files on your computer, and those are what's used when you do a battle test. Saving will update them with the latest of what's in memory.


Having said that, when you do a battle test, not everything is loaded, and battles are called in a different way. So it is possible that even with saving prior to battle test, it still may not take effect. That would mean that NO plugins are effective for battle test, and I kind of find it hard to believe.


So, after saving, try the battle test again and see if it behaves differently.
 

aaronjmcd2

Veteran
Veteran
Joined
Aug 19, 2015
Messages
36
Reaction score
0
First Language
English
Primarily Uses
Did you save it first before trying the battle test? Normally when you play test, it asks you to save first, and at that point all the plugin settings you've changed are saved, and available for reading when the game launches. If you add the plugin but don't save, then it's only in memory that it knows about the plugin, and not the files on your computer, and those are what's used when you do a battle test. Saving will update them with the latest of what's in memory.

Having said that, when you do a battle test, not everything is loaded, and battles are called in a different way. So it is possible that even with saving prior to battle test, it still may not take effect. That would mean that NO plugins are effective for battle test, and I kind of find it hard to believe.

So, after saving, try the battle test again and see if it behaves differently.
Oh, you were absolutely right, it worked after save.  Still a total noob.  Thanks again!
 

Latest Threads

Latest Posts

Latest Profile Posts

On the "things im remaking" department even i kept getting confused by my status grenades similarity so i decided to redo both of them, now the icons and being thrown animations are very distinctive from each other :kaopride:
1679511126658.gif
1679511135459.gif
I genuinely like the default MZ actor sprites, and the character creator. I think I will draw new headshots for them, but part of me doesn't want to replace the default sprites. But should I? I want to eventually release my game.
Someday, I hope they make a game where 95% of the animation budget went to turning valves and opening door animations, leaving every other animation looking like a CDI zelda cutscene.
programming at 12 years old: "I love how it works!"
programming at 18: "I love that it works."
programming at 25: "I love why it works."
programming at 30: "I love when it works."
programming at 50: "How did this work?"

Forum statistics

Threads
129,765
Messages
1,204,934
Members
170,855
Latest member
snow521
Top