Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

HELP!!! Enemy database ID name recall to display text box

how can i recall the enemy database ID name on to diplay text box? Example, the actor will say on the display box of the enemy name on the ID recalled from the enemy database.... is there a special code? Like for example, i use variables for gold to describe how much is in the variable by typing it on the display text box using the code \v[50] gold. it would show on the display text box how much gold i have but i cant seem to know the code for the enemy database ID name into the display text box... help would be much appreciated =)
 
If you don't want to get another message system, there is an easy workaround, as this function is not included in RMXP by default.
Make a new 'Call script' command, and put in:

Code:
e=$data_enemies[ENEMY_ID]

v=e.name

$game_variables[VARIABLE_ID]=v

Where ENEMY_ID is the id of the enemy you want to call, and VARIABLE_ID is a variable thats free to change (i'd recommend setting aside a variable just for showing enemy names).

In your 'Show text', call the name through \v[VARIABLE_ID]. It will show a name instead of a number.
It's untested though; I cant access RMXP from where I am, but it should work :thumb:
 
Sorry Vergessen... this was a double post... please disregard this one... i am on the other post not this one...

to ZenVirZan... yes, i tried ur method and it works but what im trying to do is more complicated which needs more than that...
basically what im trying to do is make a troop battle event... when the party engage in battle and go's to the battle scene... before the command menu pops up, i want it to say what type gender is each enemy the party is fighting... basically, for example... if there was 3 same slime on the scene.... then the system will break them up as SlimeA, SlimeB, and SlimeC.... I was going to make a battle event which calls the enemy database ID to the text box and will have random genders for each slime which will state on the beginning of battle on the text box, for example "SlimeA is a male, SlimeB is a female, SlimeC is a male" and i was going to add additional attributes to the different genders of the same type of monster which would make every battles different and interesting even if its just a slime that the party is fighting... i hope you get the picture so you have any ideas how to go by about getting this done? I just need how to call enemy database to the text box, how to call each battle position to the text box example: SlimeA, SlimeB and SlimeC to the text box, and last which i already have a script for is a gender description... i dont need the gender cuz i already figured out how to call it to text box... i just need the other two.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top