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.

This is a wrapper for CopyItem , that copies the status of the original item's plot flag and applies it to the new item.

DoActualKilling

Internal function. If the victim is not dead, this sets their plot flag to FALSE and applies EffectDeath(TRUE) .

ExplodeObject

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.

GetNearestCorpse

Return the nearest corpse object.

KillAndExplode

Kill and leave an exploding corpse.

KillAndReplaceDecay

Kill and leave a decorative corpse that will decay after a short while.

KillAndReplaceDecorative

Kill and leave a purely decorative corpse (no name, not raiseable).

KillAndReplaceLootable

Kill and leave a lootable corpse.

KillAndReplaceRaiseable

Kill and leave a raiseable and selectable corpse.

KillAndReplaceSelectable

Kill and leave a selectable corpse.

LootInventory

Strip everything droppable in the regular, non-equipped, inventory.

LootInventorySlots

Loot all the droppable items from the inventory slots of the victim into the inventory of the corpse object.

RaiseCorpse

Raise a given corpse from the dead with the given visual effect.

SetObjectIsDestroyable

Convenience function to set an object to be destroyable.

TriggerExplodeObject

Blow up the nearest object with a matching tag with the specified spell.

TriggerRaiseCorpse

Raise the nearest corpse from the dead.



  author: Mistress

Personal tools
Categories