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.

A pretty stupid question (solved)

You're here... I knew the muffin on the title would draw pplz!

OK, I have a select character and character's name option in the start of my game, but I dunno how to make peoples and such say my character's name, :crazy: especialy counting on that I got a few optional characters. :dead: so... how do I do it?
 
In the Show Text option, you would use \n[] in place of the character's name, where you put the actor ID in the brackets. So if you want to display actor 1's name, just do something like:

Show Text: Hello, \n[1], how are you doing?
 
Regi":2g91htmi said:
In the Show Text option, you would use \n[] in place of the character's name, where you put the actor ID in the brackets. So if you want to display actor 1's name, just do something like:

Show Text: Hello, \n[1], how are you doing?
Yea, I sortof knew about this, but the prob is that he can choose characters too.
That muffin gives me good luck, I think I'll use it as a logo thingy.
 
If that's the case I would a condition branch triggered by a variable and the player gains a particular variable that actives the condition branch in which the npc says the actor's name.
 
If that's the problem, then try using this code when you're letting the player select characters.
Code:
@>Show Text: Which character do you want?
@>Show Choices: Fighter, Magician, Hunter
 : If Fighter
  @>Name Input Processing: Fighter
  @>Call Script: $game_variables[x] = $game_actors[1].name
 : If Magician
  @>Name Input Processing: Magician
  @>Call Script: $game_variables[x] = $game_actors[2].name
 : If Hunter
  @>Name Input Processing: Hunter
  @>Call Script: $game_variables[x] = $game_actors[3].name

Obviously, you'd modify that with the text, classes, and IDs you want (the coding may change, too, if you're using a different method for the player to select characters).

Now, once you've done that, all you have to do is use \v[] instead of \n[], and type the number of the variable you used before in the Call Script. I haven't tested this, but it should work.
Good luck with it :thumb:
 
Thanx guys, but I found out a really simple solution-when you choose characters instead of changing characters I simply add one character and costimize graphics graphics class etc. thx for the help though!  :straightthumb:  :thumb:
 

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