ID:176589
 
How would I place an object on a map and make it disappear after a given ammount of time?
First of all code in your mob for example:

mob/Mage
icon = 'npcs.dmi'
icon_state="mage"
density=1
verb
Talk()
set category = "Communication"
set src in oview(1)
alert( "I need to get some clothes from the shop, I can't fight half naked!")

And you could use a dithering effect on the icon to make him dissapear for a certain time, or after someone talks to him, you couls set is icon state to a blank icon, in which leading would make him dissapear.
In response to Conquest
mob/Mage
icon = 'npcs.dmi'
icon_state="mage"
density=1
verb
Talk()
set category = "Communication"
set src in oview(1)
alert( "I need to get some clothes from the shop, I can't fight half naked!")
if(usr.talky == 1)
switch icon_state = 'blank'

I think that would work, but I'm not sure
In response to Conquest
Thats not going to work..


This is..
obj/disappearobject
icon = 'cheese.dmi'
New()
sleep(100)//the time you want it to wait till it disappers
src.invisibility = 101
In response to Mrhat99au
I need to know how to put the object on the map while playing. =P
In response to Kijokiha
var/obj/O = new(locate(1,1,1))
In response to Mrhat99au
Mrhat99au wrote:
obj/disappearobject
icon = 'cheese.dmi'
New()
sleep(100)//the time you want it to wait till it disappers
src.invisibility = 101

Instead of that last line, I'd put <code>del src</code>. That way, it will actually be deleted instead of just vanishing. If it's going to disappear permanently, it's probably better to outright delete it.

Just a suggestion.
In response to Crispy
If your wanting to delete it i would put del(src) but otherwise i would leave it as it is, like Crispy said.