ID:156394
 
mob
proc
Create()
if(fexists("players/[src.key]"))
switch(alert(usr, "Are you sure that you want to overwrite your old Character?", "Character Creation", "Yes","No"))
if("Yes")
sleep(0)
fdel("players/[usr.key].sav")
if("No")
return
alert("Some Game.")
var/name = input("","What is your name?") as text|null
if(!usr)
return
if(name == "")
return
if(name == " ")
return
if(name == " ")
return
usr.name="[name]"
usr.loc = locate(56,52,1)
usr.icon='Base.dmi'


It seems that I have forgotten how to make a verb call up a proc im reading through the DM guide again to see if i can find the info im lookin for to do this but if anyone knows how off the top of their head it would be a great help
Wrath69 wrote:
mob
> proc
> Create()
> if(fexists("players/[src.key]"))
> switch(alert(usr, "Are you sure that you want to overwrite your old Character?", "Character Creation", "Yes","No"))
> if("Yes")
> sleep(0)
> fdel("players/[usr.key].sav")
> if("No")
> return
> alert("Some Game.")
> var/name = input("","What is your name?") as text|null
> if(!usr)
> return
> if(name == "")
> return
> if(name == " ")
> return
> if(name == " ")
> return
> usr.name="[name]"
> usr.loc = locate(56,52,1)
> usr.icon='Base.dmi'

It seems that I have forgotten how to make a verb call up a proc im reading through the DM guide again to see if i can find the info im lookin for to do this but if anyone knows how off the top of their head it would be a great help


mob/verb/CallPROC()
Create()
Also you look into use ! instead of all those nasty checks you are doing.
In response to National Guardsmen
k thanx
In response to Wrath69
Also, the AND, OR, operators. (& && | ||)