I deal with maladaptive daydreaming. AKA I am daydreaming almost constantly regardless of consequences, usually spacing or sometimes (in a minor way) acting out the daydreams. This is the one thing that keeps me from doing some really stupid and ineffective CTB method out of impulse, because even if real life sucks, I can always retreat inwards.
At one point I thought if my daydreams were real (or my daydream-self was real), I'd never be suicidal, but I've noticed that a good chunk of my daydreams anymore involve killing myself (and when not, it's usually there in a fastasy, immortal, not-really-dead-forever way), so...that's a bust I guess.
I also considered before if I won the lottery somehow I might be less suicidal, but it's been background noise in my brain for so long I'm not sure it's a thing that would ever just go away, no matter how "good" I had it.