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.

Name Request

Ok, my game works on a system that determines the face of the player by the actor's ID (thanks to Brewmeister's edit of Slipknot's message script.  Now, since I'm not using the first actor in the database, I can no longer use \n[1] to display the name.  So, I need a universal code (like Brewmeister made for the faces).  The system would check the player's actor ID, and choose the name of that particular actor based on that.  Basically, what I want is to replace \n[insert number here] to something like \n[0] (which would be said universal code).  Thanks in advance for the help! :thumb:
 
Basically, yes.  I would like it to insert the name of the actor in the party, not the database.  So, \n[1] would display your first actor's (in the party) name.  Sorry for not being clear, and thanks!
 
<chuckle>  I was editing the \[Nn] part of the code, when I looked down & saw...

Code:
    @text.gsub!(/\\[Nn][Pp]\[([\d+])\]/) do
      $game_party.actors[$1.to_i] ? $game_party.actors[$1.to_i].name : ''
    end

Try using \np[1]

Be Well
 

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