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.

Script for Mob Names in battle?

Where can I find a script that shows the mobs name in the bottom box with all the other info?

I changed to RTAB v1.16, is it possible to get enemy display? i noticed there are a bunch of other add ons so figured id check.....


thanks

i didnt see anything in the add-on's menu....
 

poccil

Sponsor

If by "mobs" you mean troops:

Code:
class Game_Troop
  alias _petero_troopname_Game_Troop_setup setup
  def name
    return @name ? @name : ""
  end
  def setup(troop_id)
    troop = $data_troops[troop_id]
    @name=troop.name
    _petero_troopname_Game_Troop_setup(troop_id)
  end
end

After that, using "$game_troop.name" will return the name of the current troop.
 

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