ID:138702
 
Code:
world
mob = /mob/create_character
view = 6


mob/Male_Saiyan
icon = 'Goku.dmi'
icon_state = ""
mob/Icer
icon = 'icer.dmi'
icon_state = ""
mob/Female_Saiyan
icon = 'Female.dmi'
icon_state = ""
mob/NPC/Brolly
icon = 'Enemy.dmi'
icon_state = "1"
mob/create_character
var/mob/character
Login()
var/charactername = input("What is your name?","Name")
if charactername = ""
usr <<"your name cant be blank!"
return
switch(input("What Race shal you be?","Race") in list("Saiyan","Drow","Icer"))
if("Saiyan")//if the person chooses this, then what?
character = new /mob/Male_Saiyan()//creating the icon
if("Drow")
character = new /mob/Female_Saiyan()
if("Icer")
character = new /mob/Icer()
character.name = charactername
src.client.mob = character
src.loc=locate(1,1,1)
world << "[usr.key] has just entered '[world.name]'!"


Problem description:
i get a "login.dm:23:error: missing condition. Any suggestions?

Line 23 is - if charactername = ""

That is not how you do an IF statement

if(!charactername) //null or none

if(charactername) //something
world
mob = /mob/create_character
view = 6


mob/Male_Saiyan
icon = 'Goku.dmi'
icon_state = ""
mob/Icer
icon = 'icer.dmi'
icon_state = ""
mob/Female_Saiyan
icon = 'Female.dmi'
icon_state = ""
mob/NPC/Brolly
icon = 'Enemy.dmi'
icon_state = "1"
mob/create_character
Login()
var/charactername = input("What is your name?","Name") as text
if(charactername == "")
usr <<"your name cant be blank!"
return
else
switch(input("What Race shall you be?","Race") in list ("Saiyan","Drow","Icer"))
if("Saiyan")//if the person chooses this, then what?
character = new /mob/Male_Saiyan()//creating the icon
if("Drow")
character = new /mob/Female_Saiyan()
if("Icer")
character = new /mob/Icer()
character.name = charactername
src.client.mob = character
src.loc=locate(1,1,1)
world << "[usr.key] has just entered '[world.name]'!"
mob/var/character

That code is so messed up.