For Divine Divinity, Barnabus figured out the procedure and I started with a translation of that.

I described how I identified some suff in Beyond Divinity in the topic hexess agentsv over wall. Once you get an idea of the file structure, you can target your searches much better, or even make random changes in a limited section, to see what effect it has.

[BD] Hex editing - gold, experience, stat/skill points - later in the topic there are a few more sections listing more things that can be edited, with a little bit of detail on how I figured out some of it

[BD] Teleporting anywhere (via hex editor) - replies add info about NPC teleporting

In DD, NPC teleporting is described in the topic Reviving dead NPCs (also discovered by Barnabus).