Difference between revisions of "Object instance format"

From VCMI Project Wiki
Jump to: navigation, search
(Stack instance format)
(Stack instance format)
Line 16: Line 16:
 
"creID" : "skeleton",
 
"creID" : "skeleton",
 
}
 
}
 +
</syntaxhighlight>
 +
 +
== Army format ==
 +
<syntaxhighlight lang="javascript">
 +
[
 +
  {< Stack instance format>},
 +
  {}
 +
  //...
 +
]
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 13:08, 4 July 2015

Base formats

Owner format

All ownable objects

{
	//mandatory
	"owner": "red"
}

Stack instance format

{
	"creCount" : 1,
	"creID" : "skeleton",
}

Army format

[
  {< Stack instance format>}, 
  {}
  //...
]

OH3 objects

Abandoned mine

[Todo]

Artifact

[Todo]

Creature generator

[Todo]

Garrison

[Todo]

Grail

[Todo]

Hero

[Todo]

Event

[Todo]

Mine

[Todo]

Monster

  • since 1.0
  • editor support [Done]
  • engine support [Todo]
{
	//mandatory
	"character" : 2,

	//required if randomCount is false
	"count" : 19,
	
	//optional, default false
	"noGrowing" : true

	//optional, default false
	"neverFlees" : false,

	//optional, default false
	"randomCount" : false,

	//optional, artifact id
	"rewardArtifact" : "",

	//optional,
	"rewardMessage" : "",

	//all fields optional
	"rewardResources" : {
	
		"crystal" : 0,
		"gems" : 0,
		"gold" : 0,
		"mercury" : 0,
		"mithril" : 0,
		"ore" : 0,
		"sulfur" : 0,
		"wood" : 0
	}
}

Ocean bottle

[Todo]

Pandoras box

[Todo]

Quest guard

[Todo]

Random dwelling

[Todo]

Resource

[Todo]

Scholar

[Todo]

Seer hut

[Todo]

Shipyard

[Todo]

Shrine of magic

[Todo]

Spell scroll

[Todo]

Town

[Todo]

Witch hut

[Todo]