|
|
(27 intermediate revisions by 7 users not shown) |
Line 1: |
Line 1: |
− | This is only a proposal and not official information by the VCMI team. See thread http://forum.vcmi.eu/viewtopic.php?t=533.
| + | {{Template:MovedToWebpage|https://vcmi.eu/modders/Entities_Format/Creature_Format/}} |
− | | |
− | todo:
| |
− | * remove deprecated attributes once implemented in town config
| |
− | * better name for amm, something more self-documenting
| |
− | * creature experience
| |
− | | |
− | Creature abilities use [[Bonus Format]].
| |
− | | |
− | long version (83 lines):
| |
− | <pre>
| |
− | {
| |
− | "" : // name (for configs), should be camel case version of interface name. Examples: Pikeman, RoyalGriffin
| |
− | {
| |
− | // mandatory
| |
− | "name" :
| |
− | {
| |
− | "singular" : "",
| |
− | "plural" : ""
| |
− | },
| |
− | "level" : 0,
| |
− | "faction" : "", // config name of faction. Examples: Castle, Rampart
| |
− | "cost" : // cost, zero values can be omitted
| |
− | {
| |
− | "wood" : 0,
| |
− | "mercury" : 0,
| |
− | "ore" : 0,
| |
− | "sulfur" : 0,
| |
− | "crystal" : 0,
| |
− | "gems" : 0,
| |
− | "gold" : 0
| |
− | },
| |
− | "fightValue" : 0,
| |
− | "aiValue" : 0,
| |
− | "growth" : 0,
| |
− | "hitPoints" : 0,
| |
− | "speed" : 0,
| |
− | "attack" : 0,
| |
− | "defence" : 0,
| |
− | "damage" : [0, 0], // damage min, max. If same use single integer
| |
− | "advMapAmount" : [0, 0], // adventure map amount. If same use single integer
| |
− | "graphics" :
| |
− | {
| |
− | "animation" : "" // name of def file
| |
− | },
| |
− | | |
− | // optional
| |
− | "upgrades" : [], // config names of creatures that this creature can be upgraded to
| |
− | "doubleWide" : false,
| |
− | "shots" : 0,
| |
− | "spellPoints" : 0,
| |
− | "abilities" :
| |
− | {
| |
− | },
| |
− | "graphics" :
| |
− | {
| |
− | "timeBetweenFidgets" : 1.00,
| |
− | "troopCountLocationOffset" : 0,
| |
− | "attackClimaxFrame" : 0,
| |
− | "animationTime" :
| |
− | {
| |
− | "walk" : 1.00,
| |
− | "attack" : 1.00,
| |
− | "flight" : 1.00
| |
− | },
| |
− | "background" :
| |
− | {
| |
− | "120" : "", // if empty, uses faction background
| |
− | "130" : "" // if empty, uses faction background
| |
− | },
| |
− | "missile" :
| |
− | {
| |
− | "animation" : "", // name of def file for missile
| |
− | "spinning" : false,
| |
− | "offset" :
| |
− | {
| |
− | "upperX" : 0,
| |
− | "upperY" : 0,
| |
− | "middleX" : 0,
| |
− | "middleY" : 0,
| |
− | "lowerX" : 0,
| |
− | "lowerY" : 0
| |
− | },
| |
− | "frameAngles" : []
| |
− | }
| |
− | },
| |
− | "sound" : // names of sound files
| |
− | {
| |
− | "attack": "",
| |
− | "defend": "",
| |
− | "killed": "",
| |
− | "move": "",
| |
− | "shoot" : "",
| |
− | "wince": "",
| |
− | "moveStart" : "",
| |
− | "moveEnd" : ""
| |
− | },
| |
− | | |
− | // deprecated, move to town config
| |
− | "hordeGrowth" : 0, // growth bonus from horde building
| |
− | "turretShooter" : false // if used in turret
| |
− | },
| |
− | // more creatures
| |
− | }
| |
− | </pre>
| |
− | pikeman long (39 lines):
| |
− | <pre>
| |
− | {
| |
− | "Pikeman" :
| |
− | {
| |
− | "name" :
| |
− | {
| |
− | "singular" : "Pikeman",
| |
− | "plural" : "Pikemen"
| |
− | },
| |
− | "level" : 1,
| |
− | "faction" : "Castle",
| |
− | "upgrades" : ["Halberdier"],
| |
− | "cost" : { "gold" : 60 },
| |
− | "fightValue" : 100,
| |
− | "aiValue" : 80,
| |
− | "growth" : 14,
| |
− | "hitPoints" : 10,
| |
− | "speed" : 4,
| |
− | "attack" : 4,
| |
− | "defence" : 5,
| |
− | "damage" : [1, 3],
| |
− | "advMapAmount" : [20, 50],
| |
− | "abilities" :
| |
− | {
| |
− | "CHARGE_IMMUNITY" : {}
| |
− | },
| |
− | "graphics" :
| |
− | {
| |
− | "animation" : "CPKMAN.DEF",
| |
− | "animationTime" :
| |
− | {
| |
− | "walk" : 1.15
| |
− | }
| |
− | },
| |
− | "sound" :
| |
− | {
| |
− | "attack": "PIKEATTK.wav",
| |
− | "defend": "PIKEDFND.wav",
| |
− | "killed": "PIKEKILL.wav",
| |
− | "move": "PIKEMOVE.wav",
| |
− | "wince": "PIKEWNCE.wav"
| |
− | }
| |
− | }
| |
− | }
| |
− | </pre>
| |