Anyone know how to add variables like strings or intergers into text messages such as chat? I'd also like help with how to get the player name and put it into a variable.
nyone know how to add variables like strings or intergers into text messages such as chat? Convert Integer/String to Text
I'd also like help with how to get the player name and put it into a variable. not possible yet afaik. (there is no conversion from Text to something else, due to localization issues.)
Edit: as said below you can retrieve the name as a Text value, and use it in combine text functions
Actually you can get player name into text variable, but do note you can't compare those.
As for writing, while inputting text instead of value choose function above. Use String/Combine text (or combine text multiple) then You'll be able to output (Name of player 1)+": "+ (text(integer value)) by using functions there.
Use the conversion function "Integer to Text". Then select the variable you want out of the list.
There is also conversions available for boolean, reals and strings to text.
Here is an example.
It will print "Player 1: Variable = 1" to all players.
1 slight problem how would you actually get the string for the player name? Also how do you use 'combine text multiple'? Do you have to use custom script?
nope, where you choose the actions like "integer to text" you have a action called "combinate text" then you can set the first string to playername and the second one to the integer you want.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Anyone know how to add variables like strings or intergers into text messages such as chat? I'd also like help with how to get the player name and put it into a variable.
@jangsy: Go
Convert Integer/String to Text
not possible yet afaik. (there is no conversion from Text to something else, due to localization issues.)
Edit: as said below you can retrieve the name as a Text value, and use it in combine text functions
ok so how would you in raw text write something like "player1 : <variable interger>"
Actually you can get player name into text variable, but do note you can't compare those.
As for writing, while inputting text instead of value choose function above. Use String/Combine text (or combine text multiple) then You'll be able to output (Name of player 1)+": "+ (text(integer value)) by using functions there.
@jangsy: Go
Use the conversion function "Integer to Text". Then select the variable you want out of the list. There is also conversions available for boolean, reals and strings to text.
Here is an example.
It will print "Player 1: Variable = 1" to all players.
thanks heaps.
1 slight problem how would you actually get the string for the player name? Also how do you use 'combine text multiple'? Do you have to use custom script?
nope, where you choose the actions like "integer to text" you have a action called "combinate text" then you can set the first string to playername and the second one to the integer you want.