The usual way to do this is to choose the destination directly from the Map Editor. You can also do it in the map script if you prefer, but the previous option is usually much better: it is easier/faster to find that option in the properties window than to look into the code of a script. However, if you are generating maps randomly, you should probably choose these properties from your code.