ID:176589
![]() Dec 30 2002, 3:44 pm
|
|
How would I place an object on a map and make it disappear after a given ammount of time?
|
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 |
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 |
Mrhat99au wrote:
obj/disappearobject 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. |
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.