Key / Bif

Key

class pynwn.Key(fname, data_path)

...

Parameters:
  • fname (str) – File handle.
  • data_path – Path to your NWN installation directory. e.g: C:/NeverwinterNights/NWN/

Bif

The Key class abstracts over Bif classes, so there would never be any reason to instantiate this class directly.

class pynwn.Bif(key, io)

Bif.

has_res(id)

Determine if Bif contains a resource by an resoure ID.

Parameters:id (int) – A resource ID.