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
ID:179113
![]() Feb 16 2002, 8:05 am
|
|
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. |
As I posted earlier add that parentheses it is unevenly distributed witht he left and the right parentheses
|
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