Placeable

class pynwn.Placeable(resource, instance=False)
animation_state

Animation State.

appearance

Appearance ID.

body_bag

Body bag.

comment

Comment.

conversation

Conversation resref.

faction

Faction ID.

get_description(lang=None)

Localized description.

get_name(lang=None)

Localized name.

hardness

Hardness.

has_inventory

Has inventory flag.

hp

Maximum Hitpoints.

hp_current

Current Hitpoints.

interruptable

Conversation interruptable flag.

items

Invenory items.

Returns:List of RepositoryItem objects or [] if the object does not have an inventory.
key_auto_remove

Auto-remove key.

key_required

Key required flag.

key_tag

Key tag.

lock_close_dc

Close lock DC.

lock_open_dc

Open lock DC.

lockable

Lockable flag.

locked

Locked flag.

paletted_id

Palette ID.

plot

Plot flag.

portrait_id

Portrait ID.

resref

Resref.

save_fortitude

Fortitude Saving Throw.

save_reflex

Reflex Saving Throw.

save_will

Will Saving Throw.

scripts

Scripts. Responds to script events:

  1. Event.CLOSE
  2. Event.DAMAGED
  3. Event.DEATH
  4. Event.TRAP_DISARMED
  5. Event.HEARTBEAT
  6. Event.LOCK
  7. Event.ATTACKED
  8. Event.OPEN
  9. Event.SPELL_CAST_AT
  10. Event.TRAP_TRIGGERED
  11. Event.UNLOCK
  12. Event.USER_DEFINED
  13. Event.CLICK
  14. Event.DISTURBED
  15. Event.USED
set_description(lang=None, string=None)

Localized description.

set_name(lang=None, string=None)

Localized name.

stage()

Stage changes to the placeable’s GFF structure.

static

Static flag.

tag

Tag.

trap_detect_dc

Trap detect DC.

trap_detectable

Trap detectable flag.

trap_disarm_dc

Trap disarm DC.

trap_disarmable

Trap disarmable flag.

trap_flag

Trap flag.

trap_one_shot

Trap is one-shot.

trap_type

Trap type.

type

Type.

useable

Useable flag.

vars

Variable table


class pynwn.PlaceableInstance(gff, orignal)

A placeable instance is one placed in an area in the toolset. As such it’s values are derived from its parent GFF structure.

items

Inventory items.

Returns:List of Tupels contiain repository position and the ItemInstance.
position
stage()

Stage changes to the placeable instance’s parent GFF structure.