Individual button disable for multi state button

Is there a way to disable individual buttons on a multi state button object? For example, I am using it for a mode controller, and there are some modes that are not always valid to switch to, depending on some other conditions. However, I don’t want to disable the whole thing, as some other modes are still valid. Is there a way to do this?

BTW, I know I can do it with a template. I was just curious if there’s a way to do this within the regular object.

I don’t think there’s a way to disable, but you can programmatically add/remove states through scripting, since the states and their information are stored in a dataset.