ID:145732
 
Code:
#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.
i do not know how to fix it and i really need to or i probably wont be able to add other coding for new hair and such. yes i sound like a total newbie coder but i really need help with this someone please tell me why this happened and how to fix it

We will refuse to help you, read the DM Guide, and program your own game.

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.
In response to Flame Sage
I agree. Do not rip off of other people's games. You learn nothing about how it works and nothing about how to actually program. Don't just copy someone else code, make some minor changes and call it original. Mine is purely hand-coded/cookbook coded (trial and error based on what you know about DM). Anyway, I refuse to help you as well. Read the DM guide and learn how to do it yourself. Also, look up stuff using Help on. That's how I got started.
In response to Flame Sage
Flame Sage wrote:
We will refuse to help you, read the DM Guide, and program your own game.

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.
i know that not alot of people like ripping off games i dont like it myself but i am bad at coding, this is why i needed this source and believe me i am making tons of changes to this game including a new map(i hope i can get to that soon) i really need help with this error so that i can make this game more original please dont refuse to help because there is no way i can do anything to the game without the help for this problem because that error comes up in all codes that i put in
and believe me i am pretty much on your side in this because i do not like ripping of games the problem is as i said i am a horrible coder although i can map and icon
In response to C0rrupt3d
Ehh ill just tell you wateva the line the error is on move it back and for using tab i cant be bothered to tell you wat else cuz its late and i am tired but incosistant indentation means that the code is placed wrong as in its to far forward or to far behind
In response to C0rrupt3d
If you are a horriable coder, learn the DM Guide.
If you still, after 50 tries cannot get it, then you really shouldn't be coding.
In response to Flame Sage
Agreed.
In response to Pyro_dragons
Oh please, if you don't know how to fix indentation, than you shouldn't be coding at all, really.
Like many said, go and read the DM guide. We have enough Elysium and Zeta rips, and no one likes them. BYOND is dying people, we need new games!
In response to Pyro_dragons
haha i got it lol never knew it was so easy made me sound like total noob :(
In response to C0rrupt3d
We will refuse to help you, read the DM Guide, and program your own game.

How presumptuous of you. I agree it'd be a good thing to not help the person but eventually someone will.

But, as they said, read the DM guide.
In response to C0rrupt3d
hey Ensylium gave away the code he didn't rip or steal
or claim its his AJX said give credit where credit is due
In response to SuperSonicRaver
Please learn to spell. Grammar would be nice, as well. It would make your posts that much more understandable.
In response to Jp
i just type fast so i don't care
In response to SuperSonicRaver
If someone types fast, and nobody can understand him, is he typing at all?
In response to Jp
Sonic, it's still a rip. It doesn't matter if credit is given, it's still a rip. The creator of the game would not just give away the code. It's a rip.


Don't use other peoples sources.