mob/Logout()
world << "[src] has left this world."
del(src)
what do I put to make it show char name instead of key?
ID:148119
Jul 4 2003, 7:21 am
|
|
In response to Camaro
|
|
no name appears when I do that
|
In response to Blueseed15
|
|
Then you never set the mob's name.
|
In response to Jon88
|
|
What you mean never set the mobs name? other than logout it always uses the char name.
|
In response to Blueseed15
|
|
Try this in your login..
mob/Login Then go back to my first post about the Logout(). -Camaro- |
In response to Camaro
|
|
already have that in my char creation
|
In response to Blueseed15
|
|
Then Camaro's first post shows you how to do it and it will work perfectly. It will show the name var of the mob logging out.
|
In response to Jon88
|
|
Yes Comaros should have worked, but you can try this. [src:name], this is if you set the var to only the mobs and it will be buggy later on in your process of game making
|
In response to Crashed
|
|
Crashed wrote:
Yes Comaros should have worked, but you can try this. [src:name], this is if you set the var to only the mobs and it will be buggy later on in your process of game making There is absolutely no excuse for using the : operator with src. It's bad enough to suggest using it for other situations, but the type of src is always known (unless you monkey around with it, anyway). If src.name isn't working, src:name would work no differently. And src:anything is completely inane--never ever ever do that. Lummox JR |
In response to Lummox JR
|
|
I just made a test and there is nothing wrong with using src to tell their current name when they logout. Are you sure your name is different than your key?
|
In response to Super16
|
|
Super16 wrote:
I just made a test and there is nothing wrong with using src to tell their current name when they logout. Are you sure your name is different than your key? Well, src.name (or just name) is actually preferable because if you use src, it will put "The" in front of any lowercase name. Lummox JR |
In response to Lummox JR
|
|
Ok, it's fixed... thanks for your help all...
|
-Camaro-