Hi,
I am not sure if this has already been asked, I looked through this forums and didn't find anything about it so I am taking a chance in asking.
I have a spawner that spawns an item that is to be usable only once using an xmluse attachment and the maxuse,1 parameter..... that works fine.
What I would like to happen is that the item itself be deleted after it's been used once.
Is that possible at all?
Thanks in advance and sorry if that topic was already covered...... I really did not find anything.
you could have your SuccessAction string delete the object that it is attached to by adding this to it
SETONTHIS/ATTACH/temporaryquestobject,blah,0.02
separate it from any other action you might be performing with a semicolon.
The TemporaryQuestObject attachment deletes the object it is attached to when it expires. The expiration time (0.02) is in minutes and you can make it whatever you want. The 'blah' name of the attachment is arbitrary and can be whatever you want.
So your successaction would look something like
SENDMSG/All used up ; SETONTHIS/ATTACH/temporaryquestobject,blah,0.02
I should just add an option for deleting the object after max uses is reached by adding a flag like DeleteOnMaxUse to XmlUse. I'll think about that for the next release.
Works like a charm now...... thanks a bunch Arte!!!!