Difference between revisions of "User:AVS/Secondary skill format"

From VCMI Project Wiki
Jump to: navigation, search
(Format)
Line 12: Line 12:
 
"skillName":
 
"skillName":
 
{
 
{
 +
 +
//required for H3 skills, not allowed in mods (even if mod is overriding original skill) | number
 +
//numeric id
 +
"id": 42,
 +
 +
//required | string
 +
//translatable name
 +
"name": "Skill Name",
 +
 +
//optional | boolean  | default = false
 +
//this skill cant be learned in usual way, override chance to get
 +
"special": true,
 +
 +
 
//required | object
 
//required | object
 
"levels":{
 
"levels":{
Line 17: Line 31:
 
"basic":  
 
"basic":  
 
{
 
{
//required at least one(???), any name | bonus format | allows overriding by name
+
//optional (there might be skill that give bonus only on high level), any name | bonus format
 +
// allows overriding by name
 
"firstBonus":{[bonus format]},
 
"firstBonus":{[bonus format]},
 
"secondBonus":{[bonus format]}
 
"secondBonus":{[bonus format]}

Revision as of 19:18, 7 January 2014

Questions

  • How skill disabling ("skillName": null) should be handled, especially in case of starting hero skill?
  • Should default values (with no skill level) be configured too?

Format

{
	"skillName":
	{

		//required for H3 skills, not allowed in mods (even if mod is overriding original skill) | number
		//numeric id
		"id": 42,

		//required | string 
		//translatable name
		"name": "Skill Name",		

		//optional | boolean  | default = false
		//this skill cant be learned in usual way, override chance to get
		"special": true,


		//required | object
		"levels":{

			"basic": 
			{
				//optional (there might be skill that give bonus only on high level), any name | bonus format
				// allows overriding by name
				"firstBonus":{[bonus format]},
				"secondBonus":{[bonus format]}
				

			},

			"advanced":
			{

			},

			"expert":
			{
			
			}
		}

	}
}