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.

Showing Variables and Changing the Color of the Text in Messages

This should be pretty obvious, because its in the F1 Help thing as far as I know, but you can use these commands while having someone say a message, and it will change it, make it more interesting.


Put this in front of the text you want to change the color of

\c[#]

Where the Number is the color.

0 = White
1 = Blue
2 = Red
3 = Green
4 = Turquoise-sh
5 = Purple/pink
6 = Yellowish
7 = Gray

Every number beyond that is white again, as far as I'm concerned.

How can you use this in your game? For my own example, I highlight Important things, like controls, story line things, or main quest things, with RED, to make it seem important/stand out.

If your reading a book or something, I put it in Yellow, so it just seems a little different.

For me, when you find things, I put potions and usable things in Green, and Money amounts in Blue.




Also, you can display variables, using \v[#]

Where the # is the number of the variable.

How do you check this? Go to Variable Operations, Edit the variable, and it has the number to the left of the name.


I hope this helped. xD
 

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