#include <deadron/characterhandling>
client/base_num_characters_allowed = 2
world
mob = /mob/create_character
mob/create_character
var/mob/character
Login()
var/charactername = input("Welcome to [world.name], what do you wish to be called?","Character Creation")
switch(input("Choose your Alignment.","Character Creation","Neutral") in list("Lawful Good","Lawful Neutral","Lawful Evil","Neutral Good","Neutral","Neutral Evil","Chaotic Good","Chaotic Neutral","Chaotic Evil"))
if("Lawful Good")
usr.alignment = "Lawful Good"
if("Lawful Neutral")
usr.alignment = "Lawful Neutral"
if("Lawful Evil")
usr.alignment = "Lawful Evil"
if("Neutral Good")
usr.alignment = "Neutral Good"
if("Neutral")
usr.alignment = "Neutral"
if("Neutral Evil")
usr.alignment = "Neutral Evil"
if("Chaotic Good")
usr.alignment = "Chaotic Good"
if("Chaotic Neutral")
usr.alignment = "Chaotic Neutral"
if("Chaotic Evil")
usr.alignment = "Chaotic Evil"
switch(input("Which race do you wish to be?","Character Creation") in list("Human","Shield Dwarf","Gold Dwarf","Moon Elf","Sun Elf","Wild Elf","Wood Elf","Rock Gnome","Half Orc","Half Elf","Koblod","Hobgoblin","Goblin","Drow Elf","Deep Gnome","Deep Dwarf","Blue Goblin","Strongheart Halfling","Ghostwise Halfling","Lightfoot Halfling","Koblod","Orc"))
switch(input("Which class do you wish to be?","Character Creation") in list("Fighter","Acolyte","Rogue","Mage","Elementalist","Disciple","Heretic","Naturalist","Guardian","Magician","Stalker","Forester","Bainshee","Viking","Seer","Rogue","Mystic","Warlock","Warrior"))
if ("Fighter")
switch(input("Which sub class group do you wish to be?","Character Creation") in list("Paladin","Reaver"))
if ("Paladin")
character = new /mob/characters/Paladin()
if ("Reaver")
character = new /mob/characters/Reaver()
character.name = charactername
src.client.mob = character
del(src)
..()
mob/characters/Paladin
str=7
HP = 18
maxHP = 18
defense = 5
gold = 50
exp = 0
maxexp = 100
Level = 1
mana = 6
maxmana = 6
mob/characters/Reaver
str=7
HP = 18
maxHP = 18
defense = 5
gold = 50
exp = 0
maxexp = 100
Level = 1
mana = 6
maxmana = 6
mob
Login()
..()
Character_Login()
Write(savefile/F)
..()
Read(savefile/F)
..()
proc
Character_Login()
world <<"**[usr] Logs In**"
Problem description:
loading Lux Lucis Nox Noctis.dme
login.dm:34::warning: empty switch statement
login.dm:36:error::invalid expression
Lux Lucis Nox Noctis.dmb - 1 error, 1 warning (double-click on an error to jump to it)
I tried all I can think of, why wont it work?
race = input("Which race do you wish to be?","Character Creation") in list("Human","Shield Dwarf","Gold Dwarf","Moon Elf","Sun Elf","Wild Elf","Wood Elf","Rock Gnome","Half Orc","Half Elf","Koblod","Hobgoblin","Goblin","Drow Elf","Deep Gnome","Deep Dwarf","Blue Goblin","Strongheart Halfling","Ghostwise Halfling","Lightfoot Halfling","Koblod","Orc")