Thanks a lot, I was able to figure out the correct value for the quest with the variable you provided. Didn't know it would keep progressing even if you skip a flag but fail at the end.
It's a silly quest with no rewards but considering how many characters romance end in tragedy it would've bugged me if I couldn't give them a happy ending.