You should be able to do this with global switches/variables, and make your achievements track those switches or variables. For example, by turning a global switch ON when the bad ending is unlocked, and having an achievement track that switch.
Thank you! I think this will work