ID:169600
 
how do i make it so im the only 1 with a icon in my game?
mob
Login()
if(usr.key=="InuYasha187")
icon='you.dmi'
world<<"[usr] has logged in"
..()

That may work. You might have to change usr to src, but I'm pretty sure usr can be used in Login(). Its been a while since I've coded.
In response to Jamesburrow
Not to offtend, but a better way of doing it is to do..

mob/Login()//Change this to your main player mob if you have one.
if(src.ckey=="inuyasha187")
src.icon='YourIcon.dmi'
src.icon_state = "Whatever state"//If you just have an icon, take this out. ^
..()//Continues the rest of the Login from other procs

If you have another mob/Login() somewhere, just put
..()

right after the mob/Login()
In response to Flame Sage
You need to put a ..() anyway, otherwise you might end up with a blank screen when you login.
And, yeah, using ckey probably is better.
In response to Jamesburrow
thx alot ill try them out
In response to InuYasha187
ok didnt work i must have messed something up T-T
In response to InuYasha187
OK. Are you getting an error message?
In response to Jamesburrow
yea i am
In response to InuYasha187
Would you mind telling us what it is?
In response to Jamesburrow
k i fixed it but when i login it dosnt change it makes me pick 1 of the other chars v.v
In response to InuYasha187
Can we see your actual code? I think i might know how to fix it.
In response to InuYasha187
Add this to the END of your login code:
if(ckey=="inuyasha187")icon='inuyasha.dmi'
In response to Jamesburrow
nvm i got it to work thx