I'm currently working on a game with lots of scripted dialogue. One of the features of the game is that we are having players create their own characters. These characters will interact with NPC's. We want the NPC's to be able to display large amounts of text while speaking directly to the player's character.
However in order to make the dialogue sound more realistic we need the ability for the NPC's to address the player by the NAME they've chosen and the GENDER they've chosen. I'm using Global Strings to hold both of them.
Here's some sample text that illustrates what I'm trying to achieve:
I'm a bit stumped on how to achieve this. The String Object can handle large paragraphs and lots of them but it seems very limited in the ability to format individual words (bold, italic, etc.). The Formatted Text Object seems a bit better as I can create the dialogue for my NPC's using Rich Text files (.rtf) and format it with more options then the previously mentioned String Object."Hello $NAME, we've been expecting you. Please take a seat and make yourself comfortable. It's been a while since we've had the company of a good $GENDER at our humble camp..."
However, both of these methods don't seem to allow me to insert Global Strings and have them embedded inside of the paragraphs and/or rich text files.
Would anyone have any suggestions on how this could be done? I'd deeply appreciate this! :/