X0 i0 corpses
From NWN Lexicon
[edit] x0_i0_corpses
Library for creating corpses, blowing things up, etc.
NOTE: This file includes x0_i0_position .
[edit] Constants
| Name | Value | Brief Description |
|---|---|---|
| CORPSE_DECAY_TIME | 120.0 | Time delay in seconds before decaying corpses vanish. |
| CORPSE_EXPLODE_TIME | 2.0 | Time delay in seconds before exploding corpses blow up. |
| sBombResRef | x0_plc_bomb | This blueprint is necessary for exploding corpses. It is an invisible, non-static object, named "Corpse" |
| sCorpseResRef | x0_plc_corpse | This blueprint is necessary for lootable corpses. It is an invisible object with inventory, named "Corpse" |
[edit] Functions
| Name | Brief Description |
|---|---|
| CopyItem2 |
Internal function. Convenience function for copying objects properly. |
| DoActualKilling |
Internal function. If the victim is not dead, this sets their plot flag to FALSE and applies EffectDeath(TRUE) . |
| Blow up an object with the given spell. | |
| GetIsVictimDressed | Internal function. This function is used to determine if the victim is the type of creature that "wears" its clothing, so we don't strip them naked. |
| Return the nearest corpse object. | |
| Kill and leave an exploding corpse. | |
| Kill and leave a decorative corpse that will decay after a short while. | |
| Kill and leave a purely decorative corpse (no name, not raiseable). | |
| Kill and leave a lootable corpse. | |
| Kill and leave a raiseable and selectable corpse. | |
| Kill and leave a selectable corpse. | |
| Strip everything droppable in the regular, non-equipped, inventory. | |
| Loot all the droppable items from the inventory slots of the victim into the inventory of the corpse object. | |
| Raise a given corpse from the dead with the given visual effect. | |
| Convenience function to set an object to be destroyable. | |
| Blow up the nearest object with a matching tag with the specified spell. | |
| Raise the nearest corpse from the dead. |
author: Mistress