ID:267547
 
There isn't a warning or error in my dream maker, but when i run it, i can never get passed the Create a Character... can someone tell me why?
What Login code you got,and you dont see runtimes in compling
In response to Vowles
#define DEBUG
mob
Loginr
Login()
var/mob/moby
var/list/classes = list("Soldier","Mage","Fighter","Thief","Merchant","Jester", "Cleric","Tamer")
var/list/gender = list("Male","Female")
start
var/name = input("What will your character's name be?",world.name)as text
if(length(name) > 15)
usr << "Your name is too long!"
goto start
else
if(lowertext(name) == name)
usr << "Your name cannot be in all lower case letters!"
goto start
else if(uppertext(name) == name)
usr << "Your name cannot be in all upper case letters!"
goto start
else
..()
var/char = input("What class will you be?",world.name)in classes
var/gen = input("What gender will you be?",world.name)in gender
if(char == "Warrior")
moby = new /mob/classes/Warrior()
if(char == "Mage")
moby = new /mob/classes/Mage()
if(char == "Fighter")
moby = new /mob/classes/Fighter()
if(char == "Thief")
moby = new /mob/classes/Thief()
if(char == "Merchant")
moby = new /mob/classes/Merchant()
if(char == "Jester")
moby = new /mob/classes/Jester()
if(char == "Cleric")
moby = new /mob/classes/Cleric()
moby.name = name
moby.icon_state = gen
moby.Gender = gen
moby.start = "Leftwyne"
usr.client.mob = moby
return
classes
Login()
world << "<font color = blue>[usr] enters the world!"
if(usr.start == "Leftwyne")
usr.loc = locate(21,20,1)
Logout()
if(usr.battle)
world << "<font color = blue>[usr] logs out! Durring Battle!"
usr.battle = 0
usr.move = 1
usr.invisibility = 0
for(var/mob/M in usr.battlegroup)
if(!M.client)
del(M)
else
world << "<font color = blue>[usr] logs out!"
..()
In response to Elven_Hero
next time, please use the dm tags so stuff turns out the way it would be shown, not with the colors and stuff.... the tag is "dm" with the <>
In response to Dragon of Ice
He could also close his HTML tags.
In response to Elven_Hero
I'm not sure, but its possible usr in the class Login could be refering to the original mob, not the new mob. Try using src instead and see if that changes anything.
In response to Airjoe
How about a real coder helping me... instead of you guys just making stupid comments... the only one that actually made sense was fooomer.... i'll post a more clear version

#define DEBUG
mob
Loginr
Login()
var/mob/moby
var/list/classes = list("Warrior","Mage","Fighter","Thief","Merchant","Jester", "Cleric")
var/list/gender = list("Male","Female")
start
var/name = input("What will your character's name be?",world.name)as text
if(length(name) > 15)
src << "Your name is too long!"
goto start
else
if(lowertext(name) == name)
src << "Your name cannot be in all lower case letters!"
goto start
else if(uppertext(name) == name)
src << "Your name cannot be in all upper case letters!"
goto start
else
..()
var/char = input("What class will you be?",world.name)in classes
var/gen = input("What gender will you be?",world.name)in gender
if(char == "Warrior")
moby = new /mob/classes/Warrior()
if(char == "Mage")
moby = new /mob/classes/Mage()
if(char == "Fighter")
moby = new /mob/classes/Fighter()
if(char == "Thief")
moby = new /mob/classes/Thief()
if(char == "Merchant")
moby = new /mob/classes/Merchant()
if(char == "Jester")
moby = new /mob/classes/Jester()
if(char == "Cleric")
moby = new /mob/classes/Cleric()
moby.name = name
moby.icon_state = gen
moby.Gender = gen
moby.start = "Sjinobiwaba"
src.client.mob = moby
return
classes
Login()
world << "<font color = blue>[usr] enters the world!"
if(src.start == "Sjinobiwaba")
src.loc = locate(3,9,2)
Logout()
if(src.battle)
world << "<font color = blue>[usr] logs out! Durring Battle!"
src.battle = 0
src.move = 1
src.invisibility = 0
for(var/mob/M in usr.battlegroup)
if(!M.client)
del(M)
else
world << "<font color = blue>[usr] logs out!"
..()


I really need someone to help me... please?
In response to Elven_Hero
Elven_Hero wrote:
How about a real coder helping me... instead of you guys just making stupid comments... the only one that actually made sense was fooomer.... i'll post a more clear version

#define DEBUG
mob
Loginr
Login()
var/mob/moby
var/list/classes = list("Warrior","Mage","Fighter","Thief","Merchant","Jester", "Cleric")
var/list/gender = list("Male","Female")
start
var/name = input("What will your character's name be?",world.name)as text
if(length(name) > 15)
src << "Your name is too long!"
goto start
else
if(lowertext(name) == name)
src << "Your name cannot be in all lower case letters!"
goto start
else if(uppertext(name) == name)
src << "Your name cannot be in all upper case letters!"
goto start
else
..()
var/char = input("What class will you be?",world.name)in classes
var/gen = input("What gender will you be?",world.name)in gender
if(char == "Warrior")
moby = new /mob/classes/Warrior()
if(char == "Mage")
moby = new /mob/classes/Mage()
if(char == "Fighter")
moby = new /mob/classes/Fighter()
if(char == "Thief")
moby = new /mob/classes/Thief()
if(char == "Merchant")
moby = new /mob/classes/Merchant()
if(char == "Jester")
moby = new /mob/classes/Jester()
if(char == "Cleric")
moby = new /mob/classes/Cleric()
moby.name = name
moby.icon_state = gen
moby.Gender = gen
moby.start = "Sjinobiwaba"
src.client.mob = moby
return
classes
Login()
world << "<font color = blue>[usr] enters the world!"
if(src.start == "Sjinobiwaba")
src.loc = locate(3,9,2)
Logout()
if(src.battle)
world << "<font color = blue>[usr] logs out! Durring Battle!"
src.battle = 0
src.move = 1
src.invisibility = 0
for(var/mob/M in usr.battlegroup)
if(!M.client)
del(M)
else
world << "<font color = blue>[usr] logs out!"
..()


I really need someone to help me... please?




Still no Response please awnser me
In response to Elven_Hero
Stop bumping your posts...Only 2 hours apart and Im sure it was still on the same page.
In response to Elven_Hero
That code looks like it should work. Maybe there is other code that is effecting the login process.