I have some exp with Dragon Age Origins modding, some things in Kotor not equal, but very similar. In DAO almost on every action (open inventory, cast spell, attacking) firing some event, you can hook that event and add some custom code to it, which exeute every time when this event fires. Something similar here? https://nwn.fandom.com/wiki/Module_event something similar in nwn if i understand it right, dont have exp with nwn. Cant find something like this in kotor scripts.