User Tools

Site Tools


cerea1:builders:gen_door_are

_gen_door_are.nss

Usage

This script is used as a OnAreaTransitionClick script of the door or as a OnUsed script of the placeable or secret door.

This should be used by all doors. If special handling is required use Hooks to modify the behavior of this script.

What it does

This function will do following things:

  1. Hooks: Call the OnAreaTransitionClick or OnUsed hooks if defined.
  2. Traps: Block entry if object is trapped
  3. Locks: Block entry if object is locked, or open the lock if PC has suitable keys. Variables.
  4. Opening: Open the object if it is closed. Variables. Visual effects used open_vfx* and open_vfx_player*.
  5. Broken: Block entry if variable broken is set.
  6. Transfer: Transfer player and his henchman and summoned creatures to the target destination. Variables. Visual effects used transfer_vfx, transfer_vfx_target and transfer_vfx_player*.
cerea1/builders/gen_door_are.txt · Last modified: 2015/05/03 12:46 by 127.0.0.1