Car_King
icon='King Car.dmi'
verb
Talk()
set name = "Talk"
set category = "Social Commands"
set src in oview(1)
switch(input("Do you want to learn to become a car?",text) in list("Yes","Nah"))
if("Yes")
usr << "You will now have to focus your mind on a piece of pizza for 3 minutes.."
sleep(1200)
usr.overlays-='pizza.dmi'
if("Nah")
usr << "I am a king, I have better things to do than listen to you."
switch(input("Would you like to become a pizza now?",text) in list("Yes","Nah"))
if("Yes")
usr.verbs += new /obj/turn_into_pizza
if("Nah")
usr <<"I thought you said you wanted to!!!!! Argh!"
There is 13 Inconsistent indentations in that code, if you could help please respond, I have tried to find them all morning.
PyRoMaNiAc
ID:150230
Nov 24 2001, 9:24 am
|
|
Nov 24 2001, 9:29 am
|
|
The "verb" on your third line is tabbed over too far, so then everything after it is also tabbed over too far!
|
In response to GateGuardian
|
|
It is like this now
Car_King icon='King Car.dmi' verb Talk() set name = "Talk" set category = "Social Commands" set src in oview(1) switch(input("Do you want to learn to become a car?",text) in list("Yes","Nah")) if("Yes") usr << "You will now have to focus your mind on a piece of pizza for 3 minutes.." sleep(1200) usr.overlays-='pizza.dmi' if("Nah") usr << "I am a king, I have better things to do than listen to you." switch(input("Would you like to become a pizza now?",text) in list("Yes","Nah")) if("Yes") usr.verbs += new /obj/turn_into_pizza if("Nah") usr <<"I thought you said you wanted to!!!!! Argh!" And there is still 4 inconsistent indentations....Where are they now? |
In response to PyRoMaNiAc
|
|
Have verb and the icon thing be in line with eachother
like this mob guy icon = 'guy.dmi' verb |
In response to Gouku
|
|
There is still 4.
mob Car_King icon='King Car.dmi' verb Talk() set name = "Talk" set category = "Social Commands" set src in oview(1) switch(input("Do you want to learn to become a car?",text) in list("Yes","Nah")) if("Yes") usr << "You will now have to focus your mind on a piece of pizza for 3 minutes.." sleep(1200) usr.overlays-='pizza.dmi' if("Nah") usr << "I am a king, I have better things to do than listen to you." switch(input("Would you like to become a pizza now?",text) in list("Yes","Nah")) if("Yes") usr.verbs += new /obj/turn_into_pizza if("Nah") usr <<"I thought you said you wanted to!!!!! Argh!" |
In response to PyRoMaNiAc
|
|
gotta be with some other peice of code then
|
In response to PyRoMaNiAc
|
|
PyRoMaNiAc wrote:
There is still 4. |
There is a setting in dream maker that shows tabs. Open a project, and select your code file (yourproject.dm). Now under options select showtabs. It only appears when you are displaying a code file. your tabs should now show up as >> in the code.
Dantom, if you are reading this, can we have it as a default? it would cut a good deal from the learning curve for newbies. |