How to keep what you’ve been building on?

More specifically how can I keep my character and not let outside things interfere with what I’ve been building for myself.

I know I’m responsible for what happens around me. it’s not the worlds fault, I’m in charge.

But how do I keep a strong character despite distractions or other people’s influences.