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.

Custom Name Question

Nolund

Sponsor

Just curious, as I have never made a game where the names were not set.

What I need to know is, when a player inputs a name to change the character, how do I have it so the game recognizes that the name was changed throughout the story. Like, say I want to do a game where a player can choose not only the name, but gender of the main character at the start of the game, do I need to set variables, or is there something I can do via script so the game registers that the name is changed.
 
As for gender, you should use a switch to keep track of it. You can also create extra characters who are named things like "he" or "she" and "him" or "her" depending on what gender you choose to save yourself from having to write extra messages. Then just write \n 
 

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