Can you show me an example?
Alright, given that you said that getting to camp works, but returning isn't, I think it's safe to presume you know how common events work.
Go to the Common Event tab in the Database, start a new one. (Keep the old one in case it has text and whatnot that you don't want to copy over.
Create a Conditional Branch, make sure it has 'Create Else Branch' ticked. Set Switch to a switch named 'At Camp' to ON.
Next, go to under Else.
Go to 'Control Variables'. Set the Variable to one named Map ID. Operation: Set. Operand: Game Data: Other: Map ID.
Go to 'Control Variables'. Set the Variable to one named Player X. Operation: Set. Operand: Game Data: Character: Player: Map X.
Go to 'Control Variables'. Set the Variable to one named Player Y. Operation: Set. Operand: Game Data: Character: Player: Map Y.
Transfer Character to 'Map: Camp'.
Set 'Switch: At Camp' to ON.
This should transfer the player to Camp, the At Camp Switch should 'remember' that you are at the camp, setting up the 'If'.
Go under 'If'
Transfer 'Map ID', 'Player X', 'Player Y'
Set 'Switch: At Camp' to OFF.
This should return the player to their original position. The At Camp Switch should now 'remember' you are not at the camp, setting up the Else.
Please refer to the Visual Aids spoiler in case I'm unclear.