Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: BangBang on August 21, 2015, 01:41:45 PM

Title: Inserting variables into text
Post by: BangBang on August 21, 2015, 01:41:45 PM
Hi all, I'm quite a beginner with all this so sorry if the answer is obvious.

What I want to know is how to insert a variable into text that already has other text.

For example if a player inserts their name that is saved as a string, how would I go about having text read "Welcome, <playername>!"

I know how to call a string variable by itself but I can't think how to have it with other text.

Thanks for any support provided!
Title: Re: Inserting variables into text
Post by: Sid on August 21, 2015, 08:52:27 PM
Use "Get Name" to convert the game object name to a string then use "Build String" if you wish to add them together.

Build String https://hutonggames.fogbugz.com/default.asp?W372 (https://hutonggames.fogbugz.com/default.asp?W372)

Title: Re: Inserting variables into text
Post by: BangBang on August 22, 2015, 09:46:34 AM
Thank you!