Where are you travelling to? Many places will allow purchase of drugs over the counter, provided you have a prescription, in your own name. In one place I know, they replaced prescription ear drops, just with the packaging (with the UK pharmacy label).
I'd also have a frank discussion with your GP. I am away from the UK for more than 90 days at present, and there are NHS implications to doing that, which makes sense to iron out before going. In most instances, provided you retain property, and intend to return, your GP is likely to be sympathetic, and indeed may see your gap year as a positive, in terms of lifestyle, to your condition. My GP is incredibly envious of the trip I am undertaking and wants to do the same as soon as he can afford to give it all up, so I have his support. I'm not on any medication, so obviously, I had no hurdles there.
If you are travelling in Europe, there are so many ways to deal,with this. But, having a chat with your GP is very worthwhile.
I hope you enjoy your big adventure.