Does anyone know the code for logining and choosing a character without runing a game and having to be invisable?(i didnt attempt to make a choosing character line of code cause i know i would fail)
mob/other/choosing_character
Login()
usr.loc=locate(1,1,1)
usr << "Welcome to CrossFire, [usr.name]."
view() << "[usr] logs in."
mob
characters
cooler
icon = 'turfs.dmi'
icon_state = "cooler"
guy
icon = 'turfs.dmi'
icon_state = "guy"
That is all i have right now in the login file, i want to make it so i can play as "guy" or "cooler" both iconstates in 'turfs.dmi'.
ID:173974
Oct 19 2003, 5:07 am
|
|
name = "CrossFire"
client
script = "<STYLE>BODY {background: black; color: white} IMG.icon{width:32;height:32}</STYLE>"
mob = /mob/choose_character
mob/choose_character
var/mob/character
Login()
NameStart
var/charactername = input("Please choose a name.","Name",src.key)
if(!charactername)
src << "You are required to have a name."
goto NameStart
switch(input("Please choose a character.","Character?") in list("cooler","guy"))
if ("cooler")
character = new /mob/characters/cooler()
if ("guy")
character = new /mob/characters/guy()
character.name = charactername
src.client.mob = character
del(src)
..()
mob/characters/cooler
icon='turfs.dmi'
icon_state = 'cooler'
mob/characters/guy // the error happened on this line
icon='turfs.dmi'
icon_state = 'guy'
src << "Welcome to CrossFire, [usr.name]."
view() << "[usr] logs in."
As you can see while waiting for a reply i attempted to code in one and this is the error that i got..."name.dm:27:error: mob: expected end of statement"
game.dmb - 18 errors, 0 warnings (double-click on an error to jump to it)