mob
CC
proc
Choose()
if(fexists("Save Files/[client.ckey]"))
switch(alert("What do you wish to do?","Loading...","New Character","Load Character","Quit"))
if("Quit")
del src
if("Load Character")
client.Load()
else
Create()
else
switch(alert("What do you wish to do?","Loading...","New Character","Quit"))
if("Quit")
del src
else
Create()
Create()
var/mob/NC
var/CCName
CCName = input("What is your name?","Creation") as null|text
if(!CCName)
alert("Everyone has a name!","Error")
Create()
if(lentext(CCName) < 2)
alert("Your name is too short!","Error")
Create()
if(lentext(CCName) > 20)
alert("Your name is too long!","Error")
Create()
if(Check_For_Tags(CCName,HTML_TAGS) == TRUE)
alert("HTML is not allowed!","Error")
Create()
else
CCName = html_encode(CCName)
Race = input("What are you?","Creation") in list("Argonian","Drow Elf","Dwarf","Elf","Gnome","Half-Elf","Half-Orc","Half-Ogre","High Elf","Human","Khajit","Ogre","Orc","Cancel")
switch(Race)
if("Human")
Class = input("What is your class?","Creation") in list("Archer","Assasin","Barbarian","Bard","Cleric","Dark Knight","Dragoon","Druid","Fighter","Monk","Necromancer","Ninja","Paladin","Ranger","Rogue","Samurai","Shadow Dancer","Sorcerer","Summoner","Thief","Time Mage","Wizard","Cancel")
if("Cancel")
alert("Changed your mind?","Abortion")
Choose()
Okay.. my question is, am I doing the Race and Class thing right? Also, how would I make a list, or whatever, that makes the mob learn certain spells/skills/etc. at certain levels? Thanks alot if you guys could help me.. I would really appreciate it.
P.S. - And by the way if anybody has a better way for Creating character please do let me know, this is the only way I could kind of understand and get to work.. thanks again.
~ChibiGoku04