I have made a series of 20 new castles for my WoT mod, but I am unsure as to how to add the new bufs I have made for them so that they work.

I have seen it done in mods such as HTW, but I've no idea how to do it myself.