Difference between revisions of "Artifact Format"

From VCMI Project Wiki
Jump to: navigation, search
m
Line 9: Line 9:
 
<pre>
 
<pre>
 
{
 
{
type: "HERO", \\CREATURE, COMMANDER
+
"type": "HERO", \\CREATURE, COMMANDER
class: "TREASURE", \\MINOR, MAJOR, RELIC, SPECIAL
+
"class": "TREASURE", \\MINOR, MAJOR, RELIC, SPECIAL
slot: "HEAD", \\SHOULDERS, NECK, RIGHT_HAND, LEFT_HAND, TORSO, RIGHT_RING, LEFT_RING, FEET, MISC1, MISC2, MISC3, MISC4,
+
"slot": "HEAD", \\SHOULDERS, NECK, RIGHT_HAND, LEFT_HAND, TORSO, RIGHT_RING, LEFT_RING, FEET, MISC1, MISC2, MISC3, MISC4,
 
MACH1, MACH2, MACH3, MACH4, SPELLBOOK, MISC5
 
MACH1, MACH2, MACH3, MACH4, SPELLBOOK, MISC5
value: 12000, //based on ARTRAITS.txt
+
"value": 12000, //based on ARTRAITS.txt
name:
+
"text":
 
{
 
{
name: "Big Sword",
+
"name": "Big Sword",
description: "Big sword gived +10 attack to hero",
+
"description": "Big sword gived +10 attack to hero",
event: "On your travel, you stumble upon big sword. You dust it off and stick in your backpack"
+
"event": "On your travel, you stumble upon big sword. You dust it off and stick in your backpack"
 
}
 
}
graphics: "BigSword.png",
+
"graphics": "BigSword.png",
bonuses:
+
"bonuses":
 
{
 
{
 
Bonus_1,
 
Bonus_1,

Revision as of 18:05, 8 December 2012

See thread http://forum.vcmi.eu/viewtopic.php?t=558for discussion

Artifact abilities use Bonus Format.

TODO:

  • Combined artifacts identified by string
  • Artifacts growing with Commander level
{
	"type": "HERO", \\CREATURE, COMMANDER
	"class": "TREASURE", \\MINOR, MAJOR, RELIC, SPECIAL
	"slot":	"HEAD", \\SHOULDERS, NECK, RIGHT_HAND, LEFT_HAND, TORSO, RIGHT_RING, LEFT_RING, FEET, MISC1, MISC2, MISC3, MISC4,
		MACH1, MACH2, MACH3, MACH4, SPELLBOOK, MISC5
	"value": 12000, //based on ARTRAITS.txt		
	"text":
	{
		"name": "Big Sword",
		"description": "Big sword gived +10 attack to hero",
		"event": "On your travel, you stumble upon big sword. You dust it off and stick in your backpack"
	}
	"graphics": "BigSword.png",
	"bonuses":
	{
		Bonus_1,
		Bonus_2
	}
}