https://wiki.vcmi.eu/api.php?action=feedcontributions&user=Itoijala&feedformat=atom
VCMI Project Wiki - User contributions [en]
2024-03-29T07:02:30Z
User contributions
MediaWiki 1.28.2
https://wiki.vcmi.eu/index.php?title=Creature_Format&diff=692
Creature Format
2012-08-27T16:18:52Z
<p>Itoijala: added json schema</p>
<hr />
<div>This is only a proposal and not official information by the VCMI team. See thread http://forum.vcmi.eu/viewtopic.php?t=533.<br />
<br />
todo:<br />
* remove deprecated attributes once implemented in town config<br />
* creature experience<br />
* abilities exact syntax<br />
<br />
Creature abilities use [[Bonus Format]].<br />
<br />
Json schema (see http://json-schema.org/)<br />
<pre><br />
{<br />
"type" : "object",<br />
"additionalProperties" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" : false,<br />
"properties" :<br />
{<br />
"name" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" : false,<br />
"properties" :<br />
{<br />
"singular" :<br />
{<br />
"type" : "string"<br />
},<br />
"plural" :<br />
{<br />
"type" : "string"<br />
}<br />
}<br />
},<br />
"level" :<br />
{<br />
"type" : "integer"<br />
},<br />
"faction" :<br />
{<br />
"type" : "string"<br />
},<br />
"cost" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 0<br />
}<br />
},<br />
"fightValue" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 0<br />
},<br />
"aiValue" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 0<br />
},<br />
"growth" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 1<br />
},<br />
"hitPoints" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 1<br />
},<br />
"speed" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 0<br />
},<br />
"attack" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 0<br />
},<br />
"defence" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 0<br />
},<br />
"shots" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 0,<br />
"default" : 0<br />
},<br />
"spellPoints" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 0,<br />
"default" : 0<br />
},<br />
"doubleWide" :<br />
{<br />
"type" : "boolean",<br />
"default" : false<br />
},<br />
"damage" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" : false,<br />
"properties" :<br />
{<br />
"min" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 0<br />
},<br />
"max" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 0<br />
}<br />
}<br />
},<br />
"advMapAmount" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" : false,<br />
"properties" :<br />
{<br />
"min" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 0<br />
},<br />
"max" :<br />
{<br />
"type" : "integer",<br />
"minimum" : 0<br />
}<br />
}<br />
},<br />
"upgrades" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" :<br />
{<br />
"type" : "boolean"<br />
}<br />
},<br />
"graphics" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" : false,<br />
"properties" :<br />
{<br />
"animation" :<br />
{<br />
"type" : "string"<br />
},<br />
"timeBetweenFidgets" :<br />
{<br />
"type" : "number",<br />
"default" : 1.0<br />
},<br />
"troopCountLocationOffset" :<br />
{<br />
"type" : "integer",<br />
"default" : 0<br />
},<br />
"animationTime" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" : false,<br />
"properties" :<br />
{<br />
"walk" :<br />
{<br />
"type" : "number",<br />
"default" : 1.0<br />
},<br />
"attack" :<br />
{<br />
"type" : "number",<br />
"default" : 1.0<br />
},<br />
"flight" :<br />
{<br />
"type" : "number",<br />
"default" : 1.0<br />
}<br />
}<br />
},<br />
"background" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" : false,<br />
"properties" :<br />
{<br />
"120" :<br />
{<br />
"type" : "string",<br />
"default" : ""<br />
},<br />
"130" :<br />
{<br />
"type" : "string",<br />
"default" : ""<br />
}<br />
}<br />
},<br />
"missile" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" : false,<br />
"properties" :<br />
{<br />
"animation" :<br />
{<br />
"type" : "string",<br />
"default" : ""<br />
},<br />
"spinning" :<br />
{<br />
"type" : "boolean",<br />
"default" : false<br />
},<br />
"offset" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" : false,<br />
"properties" :<br />
{<br />
"upperX" :<br />
{<br />
"type" : "integer",<br />
"default" : 0<br />
},<br />
"upperY" :<br />
{<br />
"type" : "integer",<br />
"default" : 0<br />
},<br />
"middleX" :<br />
{<br />
"type" : "integer",<br />
"default" : 0<br />
},<br />
"middleY" :<br />
{<br />
"type" : "integer",<br />
"default" : 0<br />
},<br />
"lowerX" :<br />
{<br />
"type" : "integer",<br />
"default" : 0<br />
},<br />
"lowerY" :<br />
{<br />
"type" : "integer",<br />
"default" : 0<br />
}<br />
}<br />
},<br />
"frameAngles" :<br />
{<br />
"type" : "array",<br />
"additionalItems" : false,<br />
"items" :<br />
{<br />
"type" : "number"<br />
}<br />
}<br />
}<br />
}<br />
}<br />
},<br />
"sound" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" : false,<br />
"properties" :<br />
{<br />
"attack" :<br />
{<br />
"type" : "string",<br />
"default" : ""<br />
},<br />
"defend" :<br />
{<br />
"type" : "string",<br />
"default" : ""<br />
},<br />
"killed" :<br />
{<br />
"type" : "string",<br />
"default" : ""<br />
},<br />
"move" :<br />
{<br />
"type" : "string",<br />
"default" : ""<br />
},<br />
"moveStart" :<br />
{<br />
"type" : "string",<br />
"default" : ""<br />
},<br />
"moveEnd" :<br />
{<br />
"type" : "string",<br />
"default" : ""<br />
},<br />
"shoot" :<br />
{<br />
"type" : "string",<br />
"default" : ""<br />
},<br />
"wince" :<br />
{<br />
"type" : "string",<br />
"default" : ""<br />
}<br />
}<br />
},<br />
"abilities" :<br />
{<br />
"type" : ["object", "null"],<br />
"additionalProperties" :<br />
{<br />
"type" : "object",<br />
"additionalProperties" : false,<br />
"properties" :<br />
{<br />
"type" :<br />
{<br />
"type" : "string"<br />
},<br />
"subtype" :<br />
{<br />
"type" : "integer"<br />
},<br />
"value" :<br />
{<br />
"type" : "integer"<br />
},<br />
"valueType" :<br />
{<br />
"type" : "string"<br />
},<br />
"addInfo" :<br />
{<br />
"type" : "integer"<br />
},<br />
"effectRange" :<br />
{<br />
"type" : "integer"<br />
},<br />
"description" :<br />
{<br />
"type" : "string",<br />
"default" : ""<br />
}<br />
}<br />
}<br />
}<br />
}<br />
}<br />
}<br />
</pre><br />
<br />
long version (83 lines):<br />
<pre><br />
{<br />
"" : // name (for configs), should be camel case version of interface name. Examples: Pikeman, RoyalGriffin<br />
{<br />
// mandatory<br />
"name" :<br />
{<br />
"singular" : "",<br />
"plural" : ""<br />
},<br />
"level" : 0,<br />
"faction" : "", // config name of faction. Examples: Castle, Rampart<br />
"cost" : // cost, zero values can be omitted. Keys are the ids of the resources<br />
{<br />
"Wood" : 0,<br />
"Mercury" : 0,<br />
"Ore" : 0,<br />
"Sulfur" : 0,<br />
"Crystal" : 0,<br />
"Gems" : 0,<br />
"Gold" : 0<br />
},<br />
"fightValue" : 0,<br />
"aiValue" : 0,<br />
"growth" : 0,<br />
"hitPoints" : 0,<br />
"speed" : 0,<br />
"attack" : 0,<br />
"defence" : 0,<br />
"damage" :<br />
{<br />
"min" : 0,<br />
"max" : 0<br />
},<br />
"advMapAmount" :<br />
{<br />
"min" : 0,<br />
"max" : 0<br />
},<br />
"graphics" :<br />
{<br />
"animation" : "" // name of def file<br />
},<br />
<br />
// optional<br />
"upgrades" : {}, // keys are ids of creatures that this can be upgraded to. Values are true or false<br />
"doubleWide" : false,<br />
"shots" : 0,<br />
"spellPoints" : 0,<br />
"abilities" :<br />
{<br />
},<br />
"graphics" :<br />
{<br />
"timeBetweenFidgets" : 1.00,<br />
"troopCountLocationOffset" : 0,<br />
"attackClimaxFrame" : 0,<br />
"animationTime" :<br />
{<br />
"walk" : 1.00,<br />
"attack" : 1.00,<br />
"flight" : 1.00<br />
},<br />
"background" :<br />
{<br />
"120" : "", // if empty, uses faction background<br />
"130" : "" // if empty, uses faction background<br />
},<br />
"missile" :<br />
{<br />
"animation" : "", // name of def file for missile<br />
"spinning" : false,<br />
"offset" :<br />
{<br />
"upperX" : 0,<br />
"upperY" : 0,<br />
"middleX" : 0,<br />
"middleY" : 0,<br />
"lowerX" : 0,<br />
"lowerY" : 0<br />
},<br />
"frameAngles" : []<br />
}<br />
},<br />
"sound" : // names of sound files<br />
{<br />
"attack": "",<br />
"defend": "",<br />
"killed": "",<br />
"move": "",<br />
"shoot" : "",<br />
"wince": "",<br />
"moveStart" : "",<br />
"moveEnd" : ""<br />
},<br />
<br />
// deprecated, move to town config<br />
"hordeGrowth" : 0, // growth bonus from horde building<br />
"turretShooter" : false // if used in turret<br />
},<br />
// more creatures<br />
}<br />
</pre><br />
pikeman long (39 lines):<br />
<pre><br />
{<br />
"Pikeman" :<br />
{<br />
"name" :<br />
{<br />
"singular" : "Pikeman",<br />
"plural" : "Pikemen"<br />
},<br />
"level" : 1,<br />
"faction" : "Castle",<br />
"upgrades" :<br />
{<br />
"Halberdier" : true<br />
},<br />
"cost" :<br />
{<br />
"Gold" : 60<br />
},<br />
"fightValue" : 100,<br />
"aiValue" : 80,<br />
"growth" : 14,<br />
"hitPoints" : 10,<br />
"speed" : 4,<br />
"attack" : 4,<br />
"defence" : 5,<br />
"damage" :<br />
{<br />
"min" : 1,<br />
"max" : 3<br />
},<br />
"advMapAmount" :<br />
{<br />
"min" : 20,<br />
"max" : 50<br />
},<br />
"abilities" : // this is subject to change<br />
{<br />
"CHARGE_IMMUNITY" : {}<br />
},<br />
"graphics" :<br />
{<br />
"animation" : "CPKMAN.DEF",<br />
"animationTime" :<br />
{<br />
"walk" : 1.15<br />
}<br />
},<br />
"sound" :<br />
{<br />
"attack": "PIKEATTK.wav",<br />
"defend": "PIKEDFND.wav",<br />
"killed": "PIKEKILL.wav",<br />
"move": "PIKEMOVE.wav",<br />
"wince": "PIKEWNCE.wav"<br />
}<br />
}<br />
}<br />
</pre></div>
Itoijala
https://wiki.vcmi.eu/index.php?title=Creature_Format&diff=691
Creature Format
2012-08-26T14:57:15Z
<p>Itoijala: changed damage, advMapAmount syntax</p>
<hr />
<div>This is only a proposal and not official information by the VCMI team. See thread http://forum.vcmi.eu/viewtopic.php?t=533.<br />
<br />
todo:<br />
* remove deprecated attributes once implemented in town config<br />
* better name for amm, something more self-documenting<br />
* creature experience<br />
<br />
Creature abilities use [[Bonus Format]].<br />
<br />
long version (83 lines):<br />
<pre><br />
{<br />
"" : // name (for configs), should be camel case version of interface name. Examples: Pikeman, RoyalGriffin<br />
{<br />
// mandatory<br />
"name" :<br />
{<br />
"singular" : "",<br />
"plural" : ""<br />
},<br />
"level" : 0,<br />
"faction" : "", // config name of faction. Examples: Castle, Rampart<br />
"cost" : // cost, zero values can be omitted. Keys are the ids of the resources<br />
{<br />
"Wood" : 0,<br />
"Mercury" : 0,<br />
"Ore" : 0,<br />
"Sulfur" : 0,<br />
"Crystal" : 0,<br />
"Gems" : 0,<br />
"Gold" : 0<br />
},<br />
"fightValue" : 0,<br />
"aiValue" : 0,<br />
"growth" : 0,<br />
"hitPoints" : 0,<br />
"speed" : 0,<br />
"attack" : 0,<br />
"defence" : 0,<br />
"damage" :<br />
{<br />
"min" : 0,<br />
"max" : 0<br />
},<br />
"advMapAmount" :<br />
{<br />
"min" : 0,<br />
"max" : 0<br />
},<br />
"graphics" :<br />
{<br />
"animation" : "" // name of def file<br />
},<br />
<br />
// optional<br />
"upgrades" : {}, // keys are ids of creatures that this can be upgraded to. Values are true or false<br />
"doubleWide" : false,<br />
"shots" : 0,<br />
"spellPoints" : 0,<br />
"abilities" :<br />
{<br />
},<br />
"graphics" :<br />
{<br />
"timeBetweenFidgets" : 1.00,<br />
"troopCountLocationOffset" : 0,<br />
"attackClimaxFrame" : 0,<br />
"animationTime" :<br />
{<br />
"walk" : 1.00,<br />
"attack" : 1.00,<br />
"flight" : 1.00<br />
},<br />
"background" :<br />
{<br />
"120" : "", // if empty, uses faction background<br />
"130" : "" // if empty, uses faction background<br />
},<br />
"missile" :<br />
{<br />
"animation" : "", // name of def file for missile<br />
"spinning" : false,<br />
"offset" :<br />
{<br />
"upperX" : 0,<br />
"upperY" : 0,<br />
"middleX" : 0,<br />
"middleY" : 0,<br />
"lowerX" : 0,<br />
"lowerY" : 0<br />
},<br />
"frameAngles" : []<br />
}<br />
},<br />
"sound" : // names of sound files<br />
{<br />
"attack": "",<br />
"defend": "",<br />
"killed": "",<br />
"move": "",<br />
"shoot" : "",<br />
"wince": "",<br />
"moveStart" : "",<br />
"moveEnd" : ""<br />
},<br />
<br />
// deprecated, move to town config<br />
"hordeGrowth" : 0, // growth bonus from horde building<br />
"turretShooter" : false // if used in turret<br />
},<br />
// more creatures<br />
}<br />
</pre><br />
pikeman long (39 lines):<br />
<pre><br />
{<br />
"Pikeman" :<br />
{<br />
"name" :<br />
{<br />
"singular" : "Pikeman",<br />
"plural" : "Pikemen"<br />
},<br />
"level" : 1,<br />
"faction" : "Castle",<br />
"upgrades" :<br />
{<br />
"Halberdier" : true<br />
},<br />
"cost" :<br />
{<br />
"Gold" : 60<br />
},<br />
"fightValue" : 100,<br />
"aiValue" : 80,<br />
"growth" : 14,<br />
"hitPoints" : 10,<br />
"speed" : 4,<br />
"attack" : 4,<br />
"defence" : 5,<br />
"damage" :<br />
{<br />
"min" : 1,<br />
"max" : 3<br />
},<br />
"advMapAmount" :<br />
{<br />
"min" : 20,<br />
"max" : 50<br />
},<br />
"abilities" : // this is subject to change<br />
{<br />
"CHARGE_IMMUNITY" : {}<br />
},<br />
"graphics" :<br />
{<br />
"animation" : "CPKMAN.DEF",<br />
"animationTime" :<br />
{<br />
"walk" : 1.15<br />
}<br />
},<br />
"sound" :<br />
{<br />
"attack": "PIKEATTK.wav",<br />
"defend": "PIKEDFND.wav",<br />
"killed": "PIKEKILL.wav",<br />
"move": "PIKEMOVE.wav",<br />
"wince": "PIKEWNCE.wav"<br />
}<br />
}<br />
}<br />
</pre></div>
Itoijala
https://wiki.vcmi.eu/index.php?title=Creature_Format&diff=687
Creature Format
2012-08-25T17:39:39Z
<p>Itoijala: </p>
<hr />
<div>This is only a proposal and not official information by the VCMI team. See thread http://forum.vcmi.eu/viewtopic.php?t=533.<br />
<br />
todo:<br />
* remove deprecated attributes once implemented in town config<br />
* better name for amm, something more self-documenting<br />
* creature experience<br />
<br />
Creature abilities use [[Bonus Format]].<br />
<br />
long version (83 lines):<br />
<pre><br />
{<br />
"" : // name (for configs), should be camel case version of interface name. Examples: Pikeman, RoyalGriffin<br />
{<br />
// mandatory<br />
"name" :<br />
{<br />
"singular" : "",<br />
"plural" : ""<br />
},<br />
"level" : 0,<br />
"faction" : "", // config name of faction. Examples: Castle, Rampart<br />
"cost" : 0, // gold. If other, use optional longer syntax<br />
"fightValue" : 0,<br />
"aiValue" : 0,<br />
"growth" : 0,<br />
"hitPoints" : 0,<br />
"speed" : 0,<br />
"attack" : 0,<br />
"defence" : 0,<br />
"damage" : [0, 0], // damage min, max. If same use single integer<br />
"amm" : [0, 0], // adventure map amount. If same use single integer<br />
"graphics" :<br />
{<br />
"animation" : "" // name of def file<br />
},<br />
<br />
// optional<br />
"upgrades" : [], // config names of creatures that this creature can be upgraded to<br />
"doubleWide" : false,<br />
"cost" :<br />
{<br />
"Wood" : 0,<br />
"Mercury" : 0,<br />
"Ore" : 0,<br />
"Sulfur" : 0,<br />
"Crystal" : 0,<br />
"Gems" : 0,<br />
"Gold" : 0<br />
},<br />
"shots" : 0,<br />
"spellPoints" : 0,<br />
"abilities" :<br />
{<br />
},<br />
"graphics" :<br />
{<br />
"timeBetweenFidgets" : 1.00,<br />
"troopCountLocationOffset" : 0,<br />
"attackClimaxFrame" : 0,<br />
"animationTime" :<br />
{<br />
"walk" : 1.00,<br />
"attack" : 1.00,<br />
"flight" : 1.00<br />
},<br />
"background" :<br />
{<br />
"120" : "", // if empty, uses faction background<br />
"130" : "" // if empty, uses faction background<br />
},<br />
"missile" :<br />
{<br />
"animation" : "", // name of def file for missile<br />
"spin" : false,<br />
"offset" :<br />
{<br />
"upperX" : 0,<br />
"upperY" : 0,<br />
"middleX" : 0,<br />
"middleY" : 0,<br />
"lowerX" : 0,<br />
"lowerY" : 0<br />
},<br />
"frameAngles" : []<br />
}<br />
},<br />
"sound" : // names of sound files<br />
{<br />
"attack": "",<br />
"defend": "",<br />
"killed": "",<br />
"move": "",<br />
"shoot" : "",<br />
"wince": "",<br />
"moveStart" : "",<br />
"moveEnd" : ""<br />
},<br />
<br />
// deprecated, move to town config<br />
"hordeGrowth" : 0, // growth bonus from horde building<br />
"turretShooter" : false // if used in turret<br />
},<br />
// more creatures<br />
}<br />
</pre><br />
pikeman long (39 lines):<br />
<pre><br />
{<br />
"Pikeman" :<br />
{<br />
"name" :<br />
{<br />
"singular" : "Pikeman",<br />
"plural" : "Pikemen"<br />
},<br />
"level" : 1,<br />
"faction" : "Castle",<br />
"upgrades" : ["Halberdier"],<br />
"cost" : 60,<br />
"fightValue" : 100,<br />
"aiValue" : 80,<br />
"growth" : 14,<br />
"hitPoints" : 10,<br />
"speed" : 4,<br />
"attack" : 4,<br />
"defence" : 5,<br />
"damage" : [1, 3],<br />
"amm" : [20, 50],<br />
"abilities" :<br />
{<br />
"CHARGE_IMMUNITY" : {}<br />
},<br />
"graphics" :<br />
{<br />
"animation" : "CPKMAN.DEF",<br />
"animationTime" :<br />
{<br />
"walk" : 1.15<br />
}<br />
},<br />
"sound" :<br />
{<br />
"attack": "PIKEATTK.wav",<br />
"defend": "PIKEDFND.wav",<br />
"killed": "PIKEKILL.wav",<br />
"move": "PIKEMOVE.wav",<br />
"wince": "PIKEWNCE.wav"<br />
}<br />
}<br />
}<br />
</pre></div>
Itoijala
https://wiki.vcmi.eu/index.php?title=Creature_Format&diff=686
Creature Format
2012-08-25T16:46:07Z
<p>Itoijala: minor changes for a few names</p>
<hr />
<div>This is only a proposal and not official information by the VCMI team. See thread http://forum.vcmi.eu/viewtopic.php?t=533.<br />
<br />
todo:<br />
* remove deprecated attributes once implemented in town config<br />
* better name for amm, something more self-documenting<br />
* creature experience<br />
<br />
Creature abilities use [[Bonus Format]].<br />
<br />
long version (83 lines):<br />
<pre><br />
{<br />
"" : // name (for configs), should be camel case version of interface name. Examples: Pikeman, RoyalGriffin<br />
{<br />
// mandatory<br />
"name" :<br />
{<br />
"singular" : "",<br />
"plural" : ""<br />
},<br />
"level" : 0,<br />
"faction" : "", // config name of faction. Examples: Castle, Rampart<br />
"cost" : 0, // gold. If other, use optional longer syntax<br />
"fightValue" : 0,<br />
"aiValue" : 0,<br />
"growth" : 0,<br />
"hitPoints" : 0,<br />
"speed" : 0,<br />
"attack" : 0,<br />
"defence" : 0,<br />
"damage" : [0, 0], // damage min, max. If same use single integer<br />
"amm" : [0, 0], // adventure map amount. If same use single integer<br />
"graphics" :<br />
{<br />
"animation" : "" // name of def file<br />
},<br />
<br />
// optional<br />
"upgrades" : [], // config names of creatures that this creature can be upgraded to<br />
"doubleWide" : false,<br />
"cost" :<br />
{<br />
"Wood" : 0,<br />
"Mercury" : 0,<br />
"Ore" : 0,<br />
"Sulfur" : 0,<br />
"Crystal" : 0,<br />
"Gems" : 0,<br />
"Gold" : 0<br />
},<br />
"shots" : 0,<br />
"spellPoints" : 0,<br />
"abilities" :<br />
{<br />
},<br />
"graphics" :<br />
{<br />
"timeBetweenFidgets" : 1.00,<br />
"troopCountLocationOffset" : 0,<br />
"attackClimaxFrame" : 0,<br />
"animationTime" :<br />
{<br />
"walk" : 1.00,<br />
"attack" : 1.00,<br />
"flight" : 1.00<br />
},<br />
"backgrounds" :<br />
{<br />
"120" : "", // if empty, uses faction background<br />
"130" : "" // if empty, uses faction background<br />
},<br />
"missile" :<br />
{<br />
"animation" : "", // name of def file for missile<br />
"spin" : false,<br />
"offset" :<br />
{<br />
"upperX" : 0,<br />
"upperY" : 0,<br />
"middleX" : 0,<br />
"middleY" : 0,<br />
"lowerX" : 0,<br />
"lowerY" : 0<br />
},<br />
"frameAngles" : []<br />
}<br />
},<br />
"sound" : // names of sound files<br />
{<br />
"attack": "",<br />
"defend": "",<br />
"killed": "",<br />
"move": "",<br />
"shoot" : "",<br />
"wince": "",<br />
"moveStart" : "",<br />
"moveEnd" : ""<br />
},<br />
<br />
// deprecated, move to town config<br />
"hordeGrowth" : 0, // growth bonus from horde building<br />
"turretShooter" : false // if used in turret<br />
},<br />
// more creatures<br />
}<br />
</pre><br />
pikeman long (39 lines):<br />
<pre><br />
{<br />
"Pikeman" :<br />
{<br />
"name" :<br />
{<br />
"singular" : "Pikeman",<br />
"plural" : "Pikemen"<br />
},<br />
"level" : 1,<br />
"faction" : "Castle",<br />
"upgrades" : ["Halberdier"],<br />
"cost" : 60,<br />
"fightValue" : 100,<br />
"aiValue" : 80,<br />
"growth" : 14,<br />
"hitPoints" : 10,<br />
"speed" : 4,<br />
"attack" : 4,<br />
"defence" : 5,<br />
"damage" : [1, 3],<br />
"amm" : [20, 50],<br />
"abilities" :<br />
{<br />
"CHARGE_IMMUNITY" : {}<br />
},<br />
"graphics" :<br />
{<br />
"animation" : "CPKMAN.DEF",<br />
"animationTime" :<br />
{<br />
"walk" : 1.15<br />
}<br />
},<br />
"sound" :<br />
{<br />
"attack": "PIKEATTK.wav",<br />
"defend": "PIKEDFND.wav",<br />
"killed": "PIKEKILL.wav",<br />
"move": "PIKEMOVE.wav",<br />
"wince": "PIKEWNCE.wav"<br />
}<br />
}<br />
}<br />
</pre></div>
Itoijala
https://wiki.vcmi.eu/index.php?title=Creature_Format&diff=675
Creature Format
2012-08-23T07:18:19Z
<p>Itoijala: added back doubleWide, made upgrades a vector</p>
<hr />
<div>This is only a proposal and not official information by the VCMI team. See thread http://forum.vcmi.eu/viewtopic.php?t=533.<br />
<br />
todo:<br />
* remove deprecated attributes once implemented in town config<br />
* better name for amm, something more self-documenting<br />
* exact syntax for abilities (longer term?)<br />
* creature experience<br />
<br />
long version (83 lines):<br />
<pre><br />
{<br />
"" : // name (for configs), should be camel case version of interface name. Examples: Pikeman, RoyalGriffin<br />
{<br />
// mandatory<br />
"name" :<br />
{<br />
"singular" : "",<br />
"plural" : ""<br />
},<br />
"level" : 0,<br />
"faction" : "", // config name of faction. Examples: Castle, Rampart<br />
"cost" : 0, // gold. If other, use optional longer syntax<br />
"fightValue" : 0,<br />
"aiValue" : 0,<br />
"growth" : 0,<br />
"hitPoints" : 0,<br />
"speed" : 0,<br />
"attack" : 0,<br />
"defence" : 0,<br />
"damage" : [0, 0], // damage min, max. If same use single integer<br />
"amm" : [0, 0], // adventure map amount. If same use single integer<br />
"graphics" :<br />
{<br />
"animation" : "" // name of def file<br />
},<br />
<br />
// optional<br />
"upgrades" : [], // config names of creatures that this creature can be upgraded to<br />
"doubleWide" : false,<br />
"cost" :<br />
{<br />
"Wood" : 0,<br />
"Mercury" : 0,<br />
"Ore" : 0,<br />
"Sulfur" : 0,<br />
"Crystal" : 0,<br />
"Gems" : 0,<br />
"Gold" : 0<br />
},<br />
"shots" : 0,<br />
"spellPoints" : 0,<br />
"abilities" :<br />
{<br />
},<br />
"graphics" :<br />
{<br />
"timeBetweenFidgets" : 1.00,<br />
"troopCountLocationOffset" : 0,<br />
"attackClimaxFrame" : 0,<br />
"animationTime" :<br />
{<br />
"walk" : 1.00,<br />
"attack" : 1.00,<br />
"flight" : 1.00<br />
},<br />
"backgrounds" :<br />
{<br />
"120" : "", // if empty, uses faction background<br />
"130" : "" // if empty, uses faction background<br />
},<br />
"missile" :<br />
{<br />
"animation" : "", // name of def file for missile<br />
"spin" : false,<br />
"offset" :<br />
{<br />
"upperX" : 0,<br />
"upperY" : 0,<br />
"middleX" : 0,<br />
"middleY" : 0,<br />
"lowerX" : 0,<br />
"lowerY" : 0<br />
},<br />
"missileFrameAngles" : []<br />
}<br />
},<br />
"sounds" : // names of sound files<br />
{<br />
"attack": "",<br />
"defend": "",<br />
"killed": "",<br />
"move": "",<br />
"shoot" : "",<br />
"wince": "",<br />
"moveStart" : "",<br />
"moveEnd" : ""<br />
},<br />
<br />
// deprecated, move to town config<br />
"hordeGrowth" : 0, // growth bonus from horde building<br />
"turretShooter" : false // if used in turret<br />
},<br />
// more creatures<br />
}<br />
</pre><br />
pikeman long (39 lines):<br />
<pre><br />
{<br />
"Pikeman" :<br />
{<br />
"name" :<br />
{<br />
"singular" : "Pikeman",<br />
"plural" : "Pikemen"<br />
},<br />
"level" : 1,<br />
"faction" : "Castle",<br />
"upgrades" : ["Halberdier"],<br />
"cost" : 60,<br />
"fightValue" : 100,<br />
"aiValue" : 80,<br />
"growth" : 14,<br />
"hitPoints" : 10,<br />
"speed" : 4,<br />
"attack" : 4,<br />
"defence" : 5,<br />
"damage" : [1, 3],<br />
"amm" : [20, 50],<br />
"abilities" :<br />
{<br />
"CHARGE_IMMUNITY" : {}<br />
},<br />
"graphics" :<br />
{<br />
"animation" : "CPKMAN.DEF",<br />
"animationTime" :<br />
{<br />
"walk" : 1.15<br />
}<br />
},<br />
"sound" :<br />
{<br />
"attack": "PIKEATTK.wav",<br />
"defend": "PIKEDFND.wav",<br />
"killed": "PIKEKILL.wav",<br />
"move": "PIKEMOVE.wav",<br />
"wince": "PIKEWNCE.wav"<br />
}<br />
}<br />
}<br />
</pre></div>
Itoijala
https://wiki.vcmi.eu/index.php?title=Creature_Format&diff=674
Creature Format
2012-08-22T17:53:02Z
<p>Itoijala: long version chosen, removed ext1/2 sounds, changed name syntax</p>
<hr />
<div>This is only a proposal and not official information by the VCMI team. See thread http://forum.vcmi.eu/viewtopic.php?t=533.<br />
<br />
todo:<br />
* remove deprecated attributes once implemented in town config<br />
* better name for amm, something more self-documenting<br />
* exact syntax for abilities (longer term?)<br />
* creature experience<br />
<br />
long version (83 lines):<br />
<pre><br />
{<br />
"" : // name (for configs), should be camel case version of interface name. Examples: Pikeman, RoyalGriffin<br />
{<br />
// mandatory<br />
"name" :<br />
{<br />
"singular" : "",<br />
"plural" : ""<br />
},<br />
"level" : 0,<br />
"faction" : "", // config name of faction. Examples: Castle, Rampart<br />
"cost" : 0, // gold. If other, use optional longer syntax<br />
"fightValue" : 0,<br />
"aiValue" : 0,<br />
"growth" : 0,<br />
"hitPoints" : 0,<br />
"speed" : 0,<br />
"attack" : 0,<br />
"defence" : 0,<br />
"damage" : [0, 0], // damage min, max. If same use single integer<br />
"amm" : [0, 0], // adventure map amount. If same use single integer<br />
"graphics" :<br />
{<br />
"animation" : "" // name of def file<br />
},<br />
<br />
// optional<br />
"upgrades" : "", // config name of creature that this creature can be upgraded to<br />
"cost" :<br />
{<br />
"Wood" : 0,<br />
"Mercury" : 0,<br />
"Ore" : 0,<br />
"Sulfur" : 0,<br />
"Crystal" : 0,<br />
"Gems" : 0,<br />
"Gold" : 0<br />
},<br />
"shots" : 0,<br />
"spellPoints" : 0,<br />
"abilities" :<br />
{<br />
},<br />
"graphics" :<br />
{<br />
"timeBetweenFidgets" : 1.00,<br />
"troopCountLocationOffset" : 0,<br />
"attackClimaxFrame" : 0,<br />
"animationTime" :<br />
{<br />
"walk" : 1.00,<br />
"attack" : 1.00,<br />
"flight" : 1.00<br />
},<br />
"backgrounds" :<br />
{<br />
"120" : "", // if empty, uses faction background<br />
"130" : "" // if empty, uses faction background<br />
},<br />
"missile" :<br />
{<br />
"animation" : "", // name of def file for missile<br />
"spin" : false,<br />
"offset" :<br />
{<br />
"upperX" : 0,<br />
"upperY" : 0,<br />
"middleX" : 0,<br />
"middleY" : 0,<br />
"lowerX" : 0,<br />
"lowerY" : 0<br />
},<br />
"missileFrameAngles" : []<br />
}<br />
},<br />
"sounds" : // names of sound files<br />
{<br />
"attack": "",<br />
"defend": "",<br />
"killed": "",<br />
"move": "",<br />
"shoot" : "",<br />
"wince": "",<br />
"moveStart" : "",<br />
"moveEnd" : ""<br />
},<br />
<br />
// deprecated, move to town config<br />
"hordeGrowth" : 0, // growth bonus from horde building<br />
"turretShooter" : false // if used in turret<br />
},<br />
// more creatures<br />
}<br />
</pre><br />
pikeman long (39 lines):<br />
<pre><br />
{<br />
"Pikeman" :<br />
{<br />
"name" :<br />
{<br />
"singular" : "Pikeman",<br />
"plural" : "Pikemen"<br />
},<br />
"level" : 1,<br />
"faction" : "Castle",<br />
"upgrades" : "Halberdier",<br />
"cost" : 60,<br />
"fightValue" : 100,<br />
"aiValue" : 80,<br />
"growth" : 14,<br />
"hitPoints" : 10,<br />
"speed" : 4,<br />
"attack" : 4,<br />
"defence" : 5,<br />
"damage" : [1, 3],<br />
"amm" : [20, 50],<br />
"abilities" :<br />
{<br />
"CHARGE_IMMUNITY" : {}<br />
},<br />
"graphics" :<br />
{<br />
"animation" : "CPKMAN.DEF",<br />
"animationTime" :<br />
{<br />
"walk" : 1.15<br />
}<br />
},<br />
"sound" :<br />
{<br />
"attack": "PIKEATTK.wav",<br />
"defend": "PIKEDFND.wav",<br />
"killed": "PIKEKILL.wav",<br />
"move": "PIKEMOVE.wav",<br />
"wince": "PIKEWNCE.wav"<br />
}<br />
}<br />
}<br />
</pre></div>
Itoijala
https://wiki.vcmi.eu/index.php?title=Creature_Format&diff=672
Creature Format
2012-08-20T16:08:51Z
<p>Itoijala: </p>
<hr />
<div>This is only a proposal and not official information by the VCMI team. See thread http://forum.vcmi.eu/viewtopic.php?t=533.<br />
<br />
todo:<br />
* remove deprecated attributes once implemented in town config<br />
* better name for amm, something more self-documenting<br />
* decide on long vs short format<br />
* exact syntax for abilities (longer term?)<br />
* creature experience<br />
<br />
long version (83 lines):<br />
<pre><br />
{<br />
"" : // name (for configs), should be camel case version of interface name. Examples: Pikeman, RoyalGriffin<br />
{<br />
// mandatory<br />
"names" : ["", ""], // interface names: singular, plural<br />
"level" : 0,<br />
"faction" : "", // config name of faction. Examples: Castle, Rampart<br />
"cost" : 0, // gold. If other, use optional longer syntax<br />
"fightValue" : 0,<br />
"aiValue" : 0,<br />
"growth" : 0,<br />
"hitPoints" : 0,<br />
"speed" : 0,<br />
"attack" : 0,<br />
"defence" : 0,<br />
"damage" : [0, 0], // damage min, max. If same use single integer<br />
"amm" : [0, 0], // adventure map amount. If same use single integer<br />
"graphics" :<br />
{<br />
"animation" : "" // name of def file<br />
},<br />
<br />
// optional<br />
"upgrades" : "", // config name of creature that this creature can be upgraded to<br />
"cost" :<br />
{<br />
"Wood" : 0,<br />
"Mercury" : 0,<br />
"Ore" : 0,<br />
"Sulfur" : 0,<br />
"Crystal" : 0,<br />
"Gems" : 0,<br />
"Gold" : 0<br />
},<br />
"doubleWide" : false, // if creature needs two hexes<br />
"shots" : 0,<br />
"spellPoints" : 0,<br />
"abilities" :<br />
{<br />
},<br />
"graphics" :<br />
{<br />
"timeBetweenFidgets" : 1.00,<br />
"troopCountLocationOffset" : 0,<br />
"attackClimaxFrame" : 0,<br />
"animationTime" :<br />
{<br />
"walk" : 1.00,<br />
"attack" : 1.00,<br />
"flight" : 1.00<br />
},<br />
"backgrounds" :<br />
{<br />
"120" : "", // if empty, uses faction background<br />
"130" : "" // if empty, uses faction background<br />
},<br />
"missile" :<br />
{<br />
"animation" : "", // name of def file for missile<br />
"spin" : false,<br />
"offset" :<br />
{<br />
"upperX" : 0,<br />
"upperY" : 0,<br />
"middleX" : 0,<br />
"middleY" : 0,<br />
"lowerX" : 0,<br />
"lowerY" : 0<br />
},<br />
"missileFrameAngles" : []<br />
}<br />
},<br />
"sounds" : // names of sound files<br />
{<br />
"attack": "",<br />
"defend": "",<br />
"killed": "",<br />
"move": "",<br />
"shoot" : "",<br />
"wince": "",<br />
"ext1" : "",<br />
"ext2" : "",<br />
"moveStart" : "",<br />
"moveEnd" : ""<br />
},<br />
<br />
// deprecated, move to town config<br />
"hordeGrowth" : 0, // growth bonus from horde building<br />
"turretShooter" : false // if used in turret<br />
},<br />
// more creatures<br />
}<br />
</pre><br />
pikeman long (39 lines):<br />
<pre><br />
{<br />
"Pikeman" :<br />
{<br />
"names" : ["Pikeman", "Pikemen"],<br />
"level" : 1,<br />
"faction" : "Castle",<br />
"upgrades" : "Halberdier",<br />
"cost" : 60,<br />
"fightValue" : 100,<br />
"aiValue" : 80,<br />
"growth" : 14,<br />
"hitPoints" : 10,<br />
"speed" : 4,<br />
"attack" : 4,<br />
"defence" : 5,<br />
"damage" : [1, 3],<br />
"amm" : [20, 50],<br />
"abilities" :<br />
{<br />
"CHARGE_IMMUNITY" : {}<br />
},<br />
"graphics" :<br />
{<br />
"animation" : "CPKMAN.DEF",<br />
"animationTime" :<br />
{<br />
"walk" : 1.15<br />
}<br />
},<br />
"sound" :<br />
{<br />
"attack": "PIKEATTK.wav",<br />
"defend": "PIKEDFND.wav",<br />
"killed": "PIKEKILL.wav",<br />
"move": "PIKEMOVE.wav",<br />
"wince": "PIKEWNCE.wav"<br />
}<br />
}<br />
}<br />
</pre><br />
<br />
short version (65 lines):<br />
<pre><br />
{<br />
"" :<br />
{<br />
// mandatory<br />
"names" : ["", ""],<br />
"level" : 0,<br />
"faction" : "",<br />
"cost" : 0,<br />
"fightValue" : 0,<br />
"aiValue" : 0,<br />
"growth" : 0,<br />
"hitPoints" : 0,<br />
"speed" : 0,<br />
"attack" : 0,<br />
"defence" : 0,<br />
"damage" : [0, 0],<br />
"amm" : [0, 0],<br />
"animation" : "",<br />
<br />
// optional<br />
"upgrades" : "",<br />
"cost" :<br />
{<br />
"Wood" : 0,<br />
"Mercury" : 0,<br />
"Ore" : 0,<br />
"Sulfur" : 0,<br />
"Crystal" : 0,<br />
"Gems" : 0,<br />
"Gold" : 0<br />
},<br />
"doubleWide" : false,<br />
"shots" : 0,<br />
"spellPoints" : 0,<br />
"abilities" :<br />
{<br />
},<br />
"timeBetweenFidgets" : 1.00,<br />
"troopCountLocationOffset" : 0,<br />
"attackClimaxFrame" : 0,<br />
"animationTimeWalk" : 1.00,<br />
"animationTimeAttack" : 1.00,<br />
"animationTimeFlight" : 1.00,<br />
"background120" : "",<br />
"background130" : "",<br />
"missileAnimation" : "",<br />
"missileSpin" : false,<br />
"missileOffsetUpperX" : 0,<br />
"missileOffsetUpperY" : 0,<br />
"missileOffsetMiddleX" : 0,<br />
"missileOffsetMiddleY" : 0,<br />
"missileOffsetLowerX" : 0,<br />
"missileOffsetLowerY" : 0,<br />
"missileFrameAngles" : [],<br />
"soundAttack": "",<br />
"soundDefend": "",<br />
"soundKilled": "",<br />
"soundMove": "",<br />
"soundShoot" : "",<br />
"soundWince": "",<br />
"soundExt1" : "",<br />
"soundExt2" : "",<br />
"soundMoveStart" : "",<br />
"soundMoveEnd" : "",<br />
<br />
// deprecated<br />
"hordeGrowth" : 0,<br />
"turretShooter" : false<br />
}<br />
}<br />
</pre><br />
pikeman short (30 lines):<br />
<pre><br />
{<br />
"Pikeman" :<br />
{<br />
"names" : ["Pikeman", "Pikemen"],<br />
"level" : 1,<br />
"faction" : "Castle",<br />
"upgrades" : "Halberdier",<br />
"cost" : 60,<br />
"fightValue" : 100,<br />
"aiValue" : 80,<br />
"growth" : 14,<br />
"hitPoints" : 10,<br />
"speed" : 4,<br />
"attack" : 4,<br />
"defence" : 5,<br />
"damage" : [1, 3],<br />
"amm" : [20, 50],<br />
"abilities" :<br />
{<br />
"CHARGE_IMMUNITY" : {}<br />
},<br />
"animation" : "CPKMAN.DEF",<br />
"animationTimeWalk" : 1.15,<br />
"soundAttack": "PIKEATTK.wav",<br />
"soundDefend": "PIKEDFND.wav",<br />
"soundKilled": "PIKEKILL.wav",<br />
"soundMove": "PIKEMOVE.wav",<br />
"soundWince": "PIKEWNCE.wav"<br />
}<br />
}<br />
</pre></div>
Itoijala
https://wiki.vcmi.eu/index.php?title=Creature_Format&diff=671
Creature Format
2012-08-20T16:06:41Z
<p>Itoijala: </p>
<hr />
<div>todo:<br />
* remove deprecated attributes once implemented in town config<br />
* better name for amm, something more self-documenting<br />
* decide on long vs short format<br />
* exact syntax for abilities (longer term?)<br />
* creature experience<br />
<br />
see thread: http://forum.vcmi.eu/viewtopic.php?t=533<br />
<br />
long version (83 lines):<br />
<pre><br />
{<br />
"" : // name (for configs), should be camel case version of interface name. Examples: Pikeman, RoyalGriffin<br />
{<br />
// mandatory<br />
"names" : ["", ""], // interface names: singular, plural<br />
"level" : 0,<br />
"faction" : "", // config name of faction. Examples: Castle, Rampart<br />
"cost" : 0, // gold. If other, use optional longer syntax<br />
"fightValue" : 0,<br />
"aiValue" : 0,<br />
"growth" : 0,<br />
"hitPoints" : 0,<br />
"speed" : 0,<br />
"attack" : 0,<br />
"defence" : 0,<br />
"damage" : [0, 0], // damage min, max. If same use single integer<br />
"amm" : [0, 0], // adventure map amount. If same use single integer<br />
"graphics" :<br />
{<br />
"animation" : "" // name of def file<br />
},<br />
<br />
// optional<br />
"upgrades" : "", // config name of creature that this creature can be upgraded to<br />
"cost" :<br />
{<br />
"Wood" : 0,<br />
"Mercury" : 0,<br />
"Ore" : 0,<br />
"Sulfur" : 0,<br />
"Crystal" : 0,<br />
"Gems" : 0,<br />
"Gold" : 0<br />
},<br />
"doubleWide" : false, // if creature needs two hexes<br />
"shots" : 0,<br />
"spellPoints" : 0,<br />
"abilities" :<br />
{<br />
},<br />
"graphics" :<br />
{<br />
"timeBetweenFidgets" : 1.00,<br />
"troopCountLocationOffset" : 0,<br />
"attackClimaxFrame" : 0,<br />
"animationTime" :<br />
{<br />
"walk" : 1.00,<br />
"attack" : 1.00,<br />
"flight" : 1.00<br />
},<br />
"backgrounds" :<br />
{<br />
"120" : "", // if empty, uses faction background<br />
"130" : "" // if empty, uses faction background<br />
},<br />
"missile" :<br />
{<br />
"animation" : "", // name of def file for missile<br />
"spin" : false,<br />
"offset" :<br />
{<br />
"upperX" : 0,<br />
"upperY" : 0,<br />
"middleX" : 0,<br />
"middleY" : 0,<br />
"lowerX" : 0,<br />
"lowerY" : 0<br />
},<br />
"missileFrameAngles" : []<br />
}<br />
},<br />
"sounds" : // names of sound files<br />
{<br />
"attack": "",<br />
"defend": "",<br />
"killed": "",<br />
"move": "",<br />
"shoot" : "",<br />
"wince": "",<br />
"ext1" : "",<br />
"ext2" : "",<br />
"moveStart" : "",<br />
"moveEnd" : ""<br />
},<br />
<br />
// deprecated, move to town config<br />
"hordeGrowth" : 0, // growth bonus from horde building<br />
"turretShooter" : false // if used in turret<br />
},<br />
// more creatures<br />
}<br />
</pre><br />
pikeman long (39 lines):<br />
<pre><br />
{<br />
"Pikeman" :<br />
{<br />
"names" : ["Pikeman", "Pikemen"],<br />
"level" : 1,<br />
"faction" : "Castle",<br />
"upgrades" : "Halberdier",<br />
"cost" : 60,<br />
"fightValue" : 100,<br />
"aiValue" : 80,<br />
"growth" : 14,<br />
"hitPoints" : 10,<br />
"speed" : 4,<br />
"attack" : 4,<br />
"defence" : 5,<br />
"damage" : [1, 3],<br />
"amm" : [20, 50],<br />
"abilities" :<br />
{<br />
"CHARGE_IMMUNITY" : {}<br />
},<br />
"graphics" :<br />
{<br />
"animation" : "CPKMAN.DEF",<br />
"animationTime" :<br />
{<br />
"walk" : 1.15<br />
}<br />
},<br />
"sound" :<br />
{<br />
"attack": "PIKEATTK.wav",<br />
"defend": "PIKEDFND.wav",<br />
"killed": "PIKEKILL.wav",<br />
"move": "PIKEMOVE.wav",<br />
"wince": "PIKEWNCE.wav"<br />
}<br />
}<br />
}<br />
</pre><br />
<br />
short version (65 lines):<br />
<pre><br />
{<br />
"" :<br />
{<br />
// mandatory<br />
"names" : ["", ""],<br />
"level" : 0,<br />
"faction" : "",<br />
"cost" : 0,<br />
"fightValue" : 0,<br />
"aiValue" : 0,<br />
"growth" : 0,<br />
"hitPoints" : 0,<br />
"speed" : 0,<br />
"attack" : 0,<br />
"defence" : 0,<br />
"damage" : [0, 0],<br />
"amm" : [0, 0],<br />
"animation" : "",<br />
<br />
// optional<br />
"upgrades" : "",<br />
"cost" :<br />
{<br />
"Wood" : 0,<br />
"Mercury" : 0,<br />
"Ore" : 0,<br />
"Sulfur" : 0,<br />
"Crystal" : 0,<br />
"Gems" : 0,<br />
"Gold" : 0<br />
},<br />
"doubleWide" : false,<br />
"shots" : 0,<br />
"spellPoints" : 0,<br />
"abilities" :<br />
{<br />
},<br />
"timeBetweenFidgets" : 1.00,<br />
"troopCountLocationOffset" : 0,<br />
"attackClimaxFrame" : 0,<br />
"animationTimeWalk" : 1.00,<br />
"animationTimeAttack" : 1.00,<br />
"animationTimeFlight" : 1.00,<br />
"background120" : "",<br />
"background130" : "",<br />
"missileAnimation" : "",<br />
"missileSpin" : false,<br />
"missileOffsetUpperX" : 0,<br />
"missileOffsetUpperY" : 0,<br />
"missileOffsetMiddleX" : 0,<br />
"missileOffsetMiddleY" : 0,<br />
"missileOffsetLowerX" : 0,<br />
"missileOffsetLowerY" : 0,<br />
"missileFrameAngles" : [],<br />
"soundAttack": "",<br />
"soundDefend": "",<br />
"soundKilled": "",<br />
"soundMove": "",<br />
"soundShoot" : "",<br />
"soundWince": "",<br />
"soundExt1" : "",<br />
"soundExt2" : "",<br />
"soundMoveStart" : "",<br />
"soundMoveEnd" : "",<br />
<br />
// deprecated<br />
"hordeGrowth" : 0,<br />
"turretShooter" : false<br />
}<br />
}<br />
</pre><br />
pikeman short (30 lines):<br />
<pre><br />
{<br />
"Pikeman" :<br />
{<br />
"names" : ["Pikeman", "Pikemen"],<br />
"level" : 1,<br />
"faction" : "Castle",<br />
"upgrades" : "Halberdier",<br />
"cost" : 60,<br />
"fightValue" : 100,<br />
"aiValue" : 80,<br />
"growth" : 14,<br />
"hitPoints" : 10,<br />
"speed" : 4,<br />
"attack" : 4,<br />
"defence" : 5,<br />
"damage" : [1, 3],<br />
"amm" : [20, 50],<br />
"abilities" :<br />
{<br />
"CHARGE_IMMUNITY" : {}<br />
},<br />
"animation" : "CPKMAN.DEF",<br />
"animationTimeWalk" : 1.15,<br />
"soundAttack": "PIKEATTK.wav",<br />
"soundDefend": "PIKEDFND.wav",<br />
"soundKilled": "PIKEKILL.wav",<br />
"soundMove": "PIKEMOVE.wav",<br />
"soundWince": "PIKEWNCE.wav"<br />
}<br />
}<br />
</pre></div>
Itoijala
https://wiki.vcmi.eu/index.php?title=Creature_Format&diff=670
Creature Format
2012-08-20T16:05:46Z
<p>Itoijala: Created page with "todo: * remove deprecated attributes once implemented in town config * better name for amm, something more self-documenting * decide on long vs short format * exact syntax for ab..."</p>
<hr />
<div>todo:<br />
* remove deprecated attributes once implemented in town config<br />
* better name for amm, something more self-documenting<br />
* decide on long vs short format<br />
* exact syntax for abilities (longer term?)<br />
* creature experience<br />
<br />
see thread: http://forum.vcmi.eu/viewtopic.php?t=533<br />
<br />
long version (86 lines):<br />
<pre><br />
{<br />
"" : // name (for configs), should be camel case version of interface name. Examples: Pikeman, RoyalGriffin<br />
{<br />
// mandatory<br />
"names" : ["", ""], // interface names: singular, plural<br />
"level" : 0,<br />
"faction" : "", // config name of faction. Examples: Castle, Rampart<br />
"cost" : 0, // gold. If other, use optional longer syntax<br />
"fightValue" : 0,<br />
"aiValue" : 0,<br />
"growth" : 0,<br />
"hitPoints" : 0,<br />
"speed" : 0,<br />
"attack" : 0,<br />
"defence" : 0,<br />
"damage" : [0, 0], // damage min, max. If same use single integer<br />
"amm" : [0, 0], // adventure map amount. If same use single integer<br />
"graphics" :<br />
{<br />
"animation" : "" // name of def file<br />
},<br />
<br />
// optional<br />
"upgrades" : "", // config name of creature that this creature can be upgraded to<br />
"cost" :<br />
{<br />
"Wood" : 0,<br />
"Mercury" : 0,<br />
"Ore" : 0,<br />
"Sulfur" : 0,<br />
"Crystal" : 0,<br />
"Gems" : 0,<br />
"Gold" : 0<br />
},<br />
"doubleWide" : false, // if creature needs two hexes<br />
"shots" : 0,<br />
"spellPoints" : 0,<br />
"abilities" :<br />
{<br />
},<br />
"graphics" :<br />
{<br />
"timeBetweenFidgets" : 1.00,<br />
"troopCountLocationOffset" : 0,<br />
"attackClimaxFrame" : 0,<br />
"animationTime" :<br />
{<br />
"walk" : 1.00,<br />
"attack" : 1.00,<br />
"flight" : 1.00<br />
},<br />
"backgrounds" :<br />
{<br />
"120" : "", // if empty, uses faction background<br />
"130" : "" // if empty, uses faction background<br />
},<br />
"missile" :<br />
{<br />
"animation" : "", // name of def file for missile<br />
"spin" : false,<br />
"offset" :<br />
{<br />
"upperX" : 0,<br />
"upperY" : 0,<br />
"middleX" : 0,<br />
"middleY" : 0,<br />
"lowerX" : 0,<br />
"lowerY" : 0<br />
},<br />
"missileFrameAngles" : []<br />
}<br />
},<br />
"sounds" : // names of sound files<br />
{<br />
"attack": "",<br />
"defend": "",<br />
"killed": "",<br />
"move": "",<br />
"shoot" : "",<br />
"wince": "",<br />
"ext1" : "",<br />
"ext2" : "",<br />
"moveStart" : "",<br />
"moveEnd" : ""<br />
},<br />
<br />
// deprecated, move to town config<br />
"hordeGrowth" : 0, // growth bonus from horde building<br />
"turretShooter" : false // if used in turret<br />
},<br />
// more creatures<br />
}<br />
</pre><br />
pikeman long (39 lines):<br />
<pre><br />
{<br />
"Pikeman" :<br />
{<br />
"names" : ["Pikeman", "Pikemen"],<br />
"level" : 1,<br />
"faction" : "Castle",<br />
"upgrades" : "Halberdier",<br />
"cost" : 60,<br />
"fightValue" : 100,<br />
"aiValue" : 80,<br />
"growth" : 14,<br />
"hitPoints" : 10,<br />
"speed" : 4,<br />
"attack" : 4,<br />
"defence" : 5,<br />
"damage" : [1, 3],<br />
"amm" : [20, 50],<br />
"abilities" :<br />
{<br />
"CHARGE_IMMUNITY" : {}<br />
},<br />
"graphics" :<br />
{<br />
"animation" : "CPKMAN.DEF",<br />
"animationTime" :<br />
{<br />
"walk" : 1.15<br />
}<br />
},<br />
"sound" :<br />
{<br />
"attack": "PIKEATTK.wav",<br />
"defend": "PIKEDFND.wav",<br />
"killed": "PIKEKILL.wav",<br />
"move": "PIKEMOVE.wav",<br />
"wince": "PIKEWNCE.wav"<br />
}<br />
}<br />
}<br />
</pre><br />
<br />
short version (65 lines):<br />
<pre><br />
{<br />
"" :<br />
{<br />
// mandatory<br />
"names" : ["", ""],<br />
"level" : 0,<br />
"faction" : "",<br />
"cost" : 0,<br />
"fightValue" : 0,<br />
"aiValue" : 0,<br />
"growth" : 0,<br />
"hitPoints" : 0,<br />
"speed" : 0,<br />
"attack" : 0,<br />
"defence" : 0,<br />
"damage" : [0, 0],<br />
"amm" : [0, 0],<br />
"animation" : "",<br />
<br />
// optional<br />
"upgrades" : "",<br />
"cost" :<br />
{<br />
"Wood" : 0,<br />
"Mercury" : 0,<br />
"Ore" : 0,<br />
"Sulfur" : 0,<br />
"Crystal" : 0,<br />
"Gems" : 0,<br />
"Gold" : 0<br />
},<br />
"doubleWide" : false,<br />
"shots" : 0,<br />
"spellPoints" : 0,<br />
"abilities" :<br />
{<br />
},<br />
"timeBetweenFidgets" : 1.00,<br />
"troopCountLocationOffset" : 0,<br />
"attackClimaxFrame" : 0,<br />
"animationTimeWalk" : 1.00,<br />
"animationTimeAttack" : 1.00,<br />
"animationTimeFlight" : 1.00,<br />
"background120" : "",<br />
"background130" : "",<br />
"missileAnimation" : "",<br />
"missileSpin" : false,<br />
"missileOffsetUpperX" : 0,<br />
"missileOffsetUpperY" : 0,<br />
"missileOffsetMiddleX" : 0,<br />
"missileOffsetMiddleY" : 0,<br />
"missileOffsetLowerX" : 0,<br />
"missileOffsetLowerY" : 0,<br />
"missileFrameAngles" : [],<br />
"soundAttack": "",<br />
"soundDefend": "",<br />
"soundKilled": "",<br />
"soundMove": "",<br />
"soundShoot" : "",<br />
"soundWince": "",<br />
"soundExt1" : "",<br />
"soundExt2" : "",<br />
"soundMoveStart" : "",<br />
"soundMoveEnd" : "",<br />
<br />
// deprecated<br />
"hordeGrowth" : 0,<br />
"turretShooter" : false<br />
}<br />
}<br />
</pre><br />
pikeman short (30 lines):<br />
<pre><br />
{<br />
"Pikeman" :<br />
{<br />
"names" : ["Pikeman", "Pikemen"],<br />
"level" : 1,<br />
"faction" : "Castle",<br />
"upgrades" : "Halberdier",<br />
"cost" : 60,<br />
"fightValue" : 100,<br />
"aiValue" : 80,<br />
"growth" : 14,<br />
"hitPoints" : 10,<br />
"speed" : 4,<br />
"attack" : 4,<br />
"defence" : 5,<br />
"damage" : [1, 3],<br />
"amm" : [20, 50],<br />
"abilities" :<br />
{<br />
"CHARGE_IMMUNITY" : {}<br />
},<br />
"animation" : "CPKMAN.DEF",<br />
"animationTimeWalk" : 1.15,<br />
"soundAttack": "PIKEATTK.wav",<br />
"soundDefend": "PIKEDFND.wav",<br />
"soundKilled": "PIKEKILL.wav",<br />
"soundMove": "PIKEMOVE.wav",<br />
"soundWince": "PIKEWNCE.wav"<br />
}<br />
}<br />
</pre></div>
Itoijala