I'm using AGS 3.1
I have an input box to get the game player name.
The name input is a string
I would like to display the text "welcome " followed by the name.
It would be something like this but the last line doesn't work...
function cEgo_Talk()
String A = Game.InputBox("!What is your name?");
String B = ("Welcome ");
Display (BA&);
Should I use .append?
If you don't need to keep the formatted text, just format it directly in the Display() line.
function cEgo_Talk(){
String A = Game.InputBox("!What is your name?");
Display ("Welcome %s", A);
}
See the manual (http://www.adventuregamestudio.co.uk/manual/StringFormats.htm) for more details.
function cEgo_Talk()
String A = Game.InputBox("!What is your name?");
String B = "Welcome ";
B=B.Append(A);
Display (B);
Thanx guys :)