Can custom badges be used for all gamification activities?

No. As of now, custom badges can only be used for Discretionary Points.