Module

class pynwn.Module(module)

Module abstracts over MOD ERF files and directories containing the contents of MOD files.

areas

Areas.

Returns:List of pynwn.Area objects.
entry_area

Entry area.

Returns:pynwn.Area instance.
entry_location

Entry location.

Returns:Tuple of the X, Y, Z coordinates.
expansion_pack

Expansion pack.

game_version

Game version

get_description(lang=None)

Localized description.

get_name(lang=None)

Localized name.

glob(glob_pattern)

Returns a list of (ContentObject, Container) tuples for file names matching the glob pattern. i.e. Unix shell-style wildcards: *.utc Note: all file names are converted to lowercase.

haks

List of HAK files without ‘hak’ extension.

scripts

Scripts. Responds to script events:

  1. Event.CUTSCENE_ABORT
  2. Event.ENTER
  3. Event.EXIT
  4. Event.HEARTBEAT
  5. Event.ITEM_ACQUIRED
  6. Event.ITEM_ACTIVATED
  7. Event.ITEM_EQUIPPED
  8. Event.ITEM_UNACQUIRED
  9. Event.ITEM_UNEQUIPPED
  10. Event.LEVELUP
  11. Event.LOAD
  12. Event.DEATH
  13. Event.DYING
  14. Event.RESPAWN
  15. Event.REST
  16. Event.USER_DEFINED
set_description(lang=None, string=None)

Localized description.

set_name(lang=None, string=None)

Localized name.

stage()
tlk

Custom TLK file without file extension.

vars

Variable table

xp_scale

Experience point scale.