Page 1 of 1

Text values

PostPosted: Mon Sep 07, 2009 3:39 pm
by Sniperkasa
Okay may be missleading subject.. couldnt think of anything better but.
Is there any way to add many variables to one text column..?

Re: Text values

PostPosted: Mon Sep 07, 2009 4:03 pm
by Ian151
I think you mean this...
In the text box...
Code: Select all
{scene.my.blueteamnameexample + "\n" + scene.my.blueteamscoreexample + " Points"}


That will look something like this on the textbox.

Blue team
0 Points

the backwards slash \ with the letter n act like a return key which is how you got the 0 points to be below the team name. Simply add variables together with +, and when you want special text to always be there, like the word " Points", then use that in adding too. If you want a nice looking space after a variable, just simply add a space before the words in the static strings you add.

EDIT: I also think you are talking about adding text to a textbox with scripting as well. I think you should put invisible variables with strings in there that will become visable, like for example, change scene.my.blueteamname from "" to "Blue Team". That might work if you want text to be added in specific locations.

Re: Text values

PostPosted: Mon Sep 07, 2009 5:00 pm
by Sniperkasa
Hmm thats what i tried earlier.. wonder why it didnt work :/ now it works though..