The syntax for starmapscript is very simple:
if CVAR1 eq VALUE1 CVAR2 VALUE2
CVAR2 will be set to VALUE2 if CVAR1 is currently set to VALUE1.
'curmap' is a read-only cvar that tracks the current map, so it is a useful condition:
if curmap eq MAP01 skill 5
if curmap eq MAP02 skill 4
if curmap eq MAP30 hostname "join if you dare"
This code can be placed directly into starmapscript, or it can be put in a script, and starmapscript can be set to "exec script.cfg".
While
bug 112 is still open, these scripts are SUBJECT TO CHANGE. Suggestions for improvement/replacement are welcome.