Trigger

class pynwn.Trigger(resource, instance=False)
comment

Comment.

faction

Faction ID.

get_name(lang=None)

Localized name.

highlight_height

Cursor.

key_auto_remove

Auto-remove key flag.

key_tag

Key tag.

linked_to

Linked to object tag.

linked_to_flags

Linked to flags.

load_screen

Load screen ID.

paletted_id

Palette ID.

portrait_id

Portrait ID.

resref

Resref.

scripts

Scripts. Responds to script events:

  1. Event.TRAP_DISARMED
  2. Event.TRAP_TRIGGERED
  3. Event.CLICK
  4. Event.HEARTBEAT
  5. Event.ENTER
  6. Event.EXIT
  7. Event.USER_DEFINED
set_name(lang=None, string=None)

Localized name.

stage()

Stages changes to GFF structure.

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 one shot flag.

trap_type

Trap type.

type

Type.

vars

Variable table


class pynwn.TriggerInstance(gff, parent_obj)

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

position
stage()

Stages changes to parent GFF structure.