ID:157745
![]() Jan 7 2010, 3:15 pm
|
|
Does usr.name equal your Byond key (or a guest's number) every time they enter even if you set it to something different?
|
![]() Jan 7 2010, 3:26 pm
|
|
No.
|
If a client's mob has no name, it will default to the client's key. If any other atom has no name, it will default to the node it was defined as.
|
Spunky_Girl wrote:
If a client's mob has no name, it will default to the client's key. If any other atom has no name, it will default to the node it was defined as. No. The default action of client/New() is to create a new mob of type world.mob, with a name equal to your key. If you simply move someone to another mob, it won't change the name of that mob unless you do that yourself. |
usr.name is simply the name of the mob not the key. The name can be changed any time but if the key is changed, last I checked(if you change a client's key), it will disconnect them.
|
Depends on what the usr is. In BYOND I suppose there are client verbs and mob verbs. So depends.But Client does not have a var named name. So its a mob always.
Since usr is a mob it is mob.name which is may not be equal to mob.key. mob.name is set equal to mob.key when it is created through client.New(). |