Full Version : Deleting the corpse of a mob spawned by xmldeath
xmlspawner >>Q&A >>Deleting the corpse of a mob spawned by xmldeath
<< Prev | Next >>
Corliss- 01-08-2007
Well as it says I have a MOB that on death turns into a new mob using the XML death action. My problem is I need to delete the corpse of the second mob and give it an emote when it dies., any ideas on how to do it? I tried putting <> around a the xmldeath action and putting it behidn the spawned mob name but that did not work.
any other ideas would be appreciated. thank you.
ArteGordon- 01-09-2007
try this modified version of XmlDeathAction that allows you to specify multiple actions in a single action string by separating them with semicolons
orc/ATTACH/<xmldeathaction/action/@troll/MSG/** ahhh good to be back ** ; SETONTHIS/DELETE >>
That will spawn a troll, delete the orcs corpse and put a message over the troll.
If you wanted to create the troll with an xmldeathaction attached to it when the orc died, try this
orc/ATTACH/<xmldeathaction/action/@troll/ATTACH/<xmldeathaction/action/@SETONTHIS/DELETE >
this will spawn the troll (with an xmldeathaction attachment) when the orc dies. Then when the troll dies, it will delete the troll's corpse.
Unfortunately, you wont be able to put an emote over the troll at death since the xmldeathaction is only invoked after the creature is dead and has a corpse.
It would be possible to put a message over the corpse, but you couldnt delete it as well since the two things would happen together and so the corpse would be deleted by the time it tried to display the message and you wouldnt see anything.