Hmm, if I understand you correctly Littiz, you are actually making these restriction by editing ALL of the items which
you don't want to be used by your kit via WeiDU right ?
I do modify *some* items on the fly, but it's not the point, since the real problem is that you can't specify a NEW kit in the list of unallowed users. This forced me to think about an alternative solution

That seams to be feasible if you are only working with ONE kit, however, the Thief has one core class + three kits, I don't really see how you could set the item restrictions to those with this method from IN the game
I know, it stopped me as well, until I realized I could apply the previous solution in
reverse!
I told you it was tricky!

Trust me, that part is solved. In this case, I can elaborate even a "cleaner" version, maybe
perfectly clean...
Ok, follow my reasoning:
A swashbuckler has 0x00100000 as UNUSABLE value.
Suppose that I set it at 0x00100020.
I've just *added* the UNUSABLE value of Undead Hunters. What happens?
Nothing!!!!
Undead Hunters,
relatively to their base class, lose no equipment.
So that value applied to a thief Kit has no effect.
And in game you won't find items usable by Inquisitors, while NOT by Undead Hunters.
They're all flagged as usable by Paladins or not, but there's not an "intra-kit" discrimination, which is where the unusable value is really needed. Of course such items could exist, they could be created by some mods, but probably wouldn't be usable by thieves anyway, so again, no effect.
Yet some items may be *redundantly* flagged as unusable by paladins and by all paladins kits, but those very few items could be corrected *if* they create problems.
So, I set this value and I can assure that things work fine.
Next step. I correct all the MAGE scrolls in the game. I flag them as USABLE by thieves, but UNUSABLE by Undead Hunters!!!
What happens now?
Nothing to Undead Hunters, which wouldn't use Mage Scrolls anyway (they're flagged as UNUSABLE by Paladins...).
But now my SwashBuckler can't use them, even if I flagged them as USABLE by thieves, since he also has the UNUSABLE value of Undead Hunters!!!!!!!
So, what remains to do?
Just creating copies of the original swashbuckler Kit, which will have the ORIGINAL unusable value.
When I apply the "Twin Kit" via script, it'll be able to use all the mage scrolls!!!!!
Repeat for all kits...
Ironically, the big problem remains for the True Class. I'd need to change that twice, and find a way to change it immediately as soon as a true-class thief is created or joins the party.
Maybe even from Baldur.bcs... True classes will definitely need more scripting, I'll need some help here.
The
WeiDU code isn't really easy, as you need to use the NO BACKUP option in some cases, to prevent some files to be backuped twice thus losing the original versions. Then you have to fully understand the hex calculations of the unusable values, and where to ADD (or sometimes SUBTRACT) the values.
But I've already created a template to follow, since the Sword Angel Kit is ready and working. B)
(actually I had to be even more radical with that).
I tried AddKit, and it works fully, even with new kits, and even when a character has ALREADY a kit!
This means that Use Scrolls should really be possible. B)
I only have to find out now how to target the right character when I summon the creature, and how and when to change the True-Class...
Frankly I'd consider the chance of casting failure a secondary problem: if we make Use Scrolls, it'd be already a great success!!!
I'll try to work on this from, uh, Thursday I think.
I know, I know... I am a GENIUS!!!