The map rotation part should look like this:
set VAR1 "map MAP1; set nextmap vstr VAR2"
set VAR2 "map MAP2; set nextmap vstr VAR3"
...
set VARN "map MAPN; set nextmap vstr VAR1"
vstr VAR1
where VAR1 to VARN are variable names MAP1 to MAPN are map names.
The set parts are just variable assigments, you store two commands:
- map which sets the current map
- setting the nextmap variable which contains the command to run when the nextmap is needed
vstr is the command to run commands stored in a variable.
You should change this:
// Map rotation:
set d1 "map mb2_duel_revan;set nextmap vstr d2"
set d2 "map mb2_duel_dotf;set nextmap vstr d3"
set d3 "map mb2_duel_ravager;set nextmap vstr d4"
set d5 "map mb2_mustafar;set nextmap vstr d6"
set d6 "map mb2_jeditemple;set nextmap vstr d7"
set d12 "map mb2_duel_malachor;set nextmap vstr d13"
set d13 "map mb2_enclave;set nextmap vstr d14"
set d14 "map mb2_duel_office;set nextmap vstr d15"
// Start the first map in the rotation
to this:
// Map rotation:
set d1 "map mb2_duel_revan;set nextmap vstr d2"
set d2 "map mb2_duel_dotf;set nextmap vstr d3"
set d3 "map mb2_duel_ravager;set nextmap vstr d4"
set d4 "map mb2_mustafar;set nextmap vstr d5"
set d5 "map mb2_jeditemple;set nextmap vstr d6"
set d6 "map mb2_duel_malachor;set nextmap vstr d7"
set d7 "map mb2_enclave;set nextmap vstr d8"
set d8 "map mb2_duel_office;set nextmap vstr d1"
vstr d1 // Start the first map in the rotation