ID:147228
 
When I create a new /turf/Whatever on a map, it makes the background black. This is my code for it

mob/verb/Chair()
set category = "Build"
var/X = new /turf/chair(usr.loc)
X = X //It wouldn't let me do nothing \
with var/X and I'm too lazy to make up \
something else

I suppose I could make them all into /obj...but still is there a way to have two turfs in the same place? it works if I do it on the mapper but once the world has started and I use the Build verbs it leaves that black behind it :(
I'll try some things...oh well
You cant have two turfs on the same place. If you do then the ones on the bottom act as a underlay.

The problem with ur code is...

mob/verb/Chair()
set category = "Build"
var/turf/chair/X = new /turf/chair(usr.loc)


And please use dm tags when showing code

to do so just do this:

(dm) - this start the dm box
(/dm) - this ends the dm box

but change () to <>

By the way, i think this belongs in the newbie central.
In response to DeathAwaitsU
I dunno if this topic is supposed to be here or NC...I can see how it could belong in either place...Someone just move it if it shouldn't be here


Couldn't I just edit the layer var and move up the mobs one? or do I have no clue what I'm talking about? I'll just make them all /obj if I can't figure it out. It's not that hard I guess I'm just lazy :-(


btw nobody told me about that DM box thing lol
In response to Cowdude
ur not stating wot the problem with my code is...
In response to DeathAwaitsU
it didn't do anything differant than before (after re-reading my post I see that I did forget to do that =/)
In response to Cowdude
then i doubt its a problem with create chair, does the game work without the verb?
In response to DeathAwaitsU
no it makes the chair, I mean it deletes the turf under it when it moves the chair to usr's location. I just wondered if there was a way to have it not delete the turf without making them to /obj, but I'll just do that because half of my verbs are creating /obj anyway and they work fine
In response to Cowdude
oh if thats ur problem then no, there isnt a way of using a turf in that situation.

what you could try and do is add the turf's icon as an overlay to the place u want it created on, but u're better off going with an obj.
In response to DeathAwaitsU
ah okay I'll just use /obj and I'll have to use something fancy when I go to making items you can pick up and stuff
In response to Cowdude
use Goku72's demo on items, or edit his to make a better more suitable one.
In response to Cowdude
nah I know what I have to do I just need to make it so they can only pick up things in the /obj/items category. that, or have a "pickupable" var. Oh well