#if !defined(SUPER_NEW)
#define SUPER_NEW "New Character"
#endif
#if !defined(SUPER_LOAD)
#define SUPER_LOAD "Load Character"
#endif
#if !defined(SUPER_QUIT)
#define SUPER_QUIT "Quit"
#endif
var/list/HTML_TAGS = list ("<",">")
mob/proc/Check_For_Tagilitys(T as text,var/list/L)
for(var/V in L)
if(findtext(T,V))
return TRUE
var/list/NUM_TAGS = list ("1","2","3","4","5","6","7","8","9","0")
mob/proc/Check_For_Nums(T as text,var/list/L)
for(var/V in L)
if(findtext(T,V))
return TRUE
var/list/SYM_TAGS = list ("!","@","#","$","%","^","&","*","(",")","-","_","+","=","(",")","{","}",";",":","'","<",">",",",".","?","/","[","]")
mob/proc/Check_For_Syms(T as text,var/list/L)
for(var/V in L)
if(findtext(T,V))
return TRUE
mob/Guest
Login()
src.title_music()
src.verbs -= new/mob/verb/OOC
src.verbs -= new/mob/verb/Say
if(prob(50))
src.loc = locate(83,79,3)
else
src.loc = locate(97,79,3)
reload
var/list/L = newlist()
if(src.client.key == "Guest") //Here's the line's to stop the Runtime Error - Fixed by Hant Teath
del(src.client)
if(fexists("Save Files/[src.client.ckey]"))
L.Add(SUPER_NEW,SUPER_LOAD,SUPER_QUIT)
var/menu = input("Character File Found.","[world.name]") in L
switch(menu)
if(SUPER_NEW)
var/skin = input("If you have a old save file it will be over-written","") in list ("Ok","Never Mind")
switch(skin)
if("Never Mind")
goto reload
if("Ok")
Create()
if(SUPER_LOAD)
src.client.Load()
if(SUPER_QUIT)
del(src.client)
else
L.Add(SUPER_NEW,SUPER_QUIT)
var/newmenu = input("Character File Not Found.","[world.name], \"New Player\"") in L
switch(newmenu)
if(SUPER_NEW)
Create()
if(SUPER_QUIT)
del(src.client)
..()
proc
Create()
var/mob/mobcreation
var/newname = input("Pick Character Name","Name",src.key)
if(fexists("Core - Save Files/[newname]"))
alert("This name is already in use. Try again please,")
Create()
if(lentext(newname) > 25)
alert("Your name can not exceed 25 characters.")
Create()
if(isnull(newname) | newname == "" | !newname)
alert("Your name may not be blank.")
Create()
if(Check_For_Tagilitys(newname,HTML_TAGS) == TRUE)
alert("Your name may not have tagilitys of html in it.")
Create()
if(Check_For_Nums(newname,NUM_TAGS) == TRUE)
alert("Your name may not have numbers in it.")
Create()
if(Check_For_Syms(newname,SYM_TAGS) == TRUE)
alert("Your name may not have symbols in it.")
Create()
else
newname = html_encode(newname)
var/race = input("What were you born as?","Choose a Birth Race") in list ("Namek","Human","Saiyan","Majin","Changling","Demon")
switch(race)
if("Namek")
mobcreation = new /mob/PC()
mobcreation.race = "Namek"
mobcreation.icon = 'Namek - Normal.dmi'
mobcreation.speed_bonus += rand(1,5)
mobcreation.ki_bonus += rand(10,20)
mobcreation.contents += new/obj/Techs/Regenerate
mobcreation.contents += new/obj/Transform/Transform
mobcreation.Karma()
mobcreation.Class_Selection()
if("Demon")
mobcreation = new /mob/PC()
mobcreation.race = "Demon"
mobcreation.icon = 'Demon - Form 1.dmi'
mobcreation.ki_bonus += rand(10,20)
mobcreation.power_bonus += rand(10,20)
mobcreation.contents += new/obj/Transform/Transform
mobcreation.Karma()
mobcreation.Class_Selection()
if("Majin")
mobcreation = new /mob/PC()
mobcreation.race = "Majin"
mobcreation.icon = 'Majin - Form 1.dmi'
mobcreation.karma = "Evil"
mobcreation.power_bonus += rand(10,20)
mobcreation.defence_bonus += rand(1,5)
mobcreation.contents += new/obj/Techs/Majin/Regenerate
mobcreation.contents += new/obj/Transform/Transform
mobcreation.Class_Selection()
if("Changling")
mobcreation = new /mob/PC()
mobcreation.race = "Changling"
mobcreation.icon = 'Changling - Form 1.dmi'
mobcreation.karma = "Evil"
mobcreation.power_bonus += rand(10,20)
mobcreation.speed_bonus += rand(1,5)
mobcreation.contents += new/obj/Transform/Transform
mobcreation.contents += new/obj/Transform/Revert
mobcreation.Class_Selection()
if("Saiyan")
mobcreation = new /mob/PC()
mobcreation.race = "Saiyan"
mobcreation.power_bonus += rand(10,20)
mobcreation.strength_bonus += rand(1,5)
mobcreation.contents += new/obj/Transform/Transform
mobcreation.contents += new/obj/Transform/Revert
var/blood = rand(1,10)
if(blood == 1 || blood == 5 || blood == 8)
mobcreation.medium_level_class = 1
mobcreation.learned_ssj_2 = 1
mobcreation.learned_ssj_3 = 0
mobcreation.learned_ssj_4 = 0
mobcreation.attained_ssj_1 = 1
mobcreation.attained_ssj_2 = 1
mobcreation.attained_ssj_3 = 0
mobcreation.attained_ssj_4 = 0
else
if(blood == 2 || blood == 9)
mobcreation.high_level_class = 1
mobcreation.learned_ssj_2 = 1
mobcreation.learned_ssj_3 = 1
mobcreation.learned_ssj_4 = 0
mobcreation.attained_ssj_1 = 1
mobcreation.attained_ssj_2 = 1
mobcreation.attained_ssj_3 = 1
mobcreation.attained_ssj_4 = 0
else
if(blood == 3)
mobcreation.elite_level_class = 1
mobcreation.learned_ssj_2 = 1
mobcreation.learned_ssj_3 = 1
mobcreation.learned_ssj_4 = 1
mobcreation.attained_ssj_1 = 1
mobcreation.attained_ssj_2 = 1
mobcreation.attained_ssj_3 = 1
mobcreation.attained_ssj_4 = 1
else
if(blood == 4 || blood == 6 || blood == 7 || blood == 10)
mobcreation.low_level_class = 1
mobcreation.learned_ssj_2 = 0
mobcreation.learned_ssj_3 = 0
mobcreation.learned_ssj_4 = 0
mobcreation.attained_ssj_1 = 1
mobcreation.attained_ssj_2 = 0
mobcreation.attained_ssj_3 = 0
mobcreation.attained_ssj_4 = 0
mobcreation.Skin()
mobcreation.Hair()
mobcreation.Karma()
mobcreation.Class_Selection()
if("Human")
mobcreation = new /mob/PC()
if(prob(30))
switch(alert("Do you wish to be born as a Half Saiyan?","Race","Yes","No"))
if("Yes")
mobcreation.race = "Half Saiyan"
mobcreation.power_bonus += rand(5,15)
mobcreation.strength_bonus += rand(1,5)
mobcreation.contents += new/obj/Transform/Transform
mobcreation.contents += new/obj/Transform/Revert
mobcreation.Skin()
mobcreation.Hair()
mobcreation.Karma()
mobcreation.Class_Selection()
if("No")
mobcreation.race = "Human"
mobcreation.speed_bonus += rand(1,5)
mobcreation.ki_bonus += rand(5,10)
mobcreation.contents += new/obj/Transform/Transform
mobcreation.contents += new/obj/Transform/Revert
mobcreation.Skin()
mobcreation.Hair()
mobcreation.Karma()
mobcreation.Class_Selection()
else
mobcreation.race = "Human"
mobcreation.speed_bonus += rand(1,5)
mobcreation.ki_bonus += rand(5,10)
mobcreation.contents += new/obj/Transform/Transform
mobcreation.contents += new/obj/Transform/Revert
mobcreation.Skin()
mobcreation.Hair()
mobcreation.Karma()
mobcreation.Class_Selection()
mobcreation.loc = locate(100,100,1)
mobcreation.name = newname
world << "<font color = #000099>Server: <font color = #006DDC>Everyone welcome our newest player, [mobcreation.name], the [mobcreation.race]!"
if(mobcreation.race == "Half Saiyan")
alert("You were born as a Half Saiyan!")
src.client.mob = mobcreation
del(src)
Problem description:ok you see, i am making a dbz game called Dragonball: The New Legends based off of the elysium 2 source and i am making it much more original but right now i am trying to add the demon race to my game but it isnt working because it says there is an inconsistent indentation.the exact words were
Character Creation\Character Creation.dm:110: Inconsistent indentation.
Do not rip off of other peoples codes, it's a horriable way to learn, and you will learn bad coding habbits, as not understanding YOUR own code.