ID:147930
 
obj
CarNPC
icon = 'tiles.dmi'
icon_state = "carnpc"
name = "Mechanic"
density = 1
verb
Talk()
set src in view(1)
var/choice = input("What can I help you with?") in list("I'd like to know more about cars and racing.","Nothing, just passing by.")
if(choice == "Nothing, just passing by.")
return
if(choice == "I'd like to know more about cars and racing.")
switch(input("Alright, what can I help you with?" , "Mechanic", text) in list ("Getting in or out of a car","Challenging someone to a race")
if("Getting in or out of a car")

alert("To get into a car, just walk up to it and select 'Get In' from your 'Commands' tab.")
alert("Then, to get out of it, just select 'Get Out' from your 'Commands' tab.")
if("Challenging someone to a race")
alert("To challenge someone to a race, you must be in a car or have the proper cheat activated, then select 'Challenge' from your 'Commands' tab.")
alert("When you challenge someone, it asks them whether they want to race or not, and if they select 'Yes', you are both whisked off to the drag track.")
alert("There will be a countdown, and when it says 'GO!', mash that arrow key!")
alert("Obviously, the first one across the finish line wins the race.")

NPC.dm:15:error: if: missing comma ',' or right-paren ')'

Any ideas? I'm completely missing the problem.
Enigmaster2002 wrote:
obj
CarNPC
icon = 'tiles.dmi'
icon_state = "carnpc"
name = "Mechanic"
density = 1
verb
Talk()
set src in view(1)
var/choice = input("What can I help you with?") in list("I'd like to know more about cars and racing.","Nothing, just passing by.")
if(choice == "Nothing, just passing by.")
return
if(choice == "I'd like to know more about cars and racing.")
switch(input("Alright, what can I help you with?" , "Mechanic", text) in list ("Getting in or out of a car","Challenging someone to a race")
if("Getting in or out of a car")

alert("To get into a car, just walk up to it and select 'Get In' from your 'Commands' tab.")
alert("Then, to get out of it, just select 'Get Out' from your 'Commands' tab.")
if("Challenging someone to a race")
alert("To challenge someone to a race, you must be in a car or have the proper cheat activated, then select 'Challenge' from your 'Commands' tab.")
alert("When you challenge someone, it asks them whether they want to race or not, and if they select 'Yes', you are both whisked off to the drag track.")
alert("There will be a countdown, and when it says 'GO!', mash that arrow key!")
alert("Obviously, the first one across the finish line wins the race.")

NPC.dm:15:error: if: missing comma ',' or right-paren ')'

Any ideas? I'm completely missing the problem.

The line right above line 15 (line 14) needs another right-paren on the end of it.

~>Volte
In response to Volte (#1)
Eheh.... *Puts on his dunce cap*