There's already additional win/lose condition stuff that can be set up in mod files, though ATM it's mostly down to things like a player touching an object and things like that. The modding guys will be able to explain it better than I can.
It just needs expanded to allow for more conditions, and OFC it'll need people to make mods that use it.