Well, Since I am new to both programming and the Game-editor engine, I can only offer you this advice I read from one of my C programming books...
- Code: Select all
int main()
{
Char me[20]
printf("What is your name?");
scanf("%s" ,&me);
Printf("Nice to meet you, %s!\n" ,me);
return(0);
}
What that does there is create a character (char) for the word "me" which can hold up to 20 characters me[20] (I believe)
In C, printf is basically a keyword to print what's inside the brackets and quotations, while scanf is a keyword that waits until something is typed and stores it into the character (char) worCd "me". The "%s" line in
scanf("%s" ,&me); is basically a place holder. So when the next line goes "Nice to meet you, %s !" followed by the char "me" it's telling the placeholder %s to insert the value of me into that spot.
So say your name is David and you typed that in, "me" holds the character string/value of "David" and %s is the place holder.
Now please keep in mind I am really new at both Game-Editor and programming, so I don't know if that code is compatible with GE at all, but maybe you can understand how it works and find the keywords Game Editor uses to create Character Strings "char", how it displays lines of text "printf", what keyword it uses to scan and store input text "scanf("%s" ,me); and the placeholder "%s" .
I am really hoping that comes as some sort of help into figuring out what you need done, and my apologies in advance if it isn't compatible or doesn't work out with Game Editor (also for any spelling errors since I had typed this all on my iPad)