set d41 "set g_gametype 2; map <mapname_here> ; set nextmap vstr d42"
set d42 "set g_gametype 2; map <mapname_here> ; set nextmap vstr d43"
set d43 "set g_gametype 2; map <mapname_here> ; set nextmap vstr d44"
set d44 "set g_gametype 2; map <mapname_here> ; set nextmap vstr d45" <- (if you want to end mapcycle you have to end the loop, in the last one map you have to write set nextmap vstr d1).
...and so on.