Every significant GUI in Neverwinter Nights 2 consists of a file in .xml format, which contains the code for the "Visual" part of GUI, and a number of NWScript scripts, which follow a specific naming convention and get executed by the specific events or actions on the XML GUI.
People who are familiar with files composed in .xml format might notice that NWN2's XML has certain differences from how XML files are traditionally composed.
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO