ID:178463
 
sorry everyone that im bugigng but i suck, its the truth...
well heres my problem:

mob
(TAB) verb
(TAB)(TAB) build
(TAB)(TAB)(TAB) switch(input("what turf?")in list Grass","Water"))
(TAB)(TAB)(TAB)(TAB) if("Grass")
(TAB)(TAB)(TAB)(TAB)(TAB) new turf(usr.loc)
(TAB)(TAB)(TAB)(TAB) if("Water")
(TAB)(TAB)(TAB)(TAB)(TAB) new turf(usr.loc)

and the error is:

Final Fantasy.dm:184:error:build :invalid proc definition
sorry everyone for bugging you....
You need to add () at the end of "build".
In response to Nadrew
i did that, now it says

Final Fantasy.dm:187:error:turf:undefined var
Final Fantasy.dm:189:error:turf:undefined var
Redslash wrote:
sorry everyone that im bugigng but i suck, its the truth...
well heres my problem:

mob
(TAB) verb
(TAB)(TAB) build
(TAB)(TAB)(TAB) switch(input("what turf?")in list Grass","Water"))
(TAB)(TAB)(TAB)(TAB) if("Grass")
(TAB)(TAB)(TAB)(TAB)(TAB) new turf(usr.loc)
(TAB)(TAB)(TAB)(TAB) if("Water")
(TAB)(TAB)(TAB)(TAB)(TAB) new turf(usr.loc)

and the error is:

Final Fantasy.dm:184:error:build :invalid proc definition
sorry everyone for bugging you....

Do this please:

switch(input("what turf?")in list (Grass","Water"))

--Lee
In response to Mellifluous
so you don't wan't me to put "(TAB)" in there?
In response to Redslash
Redslash wrote:
so you don't wan't me to put "(TAB)" in there?

Yea the tabs should be there but you missed out a left parenthesis "(" next to the Grass

^_^
In response to Redslash
I think you need /turf instead of just turf but I could be wrong...

And your original problem was that all procs & verbs are declared like this:

procname()
verbname()

even if you pass no vars.
In response to ShadowWolf
OMFG!!!!!

mob
verb
build()
switch(input("what turf?")in list("Grass","Water"))
if("Grass")
new /turf(usr.loc)
if("Water")
new /turf(usr.loc)

this works!

thx shadow wolf!