I am having a little trouble assigning these. I do not know why, but it has sure done my head in since Saturday.
I have tried and tried to solve this task but, I cannot seem to be able to solve the problem.
I have the player choose their name accordingly, then, when the player logs onto the map his/her name is not what they choose, but instead it is the path of the mob.
The coding goes as follows.
world << "[usr] has just entered '[world.name]'!"
var/char_name = input("Please put your character name in here.","Name") as null|text
if(char_name == null)
var/char = input(src,"Pick your character!") in list("Human","Monkey","None")
new_mob = new /mob/player/human/guy
new_mob = new /mob/player/monkey/monks
src.client.mob = new_mob
new_mob.name = char_name
new_mob.loc = locate(1,1,1)
I have also tried changing new_mob.name = char_name
to src.client.mob.name = char_name
and that has still not worked.
Here are the defined characters.
icon = 'human.dmi'
icon_state = "male"
icon = 'monkey.dmi'
icon_state = "monks"
I hope someone is able to fix my problem because I sure as hell cannot solve the mistery as to why it is not working properly.