Auto-translated
I'm also curious about how it works. It's unclear how to specify the map name – that is, what name to write in the function. I tried it – it runs (I don't remember exactly, it was a while ago, I don't remember how I did it), and it's also unclear how it behaves with modified maps.
P.S.: If the function could be made to work correctly, it would be ideal for combining heavily modified maps into a single campaign. Unfortunately, it's not yet possible to combine maps with mods into a campaign.
The path is very simple:
Put the second map into the archive with the first one, for example, name it map_2.xdb and add another map_tag to it, and then in the script
WarpToMap('AdvMapDescTag:Maps/Singleplayer/map name/map-tag_2.xdb.(AdvMapDescTag).xdb#xpointer(/AdvMapDescTag)');the second parameter is the player ID, by default 1.