ID:179113
 
I have the code

world
name = "Dragon Warrior rest stop."
mob = /mob/create_character //set the default mob to create_character, as to make the selection stuff happen
turf = /turf/grass

mob/alena //we are playing God here! let's create a monkey
icon = 'player.dmi'
icon_state = "alena"//the monkey will look like this!


mob/taloon //we are playing God here! let's create a monkey
icon = 'player.dmi'
icon_state = "taloon"//the monkey will look like this!


mob/ragnar
icon = 'player.dmi'
icon_state = "ragnar" //this is what it will look like. quite ugly, no?

mob/create_character //the default mob
var/mob/character //later we'll be switching client to this
Login()
var/charactername = input("What is your name, O' Dragon Warrior?","Name") //you should know this..
switch(input("What person would you like to resemble?","DWchars") in list("DW4Taloon","DW4Ragnar","DW4Alena!")
if("DW4Taloon")
character = new /mob/taloon()
if("DW4Alena!") //if they chose to be a monkey
character = new /mob/alena() //make the new character a monkey!
if("DW4Ragnar") //if they wanna be human
character = new /mob/ragnar() //make them one!
character.name = charactername //set the name
src.client.mob = character //now, we change the player to this newly defined mob!
del(src) //delete the old mob
usr.loc = locate(31,24,1)
usr<<sound('dw4alena.mid',1)
world<<"[usr] has used the travel door to return here"


BUT IT KEEPs telling me there a missing comma for if on line 25. I cannot find where to put this "Missing Comma" and am in desperate need of help
RagnarofBurland wrote:
I have the code

world
name = "Dragon Warrior rest stop."
mob = /mob/create_character //set the default mob to create_character, as to make the selection stuff happen
turf = /turf/grass

mob/alena //we are playing God here! let's create a monkey
icon = 'player.dmi'
icon_state = "alena"//the monkey will look like this!


mob/taloon //we are playing God here! let's create a monkey
icon = 'player.dmi'
icon_state = "taloon"//the monkey will look like this!


mob/ragnar
icon = 'player.dmi'
icon_state = "ragnar" //this is what it will look like. quite ugly, no?

mob/create_character //the default mob
var/mob/character //later we'll be switching client to this
Login()
var/charactername = input("What is your name, O' Dragon Warrior?","Name") //you should know this..
switch(input("What person would you like to resemble?","DWchars") in list("DW4Taloon","DW4Ragnar","DW4Alena!")
if("DW4Taloon")
character = new /mob/taloon()
if("DW4Alena!") //if they chose to be a monkey
character = new /mob/alena() //make the new character a monkey!
if("DW4Ragnar") //if they wanna be human
character = new /mob/ragnar() //make them one!
character.name = charactername //set the name
src.client.mob = character //now, we change the player to this newly defined mob!
del(src) //delete the old mob
usr.loc = locate(31,24,1)
usr<<sound('dw4alena.mid',1)
world<<"[usr] has used the travel door to return here"


BUT IT KEEPs telling me there a missing comma for if on line 25. I cannot find where to put this "Missing Comma" and am in desperate need of help

Look at the line that has switch(input. Your line is missing another parentheses. This is what your line looks like.

switch(input("What person would you like to resemble?","DWchars") in list("DW4Taloon","DW4Ragnar","DW4Alena!")

This is what it should be.

switch(input("What person would you like to resemble?","DWchars") in list("DW4Taloon","DW4Ragnar","DW4Alena!"))\\notice how I added that parentheses
Aren't there enough "DragonWarriorChat" type places already? Can't we just let one person have a good idea and leave it at that?
switch(input("What person would you like to resemble?","DWchars") in list("DW4Taloon","DW4Ragnar","DW4Alena!")



You have three "(" and two ")" think about it.
In response to Nadrew
what???
In response to RagnarofBurland
As I posted earlier add that parentheses it is unevenly distributed witht he left and the right parentheses
In response to Super16
Thank you all my saviors
In response to Foomer
Word.
In response to Untitled_Boy
what they said