Attending with someone is the most effective single safety measure available at group events, and it requires no equipment, no money and no negotiation with anyone else. Most serious incidents involve a person who was unwell, distressed or in trouble and unnoticed for a period, and the whole function of a companion is to be the person who notices.
What does it actually cover?
Someone noticing if you disappear or stop being visible. Someone who can call an ambulance if you become unwell and tell paramedics what you took. Someone to leave with, which removes the awkwardness of going alone. And someone to check your judgement, which degrades over an evening in ways you will not observe yourself.
What should you agree beforehand?
That you will check in at intervals, roughly how often, and where. That either of you can say you want to leave without a discussion and the other will come. What each of you is planning to take, if anything, and how much. And what to do if one of you wants to go home with someone.
Does it have to be a close friend?
No. It works with anyone reliable enough to keep the arrangement, and people attend regularly with acquaintances from the scene rather than close friends. What matters is that they will actually look for you rather than assume you are fine.
What if you prefer going alone?
Plenty of people do, and it is a legitimate choice rather than recklessness. The substitutes are weaker but real: tell someone outside the event where you are and when to expect you back, agree to message when you leave, and make a point of speaking to at least one person at the event so somebody would notice your absence. In a venue, know where staff are.
What about meeting someone there?
Better than nothing and less reliable than arriving together, since plans dissolve. If you are relying on meeting someone, agree a time and a place to check in rather than assuming you will find each other.
How does it work if you separate?
Agree a specific check-in interval rather than a vague intention. Every hour, at a fixed point, works better than looking for each other when you happen to think of it. Phone signal in basements and back rooms is often poor, so a physical meeting point is more reliable than messaging.
What if your companion becomes unwell?
Recovery position, stay with them, and call 999 if they cannot be roused, are breathing slowly or irregularly, are seizing or look blue. Tell paramedics exactly what was taken. Do not leave them in a room to sleep it off, which is how people die at these events.
What if they want to stay and you do not?
Agreed in advance, this is straightforward. Either you leave separately with a message when each of you is home, or the arrangement is that you go together. Deciding at four in the morning, when one of you wants to go, is where the arrangement usually fails.
Does this apply to venues as well as private parties?
To both, and more to private parties, where there are no staff and no institutional recourse. In a venue, staff partly substitute for a companion; at a private event, nobody does.
The version worth adopting
Go with someone, agree to check in hourly, agree that either of you can call it, and tell a third person where you both are.
What if nobody wants to come?
Then use the substitutes deliberately rather than defaulting to nothing. Message someone your location before you go, arrange to message again when you leave, and agree that if they do not hear from you by a certain time they will call. It takes two messages and covers the worst case.
Does it change how you behave?
Often, and usually for the better. Having someone who will notice tends to keep limits in place, and people report that going with a friend makes it easier to leave when they want to rather than staying by default.