Area

class pynwn.Area(resref, container)
__weakref__

list of weak references to the object (if defined)

comment

Comments.

creatures

Creature instances.

Returns:List of pynwn.CreatureInstance objects.
day_ambient_color

Day ambient color.

day_diffuse_color

Day diffuse color.

day_fog_amount

Daytime fog amount (0-15)

day_fog_color

Daytime fog color (BGR format)

day_night_cycle

1 if day/night transitions occur, 0 otherwise.

day_shadows

1 if shadows appear during the day, 0 otherwise.

doors

Door instances.

Returns:List of DoorInstance objects.
encounters

Encounters

Returns:List of pynwn.EncounterInstance objects.
flags

Bit flags specifying area terrain type.

fog_clip_distance

Fog clip distance.

get_name(lang=None)

Localized name.

height

Area height.

is_night

1 if always night, 0 if always day.

items

Item instance list.

Returns:List of pynwn.ItemInstance objects.
lighting_scheme

Index into environment.2da

lightning

Chance of lighting [0,100]

listen_modifier

Modifier to Listen skill checks made in area

load_screen

Load screen ID

night_ambient_color

Nighttime ambient color.

night_diffuse_color

Nighttime diffuse color.

night_fog_amount

Nighttime fog amount (0-15)

night_fog_color

Nighttime fog color.

night_shadows

1 if shadows appear at night, 0 otherwise

no_rest

1 if resting is not allowed, 0 otherwise

placeables

Placeables

Returns:List of pynwn.PlaceableInstance objects.
pvp

Area PvP setting.

rain

Chance of rain [0,100]

resref

Resref.

scripts

Scripts. Responds to script events:

  1. Event.ENTER
  2. Event.EXIT
  3. Event.HEARTBEAT
  4. Event.USER_DEFINED
set_name(lang=None, string=None)

Localized name.

shadow_opacity

Opacity of shadows (0-100).

skybox

Index into skyboxes.2da.

snow

Chance of snow [0,100]

sounds

Sounds

Returns:List of pynwn.SoundInstance objects.
spot_modifier

Modifier to Spot skill checks made in area

stores

Stores

Returns:List of pynwn.StoreInstance objects.
tag

Tag.

tiles

Tiles :returns: List of pynwn.TileInstance objects.

tileset

Tileset.

triggers

Triggers

Returns:List of pynwn.TriggerInstance objects.
vars

Variable table

version

Area version

waypoints

Waypoints

Returns:List of pynwn.WaypointInstance objects.
width

Area width.

wind_power

Strength of the wind in the area. None, weak, or strong (0-2).