ID:148230
 
It doesn't set the character as a PC with my coding, can someone help me with this bit? (And yes I am a newb, lol)

mob
PC
Login()
src << "Welcome to my first game after a long break from BYOND!"
icon = 'Jack.dmi'
if (src.key=="Syier")
icon = 'yuyummmg.dmi'
usr.loc = locate(6,1,1)
Stat()
stat("Stats:",src.desc)
if(src == usr) statpanel("Inventory",src.contents)
stat(" HP: ","[HP]/[Max_HP]")
stat(" Strength: ",Strength)
stat(" Defense: ",Defense)
stat(" Experience: ",EXP)
HP = 30
Max_HP = 30
Strength = 3
Defense = 1
EXP = 0
Weapon = 0
EXP_Give = 0
verb
Attack(mob/M in oview(1))
set category = "Battle"
var/damage = rand(Strength *6 /rand(4-12) -M.Defense/5)
usr << "You attack [M] for [damage] damage!"
M << "[usr] attacks you for [damage] damage!"
M.HP -= damage
M.Death()
WorldSay(msg as text)
set category = "Communications"
world << "-World- [usr]: [msg]"
Say(msg as text)
set category = "Communications"
view(src) << "[usr] says: [msg]"
WorldEmote(msg as text)
set category = "Communications"
view(src) << "-World- [usr] [msg]"
Emote(msg as text)
set category = "Communications"
view(src) << "[usr] [msg]"
Who()
set category = "Communications"
var/mob/M
for (M as mob in world)
if(M.client)
usr << "Name:[M:name] Key:([M:key])"
Tell(msg as text)
set category = "Communications"
var/mob/M
for (M as mob in world)
M.key << "[usr] tell you: [msg]"
usr << "You tell [M:name]: [msg]"
Logout()
world << "[usr] has loggied out of the world!"
del(src)
..()
What verb are you having trouble with?
If the players are logging in as plain /mobs instead of /mob/PCs, then you have to set world/mob:

<code>world mob=/mob/PC //Set default player mob</code>