The documentation contains examples and explains the concepts
If you exported a room to a script, it would be
var map = scr_rm_city_outskirts();
room_pack_load_map(map, 128, 0);
ds_map_destroy(map);
=val
after argument names indicate what the argument will be assigned to if you do not provide it, by the way.