Text this: Structural transitions in systems with a triple-well potential