In the general grouping, find the mechanics tab, and create a new mechanic.
Now, with mechanics, there's a special note. The "Test Now!" button will not work for mechanics, so you'll need to go back to the main HL window, and from the Develop menu, choose "Quick-reload data files". ctrl-r is the keyboard shortcut for that. You'll need to have Enable Data File Debugging turned on (at the top of the list in the Develop menu) before quick-reload becomes available.
Now, on your mechanic, add a new Eval Script. For this, I think Pre-Traits/10000 will be a good phase & priority.
To delete a tag, here's the code:
Code:
perform hero.childfound[ilPhysical].delete[AttrDicDiv.3]
And then to add a new tag
Code:
perform hero.childfound[ilPhysical].assign[AttrDicDiv.4]
Those can also be combined in a single line:
Code:
perform hero.childfound[ilPhysical].tagreplace[AttrDicDiv.3,AttrDicDiv.4]
So you'll build up a list of changes that you're making to each limit, in order to change the equation each one is using. Since all mechanics exist on all characters all the time, you'll probably want to add a source to your mechanic. That means that if the source is turned off, the mechanic is non-live, and it won't run its eval script and make these changes to the limits.
To get the Ids for mental & social, right-click that limit, and choose "Copy unique Id", which is at the bottom of that list.