ID:149307
 
I have just tested a new proc that I just made for characters to have their own DoB...The problem that I am having is I go through the normal CharacterCreation procedure but the DoB procedure is not being called...

Can anyone please assist me?

-- Coding --
mob/creating_character

Login()
..()
client.Updates()
usr << sound('mystery.mid')
alert("Don't complain saying that there is 'Major' lag because the movement is set at 0.3 seconds so that means your character will move slower than normal.")
alert("The login will take precisely 5 ticks to load up, this is because I made it do that so you could see the Title before you get to choose your character. I mainly did this as before you could not get chance to look at the Title for long, whereas now you can. So dont be alarmed by the 5 tick wait ok...Lee")
usr.loc = locate(/area/titlescreen)
sleep(50)
world << "[usr] has just entered '[world.name]'!"
// Spawn here to avoid problems with calling prompts during login.
src.CreateCharacter()
src.CreateDoB()

(More coding goes here)

new_mob.name = char_name
new_mob.loc = locate(/area/start_zone)
new_mob.key = src.key
new_mob.stop_sfx()
..()
del(src)

proc/CreateDoB()
var/DoB = input("Please enter a Date of Birth for your character.") as num
if(DoB == ""|null)
src.DOB = "Unknown"
else
src.DOB = DoB



--Lee
lol, put the ..() at the bottom of Login() after all of your stuff, that tells it it is done.
In response to Ter13
Ter13 wrote:
lol, put the ..() at the bottom of Login() after all of your stuff, that tells it it is done.

If you look closer that is already there...

--Lee
In response to Mellifluous
delete the top one, sorry, you have 2 of them under the same peice of the proc, that may work
Do you happen to have del called in the CreateCharacter() proc?