setmaincom

classmodpages 3, 27

setmaincom "monster name"

Arguments

ArgumentTypeRequiredReferences
monster namestryesmonster

Takes 1 argument.

What it does

Sets the main commander for the class. For example, the main commander for the Baron class is Baron and the main commander for the Barbarian class is Barbarian Leader. If the main commander does not appear in the recruitment list for the class, he cannot be replaced if lost.

— modding manual, page 27 (as a class command)

From the base game data

class data
setmaincom "Baron"
class data
setmaincom "Goblin King"
class data
setmaincom "Red Kobold Shaman"

← All commands