I am having two problems. The first one is I have a Repop() that run every few min or so. It does a great job at recreating things that have been picked up or things that have been killed.
world
proc
Reload_World()
world.Repop()
world << "A year has passed and the earth has grown back to it's origanal state."
repoping_world = 1
spawn(1000) Reload_World()
The problem I am having is getting it to delete all the dameged things. Ie, dead trees, holes, ect, ect. I tried something like
del /obj/temp/
in witch the object code was
obj
temp
destroyed
icon = 'destroyed.bmp'
layer = TURF_LAYER
That didn't work. Any ideas?
The secound problem revolves around that object I just posted above. I have a .bmp file that is 128 pixles by 128 pixles. So it should take up 4 icon tiles on the map when it is created right? Well it dosn't and I am really lost as to why, because if I creat it on the mapmaking thingy it takes up a 4 by 4 tile space. But when I say
new/obj/temp/destroyed(usr.loc)
it takes up one tile.
Thanks,
TK6000
ID:173813
![]() Nov 12 2003, 12:24 pm (Edited on Nov 12 2003, 1:24 pm)
|
|
As for the bmp thing, when a atom uses a .bmp as an icon it is split into 32x32 pixel icon_states, and one shrunk version of the image.
The icon states are then numbered according to their position in the puzzle (Ie, 0,0 is the bottom left corner), and the shrunk image is the null state.