Difference between revisions of "Hero Classes Format"

From VCMI Project Wiki
Jump to: navigation, search
(Created page with "<syntaxhighlight lang="javascript"> // Unique identifier of hero class, camelCase "myClassName" : { // Various hero animations "animation" { "battle" : { // Battle ...")
(No difference)

Revision as of 11:52, 15 December 2012

// Unique identifier of hero class, camelCase
"myClassName" :
{
	// Various hero animations
	"animation"
	{
		"battle" : 
		{
			// Battle animation for female heroes
			"female" : "myMod/battle/heroFemale",

			// Battle animation for male heroes, can be same as female
			"male"   : "myMod/battle/heroMale"
		}
		"map" :
		{
			// Map animation for female heroes
			"female" : "myMod/map/heroMyClass",

			// Map animation for male heroes, can be same as female
			"male"   : "myMod/map/heroMyClass"
		}
	},

	// Translatable name of hero class
	"name" : "My hero class",

	// Identifier of faction this class belongs to
	"faction" : "myFaction",

	// Initial primary skills of heroes
	"primarySkills" :
	{
		"attack"     : 2,
		"defence"    : 0,
		"spellpower" : 1,
		"knowledge"  : 2
	},

	// Chance to get specific primary skill on level-up
	// This set specifies chances for levels 2-9
	"lowLevelChance" :
	{
		"attack"     : 15,
		"defence"    : 10,
		"spellpower" : 50,
		"knowledge"  : 25
	},

	// Chance to get specific primary skill on level-up
	// This set specifies chances for levels starting from 10
	"highLevelChance" :
	{
		"attack"     : 25,
		"defence"    : 5,
		"spellpower" : 45,
		"knowledge"  : 25
	},

	// Chance to get specific secondary skill on level-up
	// Skills not listed here will be considered as unavailable, including universities
	"secondarySkills" :
	{
		"pathfinding"  : 3.
		"archery"      : 6.
		 ...
		"resistance"   : 5,
		"firstAid"     : 4
	},

	// Chance for this hero to appear in tavern of this factions.
	// If faction is not listed or chance set to 0 heroes will not appear in it
	"tavern" :
	{
		"castle"     : 4,
		 ...
		"conflux"    : 6
	}
}