Code:mob/create_character
var/mob/character
Login()
var/charactername = input("What is your name?","Character Name?")
switch(input("Pick what race you wish to start out as.","Character Background?") in list("Human","Demon"))
if ("Human")
character = new /mob/You/Human()
if ("Demon")
switch(alert("What type of demon do you want to be?","Character Creation","Bat","Dog","Spider", ))
if("Bat")
character = new /mob/You/Demon()
if("Dog")
character = new /mob/You/Demon()
if("Spider")
character = new /mob/You/Demon()</b>
Problem description:
Ignore the repeated demon entries below, i'll change them later, for now I want them all to be the same icon.
Well, the problem is that when I try to compile the code I get these errors-
loading TheDemo.dme
TheDemo.dm:16:error: =: expected "if" or "else"
TheDemo.dm:17:error: if: expected code block
TheDemo.dm:18:error: : expected "if" or "else"
TheDemo.dm:18:error: =: expected code block
TheDemo.dm:20:error: =: expected "if" or "else"
TheDemo.dm:17:warning: "Dog": statement has no effect
TheDemo.dm:18:warning: character: statement has no effect
TheDemo.dm:18:warning: : operation has no effect here
this
should be
do that for all the demons
and this should all probably be in a proc...