The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

> Remove all equipment on death
aigleborgne
post Jul 11 2006, 05:39 PM
Post #1



Group Icon

Mod Developer
Posts: 210
Joined: 3-December 05




Hello smile.gif

I want to remove all equipment from my creature when it dies.
There are 2 solutions:
- Set all items to undropable
- Use a script

The last one doesn't work :

IF
Die()
THEN
RESPONSE #100
DestroyAllEquipment()
ReallyForceSpellDead(Myself,RED_HOLY_MIGHT)
END

Any idea?
Go to the top of the page
 
Quote Post
 
Start new topic
Replies
devSin
post Jul 11 2006, 10:15 PM
Post #2





Forum Member
Posts: 53
Joined: 22-March 05




In Baldur's Gate II, you could use DestroyAllEquipment() or the (misspelled) DestroyAllDestructableEquipment(), but I don't think they work in Baldur's Gate or TotSC (you shouldn't even be able to compile it, so I'm not sure if you're talking BG1).

Marking the items undroppable in the creature file really should be the easiest solution (assuming that Baldur's Gate respects the creature item flags). This would be tougher if you just wanted it for one instance of a generic creature, in which case you'd need to patch the items or make a new creature.

Lastly, if you know the inventory, you can just try a bunch of DestroyItem() calls, one for each item.

This post has been edited by devSin: Jul 11 2006, 10:22 PM
Go to the top of the page
 
Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 13th May 2026 - 03:11 AM