Set up four match registers at <time_period>/4, <time_period>/2, 3*<time_period>/4 and <time_period>,
and another four at <time_period>/4+<pulsewidth> and <time_period>/2+<pulsewidth> etc.
Set up four events, one for each match register.
Use EVENT1 to SET output 1,
Use EVENT2 to SET output 2
Use EVENT3 to SET output 3
Use EVENT4 to SET output 4
Use EVENT5 to CLEAR output 1
Use EVENT6 to CLEAR output 2
Use EVENT7 to CLEAR output 3
Use EVENT8 to CLEAR output 4
Use EVENT4 to LIMIT the counter.
Everything stays in STATE 0.
If not clear from this, let me know your clock frequency and PWM frequency.
When you change the pulsewidth, you need to update four registers.
If that's inconvenient, then it probably CAN be done using states, but this is a lot easier to understand!