Affecting a text value to a string variable?
Posted: Wed Aug 31, 2005 7:44 pm
Hello to everybody,
As you may know, I have been developping for 1 year a precalculated 3D shooter game using GE: I am very very close to the end right now (a few days more!).
Currently, I have the following problem: how may I affect a text value to a string variable?
My purpose is to associate a player's name (let's say "Mr X") to a special HiScore value (10000 for instance), and, then, save both variables (let's call them "NameVar" and "ScoreVar") using the "saveVar" script method.
I would like to know the right syntax/method equivalent to the following "code":
ScoreVar = 10000;
NameVar = "Mr X";
Of course, this does not work!
Have you any suggestion that would be very helpful?
Many thanks in advance to the GE community!
Best Regards,
Regis
As you may know, I have been developping for 1 year a precalculated 3D shooter game using GE: I am very very close to the end right now (a few days more!).
Currently, I have the following problem: how may I affect a text value to a string variable?
My purpose is to associate a player's name (let's say "Mr X") to a special HiScore value (10000 for instance), and, then, save both variables (let's call them "NameVar" and "ScoreVar") using the "saveVar" script method.
I would like to know the right syntax/method equivalent to the following "code":
ScoreVar = 10000;
NameVar = "Mr X";
Of course, this does not work!
Have you any suggestion that would be very helpful?
Many thanks in advance to the GE community!
Best Regards,
Regis