1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/docs/modders/Artifact_Format.md

63 lines
1.3 KiB
Markdown
Raw Normal View History

2023-09-01 00:30:26 +02:00
Artifact bonuses use [Bonus Format](Bonus_Format.md)
2023-08-12 11:39:44 +02:00
TODO:
- Artifacts growing with Commander level
## Required data
In order to make functional artifact you also need:
- Icon for hero inventory (1 image)
- Icon for popup windows (1 image, optional)
- Animation for adventure map (1 animation)
## Format
``` javascript
{
2023-09-01 00:30:26 +02:00
//what kind of bearer can use this artifact
"type": ["HERO", "CREATURE", "COMMANDER"]
//TREASURE, MINOR, MAJOR, RELIC, SPECIAL
"class": "TREASURE",
//SHOULDERS, NECK, RIGHT_HAND, LEFT_HAND, TORSO, RIGHT_RING, LEFT_RING, FEET, MISC1, MISC2, MISC3, MISC4,
//MACH1, MACH2, MACH3, MACH4, SPELLBOOK, MISC5
//also possible MISC, RING
"slot": "HEAD",
//based on ARTRAITS.txt
"value": 12000,
2023-08-12 11:39:44 +02:00
"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":
{
"image": "BigSword.png",
"large": "BigSword_large.png",
2023-09-01 00:30:26 +02:00
//def file for adventure map
"map": "BigSword.def"
2023-08-12 11:39:44 +02:00
},
"bonuses":
{
Bonus_1,
Bonus_2
},
2023-09-01 00:30:26 +02:00
//optional, for combined artifacts only
"components":
2023-08-12 11:39:44 +02:00
[
"artifact1",
"artifact2",
"artifact3"
],
2023-09-01 00:30:26 +02:00
//if set with artifact works like war machine
"warMachine" : "some.creature"
2023-08-12 11:39:44 +02:00
}
```