playMaker

Author Topic: Inserting variables into text  (Read 1584 times)

BangBang

  • Playmaker Newbie
  • *
  • Posts: 3
Inserting variables into text
« 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!

Sid

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Inserting variables into text
« Reply #1 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


BangBang

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Inserting variables into text
« Reply #2 on: August 22, 2015, 09:46:34 AM »
Thank you!