ID:178922
 
ok thanks Rcet. but it doesn't give me the verb when i walk into the area i'll try to fix that though. i also have a question. How do i make it so a list pops up and when u click the idem in the list it creates the new turf. this is what i have so far...

mob
special //so mobs don't already have it
verb
Build()
switch(input("What do u want to build?","Build")in list("Wall","Punching Bag","Bed", "Wood Floor", "JukeBox", "Beer Can", "Table", "TV"))
if("Wall")

what do i put do it creates the new wall turf?
its best to do something like this:
Build(B as null|anything in typesof(/obj,/turf))
new/B (usr.loc)


Im pretty sure that would work.

Let me know

-Rcet
In response to Rcet
mob
special //so mobs don't already have it
verb
Build()
set category = "Build"
Build(B as null|anything in typesof(/obj,/turf))
new/B (usr.loc)

thats what i have and i got 1 error
verbs.dm:306:error: proc definition not allowed inside another proc

only one showed but i acculy have 3 errors
In response to Alienman22774
No no, like this:
mob
special //so mobs don't already have it
verb
Build(B as null|anything in typesof(/obj,/turf))
set category = "Build"
new B(usr.loc)


Really, you should know this.


-Rcet
In response to Rcet
i know i fixed that i just edited my last post and it acully said 3 errors. i missed that the other 2 are
verbs.dm:305:error:B:undefined var
verbs.dm:306:error:/B:undefined type path

and 2 warings are
verbs.dm:305:4224:warning: statement has no effect
verbs.dm:305:as :warning: unused label
In response to Rcet
Rcet wrote:
verb
Build(B as null|anything in typesof(/obj,/turf))
set category = "Build"
new/B (usr.loc)
...
Really, you should know this.

You should also know that that won't work. You can't provide just any list to restrict a verb's arguments like that so far as I know; only certain lists will work.

Also, new/B is wrong because it says "I want to create a new /B datum" instead of "I want to create a new datum of the type specified in the var B". The slash shouldn't be there.

Lummox JR
In response to Lummox JR
Ack, didn't realize that, thanks for pointing it out.

-Rcet
In response to Rcet
i still can't seem to get rid of these errors and warings i t says B is undifined var. i tried serveral different methonds and keep getting more errors.

also its not giveing me the verb when i enter the area. i'm not sure of this