Problems when formatting Text

Hi I am just starting out using Quest and I already have a problem, probably because I'm not as smart as I wished I was.

So I am just creating a character creation portion of my game, I managed to set it up so I can choose all the options I want, now I have a problem tho.

After choosing my characters gender it displays a message as intended:

PrintCentered (" Willkommen bei den Kindern der Nacht " +player.alias +"!")

Now I want that this text is displayed in bold letters. I managed to get the first part "Willkommen bei den Kindern der Nacht" bold, but I can't get the rest to be shown in bold letters.

Right now I have the code as following:

PrintCentered ({b:" Willkommen bei den Kindern der Nacht " +player.alias +"!"})

when I then run the game to that part it gives me an error: Error running script: Missing ')'

All I changed however was adding a {b: } around the text I want bold. Help would be appreciated.


Text-processor commands like {b are a way of including formatting and some other functions within a block of text or description. They need to be a part of the string. So you want:

PrintCentered ("{b:Willkommen bei den Kindern der Nacht " +player.alias +"!}")

Or, as you're using the text processor anyway, you could write that as:

PrintCentered ("{b:Willkommen bei den Kindern der Nacht {player.alias}!}")

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums