Global/Local.

METALGod32
07 May 2005, 23:35
Hey.


Can anyone Tell me how to Make a String Variable Local?, I've tried to and i get a Run Time Error 9.



Thanks in Advance :)

paul_one
08 May 2005, 02:38
There are no local variables in Quest.

That's why the '.' naming convention is so good. You can have:
function1.armour.defense variable, in function 1, while function2.armour.defense doesn't change function1's.

METALGod32
08 May 2005, 02:46
In Multiplayer there are Local Variables though, It's called: scope, and Global Variables.

I Want to beable to have the player type in a name, and that name can only be seen by him/her, It works Globally but thats no good because if a player names there char, then if it's globally all the players chars will be named that.

But if it's Local then only there char is named that.

paul_one
08 May 2005, 12:52
If it's multiplayer then you ARE in the wrong forum..

Anyway, try setting either a game property (game[userid]) or a normal player variable (#variable[userid]#).
It really isn't that hard to pay attention and read the various posts through-out the forum you know.

METALGod32
08 May 2005, 22:04
I Didn't asked to be told off...LOL, i simply asked for Help.