ID:273424
 
I Have the log in screen coded in but for somereason, it goes to where people start when someone logs in instead of the tarting screen witch has the name, New, load ect. buttons

my code is as follows:
mob
Login()
usr.loc = locate(33,44,1)

..()
mob
Logout()
src.SaveChar()
del src


turf
New
Click()
alert("Welcome to Kingdom hearts: The Keyblade Legends.")
var/name = input(usr,"What would you like your name to be?.","Create Name","Type Name Here")
usr.name="[name]"

mob
Login()
input("What gender?") in list ("male","female")
if("male")
usr.ggender="male"
usr.icon='Users.dmi'
usr.icon_state="male"
usr.loc = locate(1,1,1)
if("female")
usr.ggender="female"
usr.icon='Users.dmi'
usr.icon_state="female"
usr.loc = locate(1,1,1)



i have the thing on the map but it dosnt go there
Justin_Clayton wrote:
I Have the log in screen coded in but for somereason, it goes to where people start when someone logs in instead of the tarting screen witch has the name, New, load ect. buttons

my code is as follows:
mob
> Login()
> usr.loc = locate(33,44,1)
>
> ..()
> mob
> Logout()
> src.SaveChar()
> del src
>
>
> turf
> New
> Click()
> alert("Welcome to Kingdom hearts: The Keyblade Legends.")
> var/name = input(usr,"What would you like your name to be?.","Create Name","Type Name Here")
> usr.name="[name]"
>
> mob
> Login()
> input("What gender?") in list ("male","female")
> if("male")
> usr.ggender="male"
> usr.icon='Users.dmi'
> usr.icon_state="male"
> usr.loc = locate(1,1,1)
> if("female")
> usr.ggender="female"
> usr.icon='Users.dmi'
> usr.icon_state="female"
> usr.loc = locate(1,1,1)

i have the thing on the map but it dosnt go there
You cannot have Login twice. You are locating yourself to where you want then to 1,1,1 by their gender. Also, I suggest reading this: http://byond.com/docs/guide Another thing just for the confusion factor, I wouldn't name a turf New becuase you will probably be using the proc named New() or new.
I'm curious where you learned this because I've seen it repeatedly.

That input() is doing nothing and those if() statements will both always be true. Supposedly, you meant to make that a switch() statement.

And yeah, the second Login() is overriding the first.