Difference between revisions of "User:AVS/Secondary skill format"
From VCMI Project Wiki
< User:AVS
(→Format) |
(→Format) |
||
Line 21: | Line 21: | ||
"name": "Skill Name", | "name": "Skill Name", | ||
− | //optional | + | //optional | default = false| boolean |
− | //this skill cant be learned in usual way, | + | //this skill cant be learned in usual way, overrides chance to get |
"special": true, | "special": true, | ||
+ | //optional| default 0| chance to learn by default for any Hero Class from any mod | ||
+ | "defaultChance": 3, | ||
+ | |||
+ | //optional | no default | string-numeric dictionary as json object | ||
+ | //class-specific chance (reveresed version of Hero Class attribute) | ||
+ | "chances": | ||
+ | { | ||
+ | "core:hero.cleric": 5 | ||
+ | } | ||
//required | object | //required | object | ||
Line 31: | Line 40: | ||
"basic": | "basic": | ||
{ | { | ||
− | //optional, | + | //optional| default auto-generated| string |
+ | //translatable name | ||
+ | "name": "Basic nothing", | ||
+ | |||
+ | //optional |no default| object with attributes in bonus format | ||
//there are skills handled only by skill level | //there are skills handled only by skill level | ||
//and there might be skill that give bonus only on high level | //and there might be skill that give bonus only on high level | ||
− | // allows overriding by name | + | // (allows overriding by name) |
− | "firstBonus":{[bonus format]}, | + | "bonuses": |
− | + | { | |
− | + | "firstBonus":{[bonus format]}, | |
+ | "secondBonus":{[bonus format]} | ||
+ | } | ||
}, | }, | ||
Revision as of 21:56, 18 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 | default = false| boolean
//this skill cant be learned in usual way, overrides chance to get
"special": true,
//optional| default 0| chance to learn by default for any Hero Class from any mod
"defaultChance": 3,
//optional | no default | string-numeric dictionary as json object
//class-specific chance (reveresed version of Hero Class attribute)
"chances":
{
"core:hero.cleric": 5
}
//required | object
"levels":{
"basic":
{
//optional| default auto-generated| string
//translatable name
"name": "Basic nothing",
//optional |no default| object with attributes in bonus format
//there are skills handled only by skill level
//and there might be skill that give bonus only on high level
// (allows overriding by name)
"bonuses":
{
"firstBonus":{[bonus format]},
"secondBonus":{[bonus format]}
}
},
"advanced":
{
},
"expert":
{
}
}
}
}