Difference between revisions of "Object instance format"

From VCMI Project Wiki
Jump to: navigation, search
(Seer hut)
(Hero)
 
(118 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
Part of [[Map format]]
 +
 
= Base formats =  
 
= Base formats =  
 
== Owner format ==
 
== Owner format ==
All ownable objects
+
* editor {{done}}
 +
* engine {{done}}
 +
 
 +
All flaggable objects
 +
 
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
Line 11: Line 17:
  
 
== Stack instance format ==
 
== Stack instance format ==
 +
* editor {{done}}
 +
* engine {{done}}
 +
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
{
 
{
"creCount" : 1,
+
"amount" : 1,  
"creID" : "skeleton",
+
"type" : "skeleton",
 +
"level": 1, //optional, for random objects
 +
"upgraded": true  //optional, for random objects
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== Army format ==
 
== Army format ==
 +
* editor {{done}}
 +
* engine {{done}}
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
[
 
[
Line 28: Line 41:
  
 
== Quest format ==
 
== Quest format ==
 +
* editor {{done}}
 +
* engine {{done}}
 +
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
{
 
{
"army" : [
+
"artifacts" : [],
],
+
"completedText" : "",
"artifacts" : [
+
"creatures" : [], //army format
],
+
"firstVisitText" : "",
"completedText" : "",
+
"hero" : "",
"firstVisitText" : "",
+
"heroLevel" : -1,
"heroID" : "",
+
"killTarget" : "monster_666",
"heroLevel" : -1,
+
"missionType" : "KillCreature",//None, Level, PrimaryStat, KillHero, KillCreature, Artifact, Army, Resources, Hero, Player, Custom
"killTarget" : {
+
"nextVisitText" : "",
"l" : 0,
+
"player" : "",
"x" : 17,
+
"primarySkills" : {
"y" : 4,
+
"attack" : 10,
"subType" : "",
+
"defence" : 10,
"type" : "monster"
+
//"knowledge" : -1,
},
+
//"spellpower" : -1
"missionType" : "KillCreature",
+
},
"nextVisitText" : "",
+
"resources" : {
"playerID" : "",
+
"crystal" : 0,
"primarySkills" : {
+
"gems" : 0,
"attack" : -1,
+
"gold" : 0,
"defence" : -1,
+
"mercury" : 0,
"knowledge" : -1,
+
"mithril" : 0,
"spellpower" : -1
+
"ore" : 0,
},
+
"sulfur" : 0,
"resources" : {
+
"wood" : 0
"crystal" : 0,
+
},
"gems" : 0,
+
"timeLimit" : 5,
"gold" : 0,
+
"custom_x" :{<Quest format v2>}
"mercury" : 0,
+
}
"mithril" : 0,
+
</syntaxhighlight>
"ore" : 0,
+
 
"sulfur" : 0,
+
== Quest format 2 ==
"wood" : 0
+
''Proposed extension''
},
+
 
"timeLimit" : -1
+
Logical condition based.
 +
 
 +
* editor {{todo}}
 +
* engine {{todo}}
 +
<syntaxhighlight lang="javascript">
 +
{
 +
//TODO:
 +
}
 +
</syntaxhighlight>
 +
 
 +
== Reward format ==
 +
''Proposed extension''
 +
 
 +
* editor {{done}}
 +
* engine {{todo}}
 +
** seer hut case {{done}}
 +
 
 +
identifier = [scope ":"] type ["." subtype]
 +
 
 +
Possible types
 +
* artifact
 +
* creature
 +
* resource
 +
* primarySkill
 +
* secondarySkill
 +
* spell
 +
* luck
 +
* morale
 +
* mana
 +
* movement
 +
 
 +
 
 +
<syntaxhighlight lang="javascript">
 +
{
 +
"resource.gold" : 1000,
 +
"morale" : -1,
 +
"wog:creature.supremeArchangel" : 9999
 +
//...
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 71: Line 124:
  
 
== Abandoned mine  ==
 
== Abandoned mine  ==
* engine {{todo}}
 
 
* editor {{done}}
 
* editor {{done}}
 +
* engine {{done}}
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
Line 88: Line 141:
  
 
== Artifact ==
 
== Artifact ==
{{todo}}
+
* editor {{done}}
 
+
* engine {{done}}
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
Line 102: Line 155:
  
 
== Garrison ==
 
== Garrison ==
{{todo}}
+
* editor {{done}}
 +
* engine {{done}}
 +
 
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
{
 
{
"garrison" : [], //army format
+
"army" : [], //army format
 
"owner" : "",
 
"owner" : "",
 
"removableUnits" : true
 
"removableUnits" : true
Line 112: Line 167:
  
 
== Grail ==
 
== Grail ==
 +
* engine {{done}}
 
* editor {{done}}
 
* editor {{done}}
* engine {{todo}}
+
 
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
{
 
{
Line 121: Line 177:
  
 
== Hero ==
 
== Hero ==
{{todo}}
+
* also prison and random hero
 +
 
 +
* editor {{done}}
 +
* engine {{done}}
  
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
{
 
{
"army" : <Army format>
+
"army" : <Army format>
,
+
,
"artifacts" : {
+
"artifacts" : {
"backpack" : [
+
"backpack" : [
],
+
],
"feet" : "",
+
"feet" : "",
"head" : "",
+
"head" : "",
"leftHand" : "",
+
"leftHand" : "",
"leftRing" : "",
+
"leftRing" : "",
"mach1" : "",
+
"mach1" : "",
"mach2" : "",
+
"mach2" : "",
"mach3" : "",
+
"mach3" : "",
"mach4" : "",
+
"mach4" : "",
"misc1" : "",
+
"misc1" : "",
"misc2" : "",
+
"misc2" : "",
"misc3" : "",
+
"misc3" : "",
"misc4" : "",
+
"misc4" : "",
"misc5" : "",
+
"misc5" : "",
"neck" : "",
+
"neck" : "",
"rightHand" : "",
+
"rightHand" : "",
"rightRing" : "",
+
"rightRing" : "",
"shoulders" : "",
+
"shoulders" : "",
"spellbook" : "",
+
"spellbook" : "",
"torso" : ""
+
"torso" : ""
},
+
},
"biography" : "",
+
"biography" : "",
"experience" : 0,
+
"experience" : 0,
"id" : "galthran",
+
"name" : "",
+
//any type for prison, must match object subtype for hero, not used for random hero
 +
"type" : "galthran",
 +
"name" : "My hero",
  
//optional default -1
+
//optional default - patrol disabled. 0 - stand still, > 0 - patrol radius it tiles
"patrolRadius" : -1,
+
"patrolRadius" : 5,
 
 
//optionale hero id
+
//optional, icon index (from "Portraits[Large|Small].json" ) or another hero id, default from "type"
"portrait" : "",
+
"portrait" : "izra",
 +
 
 +
//TODO: custom portaits
 +
 +
//optional default inherited from configuration
 +
"primarySkills" : {
 +
"attack" : 0,
 +
"defence" : 2,
 +
"knowledge" : 0,
 +
"spellpower" : 3
 +
},
 
 
//optional default -1
+
"secondarySkills" : {
"primarySkills" : {
+
"leadership" : "basic"//, "advanced", "expert"
"attack" : -1,
+
//...
"defence" : -1,
+
},
"knowledge" : -1,
+
 
"spellpower" : -1
+
//optional, default if not set
},
+
"female" : true,//false
"secondarySkills" : {
+
"spellBook" : [
"leadership" : 3
+
"fortune"
//...
+
//...
},
+
],
//optional, default if not set, female, male
+
"tightFormation" : false
"sex" : "",
 
"spellBook" : [
 
"fortune"
 
//...
 
],
 
"tightFormation" : false
 
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
== Hero placeholder ==
 +
{{todo}}
  
 
== Event ==
 
== Event ==
{{todo}}
+
* editor {{done}}
 +
* engine {{done}}
 +
 
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
+
{
"aIActivable" : false,
+
"aIActivable" : false,
"artifacts" : [
+
"artifacts" : [
"swordOfHellfire"
+
"swordOfHellfire"
],
+
],
"availableFor" : [
+
"availableFor" : [
"red",
+
"red",
"blue",
+
"blue",
"tan",
+
"tan",
"green",
+
"green",
"orange",
+
"orange",
"purple",
+
"purple",
"teal",
+
"teal",
"pink"
+
"pink"
],
+
],
"creatures" : [
+
"creatures" : [
{
+
{
"creCount" : 1,
+
"amount" : 1,
"creID" : "phoenix",
+
"&type" : "phoenix"
"randomCount" : false
+
}
}
+
],
],
+
"experience" : 1,
"experience" : 1,
+
"guardMessage" : "...",
"guardMessage" : "...",
+
"guards" : [],//army format
"guards" : [],//army format
+
"humanActivable" : true,
"humanActivable" : true,
+
"luck" : -1,
"luck" : -1,
+
"mana" : -1,
"mana" : -1,
+
"morale" : -1,
"morale" : -1,
+
"primarySkills" : {
"primarySkills" : {
+
"attack" : 1,
"attack" : 1,
+
"defence" : 1,
"defence" : 1,
+
"knowledge" : 1,
"knowledge" : 1,
+
"spellpower" : 1
"spellpower" : 1
+
},
},
+
"removeAfterVisit" : true,
"removeAfterVisit" : true,
+
"resources" : {
"resources" : {
+
"crystal" : -1,
"crystal" : -1,
+
"gems" : -1,
"gems" : -1,
+
"gold" : -1,
"gold" : -1,
+
"mercury" : -1,
"mercury" : -1,
+
"mithril" : 0,
"mithril" : 0,
+
"ore" : -1,
"ore" : -1,
+
"sulfur" : -1,
"sulfur" : -1,
+
"wood" : -1
"wood" : -1
+
},
},
+
"secondarySkills" : {
"secondarySkills" : {
+
"fireMagic" : 1
"fireMagic" : 1
+
},
},
+
"spells" : [
"spells" : [
+
"protectFire"
"protectFire"
+
],
]
+
"reward_x" : {}//reward format
  
 
}
 
}
Line 244: Line 314:
 
== Lighthouse ==
 
== Lighthouse ==
 
See owner format
 
See owner format
 +
 +
* editor {{done}}
 +
* engine {{done}}
  
 
== Mine==
 
== Mine==
See owner format
+
 
 +
* editor {{done}}
 +
* engine {{done}}
 +
 
 +
<syntaxhighlight lang="javascript">
 +
{
 +
"army" : [], //army format
 +
"owner" : ""
 +
}
 +
</syntaxhighlight>
  
 
== Monster ==
 
== Monster ==
* since 1.0
+
* editor {{done}}
* editor support {{done}}
+
* engine {{done}}
* engine support {{todo}}
 
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
{
 
{
 
//mandatory
 
//mandatory
"character" : 2,
+
"character" : "compliant",// friendly, aggressive, hostile, savage
  
//required if randomCount is false
+
//default random
"count" : 19,
+
"amount" : 19,
 
 
 
//optional, default false
 
//optional, default false
Line 266: Line 347:
 
//optional, default false
 
//optional, default false
 
"neverFlees" : false,
 
"neverFlees" : false,
 
//optional, default false
 
"randomCount" : false,
 
  
 
//optional, artifact id
 
//optional, artifact id
Line 287: Line 365:
 
"sulfur" : 0,
 
"sulfur" : 0,
 
"wood" : 0
 
"wood" : 0
}
+
},
 +
"reward_x" : {}//reward format
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== Ocean bottle ==
+
== Sign/Ocean bottle ==
  
 
* editor {{done}}
 
* editor {{done}}
* engine {{todo}}
+
* engine {{done}}
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
Line 303: Line 382:
  
 
== Pandoras box ==
 
== Pandoras box ==
{{todo}}
+
* editor {{done}}
 +
* engine {{done}}
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
{
 
 
{
 
{
 
"artifacts" : [
 
"artifacts" : [
 
"powerOfTheDragonFather"
 
"powerOfTheDragonFather"
 
],
 
],
"creatures" : [
+
"creatures" : [], //army format
{
 
"creCount" : 99,
 
"creID" : "angel"
 
},
 
{
 
"creCount" : 1,
 
"creID" : "archangel"
 
}
 
],
 
 
"experience" : 1000000,
 
"experience" : 1000000,
 
"guardMessage" : "Prepare to fight...",
 
"guardMessage" : "Prepare to fight...",
Line 344: Line 414:
 
},
 
},
 
"secondarySkills" : {
 
"secondarySkills" : {
"logistics" : 1
+
"logistics" : "basic"//, "advanced", "expert"
 
},
 
},
 
"spells" : [
 
"spells" : [
 
"townPortal"
 
"townPortal"
]
+
],
 +
"reward_x" : {}//reward format
  
 
}
 
}
Line 354: Line 425:
  
 
== Quest guard ==
 
== Quest guard ==
{{todo}}
+
* editor {{done}}
 +
* engine {{done}}
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
Line 364: Line 436:
 
== Random dwelling ==
 
== Random dwelling ==
 
* editor {{done}}
 
* editor {{done}}
* engine {{todo}}
+
* engine {{done}}
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
{
 
{
"allowedFactions" : [
+
"allowedFactions" :{<logical id condition>},
"castle",
+
"maxLevel" : 7,
"conflux",
+
"minLevel" : 1,
"dungeon",
+
"sameAsTown" : "town_42"
"fortress",
 
"inferno",
 
"necropolis",
 
"neutral",
 
"rampart",
 
"stronghold",
 
"tower"
 
],
 
"linked" : true,
 
"maxLevel" : 6,
 
"minLevel" : 0,
 
"sameAsTown" : {
 
"l" : 1,
 
"x" : 43,
 
"y" : 14,
 
"subType" : "",
 
"type" : "town"
 
}
 
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== Resource ==
 
== Resource ==
{{todo}}
+
* editor {{done}}
 +
* engine {{done}}
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
Line 405: Line 460:
 
== Scholar ==
 
== Scholar ==
 
* editor {{done}}
 
* editor {{done}}
* engine {{todo}}
+
* engine {{done}}
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
{
 
{
"bonusId" : "wisdom",
+
"rewardPrimSkill" : "",
"bonusType" : "skill",
+
"rewardSkill" : "wisdom",
 +
"rewardSpell" : "",
 +
"reward_x" : {}//reward format
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== Seer hut ==
 
== Seer hut ==
* editor {{todo}}
+
* editor {{done}}
* engine {{todo}}
+
* engine {{done}}
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
{
 
{
 
"quest" : {}, //quest format
 
"quest" : {}, //quest format
"rewardID" : "",
+
"reward" : {}//reward format
"rewardType" : "experience",
 
"rewardValue" : 9999
 
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 429: Line 484:
 
== Shipyard ==
 
== Shipyard ==
 
See owner format
 
See owner format
 +
 +
* editor {{done}}
 +
* engine {{done}}
  
 
== Shrine of magic ==
 
== Shrine of magic ==
* engine support {{todo}}
+
* editor {{done}}
* editor support {{done}}
+
* engine {{done}}
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
{
 
{
 
//optional, random spell if not set
 
//optional, random spell if not set
"spellId" : ""
+
"spell" : ""
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== Spell scroll ==
 
== Spell scroll ==
{{todo}}
+
* engine {{done}}
 +
* editor {{done}}
 +
 
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
"guardMessage" : "",
 
"guardMessage" : "",
 
"guards" : [], //army format
 
"guards" : [], //army format
"spellID" : "magicArrow"
+
"spell" : "magicArrow"
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== Town ==
 
== Town ==
{{todo}}
+
* engine {{done}}
 +
* editor {{done}}
 +
 
 +
* castle events {{todo}}
 +
 
 +
<syntaxhighlight lang="javascript">
 +
"army" : [], //army format
 +
"tightFormation" : false
 +
 
 +
"name" : "",
 +
"buildings" : {<Logical Id Condition>}
 +
"spells" : {<Logical Id Condition>}
 +
 
 +
"events" : nil, //TODO
 +
 
 +
}
 +
</syntaxhighlight>
  
 
== Witch hut ==
 
== Witch hut ==
 
* editor {{done}}
 
* editor {{done}}
* engine {{todo}}
+
* engine {{done}}
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
{
 
{
"allowedSkills" : [
+
"allowedSkills" : {<Logical Id Condition>}
"airMagic",
 
"archery",
 
"armorer",
 
"artillery",
 
"ballistics",
 
"diplomacy",
 
"eagleEye",
 
"earthMagic"
 
]
 
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 20:26, 24 December 2016

Part of Map format

Base formats

Owner format

  • editor [Done]
  • engine [Done]

All flaggable objects


{
	//optional, default neutral
	"owner": "red"
}

Stack instance format

  • editor [Done]
  • engine [Done]
{
	"amount" : 1, 
	"type" : "skeleton",
	"level": 1, //optional, for random objects
	"upgraded": true  //optional, for random objects
}

Army format

  • editor [Done]
  • engine [Done]
[
  {< Stack instance format>}, 
  {}
  //...
]

Quest format

  • editor [Done]
  • engine [Done]
{
	"artifacts" : [],
	"completedText" : "",
	"creatures" : [], //army format
	"firstVisitText" : "",
	"hero" : "",
	"heroLevel" : -1,
	"killTarget" : "monster_666",
	"missionType" : "KillCreature",//None, Level, PrimaryStat, KillHero, KillCreature, Artifact, Army, Resources, Hero, Player, Custom
	"nextVisitText" : "",
	"player" : "",
	"primarySkills" : {
		"attack" : 10,
		"defence" : 10,
		//"knowledge" : -1,
		//"spellpower" : -1
	},
	"resources" : {
		"crystal" : 0,
		"gems" : 0,
		"gold" : 0,
		"mercury" : 0,
		"mithril" : 0,
		"ore" : 0,
		"sulfur" : 0,
		"wood" : 0
	},
	"timeLimit" : 5,
	"custom_x" :{<Quest format v2>}
}

Quest format 2

Proposed extension

Logical condition based.

  • editor [Todo]
  • engine [Todo]
{
//TODO:
}

Reward format

Proposed extension

  • editor [Done]
  • engine [Todo]
    • seer hut case [Done]

identifier = [scope ":"] type ["." subtype]

Possible types

  • artifact
  • creature
  • resource
  • primarySkill
  • secondarySkill
  • spell
  • luck
  • morale
  • mana
  • movement


{
	"resource.gold" : 1000,
 	"morale" : -1,
 	"wog:creature.supremeArchangel" : 9999
//...
}

OH3 objects

Abandoned mine

  • editor [Done]
  • engine [Done]
{
	"possibleResources" : [
		"crystal",
		"gems",
		"gold",
		"mercury",
		"ore",
		"sulfur"
	]
}

Artifact

  • editor [Done]
  • engine [Done]
{
	"guardMessage" : "",
	"guards" : []//Army format	
}

Creature generator

See owner format

Garrison

  • editor [Done]
  • engine [Done]
{
	"army" : [], //army format
	"owner" : "",
	"removableUnits" : true
}

Grail

  • engine [Done]
  • editor [Done]
{
	"radius" : 0
}

Hero

  • also prison and random hero
  • editor [Done]
  • engine [Done]


{
	"army" : <Army format>
	,
	"artifacts" : {
		"backpack" : [
		],
		"feet" : "",
		"head" : "",
		"leftHand" : "",
		"leftRing" : "",
		"mach1" : "",
		"mach2" : "",
		"mach3" : "",
		"mach4" : "",
		"misc1" : "",
		"misc2" : "",
		"misc3" : "",
		"misc4" : "",
		"misc5" : "",
		"neck" : "",
		"rightHand" : "",
		"rightRing" : "",
		"shoulders" : "",
		"spellbook" : "",
		"torso" : ""
	},
	"biography" : "",
	"experience" : 0,
	
	//any type for prison, must match object subtype for hero, not used for random hero
	"type" : "galthran",
	"name" : "My hero",

	//optional default - patrol disabled. 0 - stand still, > 0 - patrol radius it tiles
	"patrolRadius" : 5,
			
	//optional, icon index (from "Portraits[Large|Small].json" ) or another hero id, default from "type"
	"portrait" : "izra", 

	//TODO: custom portaits
			
	//optional default inherited from configuration
	"primarySkills" : {
		"attack" : 0,
		"defence" : 2,
		"knowledge" : 0,
		"spellpower" : 3
	},
			
	"secondarySkills" : {
		"leadership" : "basic"//, "advanced", "expert"
		//...
	},

	//optional, default if not set
	"female" : true,//false
	"spellBook" : [
		"fortune"
		//...
	],
	"tightFormation" : false
}

Hero placeholder

[Todo]

Event

  • editor [Done]
  • engine [Done]
{
	"aIActivable" : false,
	"artifacts" : [
		"swordOfHellfire"
	],
	"availableFor" : [
		"red",
		"blue",
		"tan",
		"green",
		"orange",
		"purple",
		"teal",
		"pink"
	],
	"creatures" : [
		{
			"amount" : 1,
			"&type" : "phoenix"
		}
	],
	"experience" : 1,
	"guardMessage" : "...",
	"guards" : [],//army format
	"humanActivable" : true,
	"luck" : -1,
	"mana" : -1,
	"morale" : -1,
	"primarySkills" : {
		"attack" : 1,
		"defence" : 1,
		"knowledge" : 1,
		"spellpower" : 1
	},
	"removeAfterVisit" : true,
	"resources" : {
		"crystal" : -1,
		"gems" : -1,
		"gold" : -1,
		"mercury" : -1,
		"mithril" : 0,
		"ore" : -1,
		"sulfur" : -1,
		"wood" : -1
	},
	"secondarySkills" : {
		"fireMagic" : 1
	},
	"spells" : [
		"protectFire"
	],
	"reward_x" : {}//reward format

}

Lighthouse

See owner format

  • editor [Done]
  • engine [Done]

Mine

  • editor [Done]
  • engine [Done]
{
	"army" : [], //army format
	"owner" : ""
}

Monster

  • editor [Done]
  • engine [Done]
{
	//mandatory
	"character" : "compliant",// friendly, aggressive, hostile, savage

	//default random
	"amount" : 19,
	
	//optional, default false
	"noGrowing" : true

	//optional, default false
	"neverFlees" : 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
	},
	"reward_x" : {}//reward format
}

Sign/Ocean bottle

  • editor [Done]
  • engine [Done]
{
	"text": "Hello world!!!1111"
}

Pandoras box

  • editor [Done]
  • engine [Done]
{
	"artifacts" : [
		"powerOfTheDragonFather"
	],
	"creatures" : [], //army format
	"experience" : 1000000,
	"guardMessage" : "Prepare to fight...",
	"guards" : [], //army format
	"luck" : 2,
	"mana" : 100,
	"morale" : 2,
	"primarySkills" : {
		"attack" : 1,
		"defence" : 1,
		"knowledge" : 1,
		"spellpower" : 1
	},
	"resources" : {
		"crystal" : -1,
		"gems" : -1,
		"gold" : -1,
		"mercury" : -1,
		"mithril" : 0,
		"ore" : -1,
		"sulfur" : -1,
		"wood" : -1
	},
	"secondarySkills" : {
		"logistics" : "basic"//, "advanced", "expert"
	},
	"spells" : [
		"townPortal"
	],
	"reward_x" : {}//reward format

}

Quest guard

  • editor [Done]
  • engine [Done]
{
	"quest" : {} //quest format
}

Random dwelling

  • editor [Done]
  • engine [Done]
{
	"allowedFactions" :{<logical id condition>},
	"maxLevel" : 7,
	"minLevel" : 1,
	"sameAsTown" : "town_42"
}

Resource

  • editor [Done]
  • engine [Done]
{
	"amount" : 99999,
	"guardMessage" : "",
	"guards" : [] //army format
}

Scholar

  • editor [Done]
  • engine [Done]
{
	"rewardPrimSkill" : "",
	"rewardSkill" : "wisdom",
	"rewardSpell" : "",
	"reward_x" : {}//reward format
}

Seer hut

  • editor [Done]
  • engine [Done]
{
	"quest" : {}, //quest format
	"reward" : {}//reward format
}

Shipyard

See owner format

  • editor [Done]
  • engine [Done]

Shrine of magic

  • editor [Done]
  • engine [Done]
{
	//optional, random spell if not set
	"spell" : ""
}

Spell scroll

  • engine [Done]
  • editor [Done]
	"guardMessage" : "",
	"guards" : [], //army format
	"spell" : "magicArrow"
}

Town

  • engine [Done]
  • editor [Done]
  • castle events [Todo]
	"army" : [], //army format
	"tightFormation" : false

	"name" : "", 
	"buildings" : {<Logical Id Condition>}
	"spells" : {<Logical Id Condition>}

	"events" : nil, //TODO

}

Witch hut

  • editor [Done]
  • engine [Done]
{
	"allowedSkills" : {<Logical Id Condition>}
}