obj
Start
icon = 'title.png'
layer = 200
density = 1
TITLE
name = ""
layer = 999
density = 1
//ok what you do is you place these objects over each other on the map, then
//select the areas that aren't going to be used and right click with any object selected
//and press Delete topmost object.
//for example, you put down /obj/TITLE first, then you put /obj/TITLE/NEW over it.
//after that is placed select everything around the words new (on your map)
//then right click and delete the topmost object.
//it's not that hard to understand.
//the title screen i made is not a good example seeing as how it was 5 am
//and it was made in MS paint and i have no coordination whatsoever.
NEW
layer = 999
Click()
if(usr.HasItUp == 0)//this is to prevent users from having multiple windows open
usr.HasItUp = 1
var/mob/character
crap:
var/charactername1 = input("What is your character's name?","Character Name?")as null|text
if(charactername1 == null || charactername1 == "" || charactername1 == " "|| charactername1 == " " || charactername1 == " ")
usr.HasItUp = 0
return
var/m = copytext(charactername1,1,2)//inefficient way of putting a name together
var/v = uppertext("[m]")
var/c = copytext(charactername1,2,11)
var/b = lowertext(c)
var/charactername = "[v][b]"
switch(input("Pick a class.","Character Class") in list("Person","Back"))
if ("Person")
character = new /mob()
character.name = charactername
usr.client.mob = character
character.loc=locate (1,1,1)
del(src)
if("Back")
goto crap
else
return
LOAD
layer = 999
Click()
if(usr.HasItUp == 0)
usr.HasItUp = 1
var/savefile/F = usr.client.base_PlayerSavefile()
F.cd = "/players/[usr.ckey]/mobs/"
var/list/characters = F.dir
var/b = 0
var/entry
var/autoname = ""
for (entry in characters)
b ++
for(entry in characters)
if(b == 1)
autoname = entry
if(b == 0)
usr << "You don't have any saved characters on this server."
if(b == 1)
usr.client.base_LoadMob(autoname)
else
var/name = input("What is the name of the character you want to load?","Character Load") in usr.client.base_CharacterNames() + list("Cancel")
if(name == "Cancel")
usr.HasItUp = 0
return
else
usr.client.base_LoadMob(name)
else
return
DELETE
layer = 999
Click()
var/savefile/F = usr.client.base_PlayerSavefile()
F.cd = "/players/[usr.ckey]/mobs/"
var/list/characters = F.dir
var/b = 0
for (var/entry in characters)
b ++
if(b == 0)
usr << "You don't have any saved characters on this server."
if(usr.HasItUp == 0)
usr.HasItUp = 1
var/name = input("What is the name of the character you want to delete?","Character Delete") in usr.client.base_CharacterNames() + list("Cancel")
if(name == "Cancel")
usr.HasItUp = 0
return
else
switch(alert("Are you absolutely sure you want to delete [name]?","Character Delete","No","Yes"))
if("Yes")
usr.HasItUp = 0
usr.client.base_DeleteMob(name)
if("No")
usr.HasItUp = 0
return
else
return
Problem description:
For some reason when I am at the title screen nothing happens when I click on new load or delete. I have those objs on top and cant figure out whats wrong. Please Help!
its basicly the same code just updated a bit,
basicly make a backup of your current code then replace
the code with the one I posted and tell me if
1: you get the clicked on debug messages.
2: it works (woot) or if it still does not work
3: any other errors.
if this does not work you will have to wait around for one
of the older members to pop in and see if they can work out
why its not working for you.