I'm interested in making a mod that would allow civil abilities, particularly Bartering and Lucky Charm, to be "shared" between all characters in the party, such that the highest skill on any one character is used when selling/looting/etc. on any other character.

This is obviously to cut down on the tedium of having to use a dedicated "barter" character or a "loot" character. You would still need to invest the points somewhere in your party, but you wouldn't have to remember to switch over to them every single time you sold something or looted something.

I haven't done much game modding, but if this were (for instance) Skyrim, I'd expect to go looking for a function in a script somewhere that handled the looting and simply edit it a bit. For instance, I'd expect to find something like this:

do_loot(params){
extra_loot_chance = actor.stats.lucky_charm / 10
...
}

And simply edit it to loop through all characters in the party, find the highest Lucky Charm stat, and simply use that value in the function's calculation instead.

Am I on the right track with this line of thinking for this game, or should I be looking in another direction?

Where are the scripts for this game anyway? I'm in the script editor going through my game folder and I can't find any scripts in any folder to open and edit.

Thanks!