To define an equipment, you have to add these lines inside your .ddm file:
create Equipment heavyEquip{
armor:Plate
shield:Yes
consumables:(Health potion*5)
weapon:Longbow
}
As you can see, the code required to create a piece of equipment is similar to what is required to create a new character. The procedure stars using the key phrase:
create Equipment <equipName>
Inside the equipment definition, there are 4 mandatory fields:
- armor
- consumables
- weapon
- shield
The first 3 fields admit the key word 'None' in case the equipment does not contain that piece. The field 'shield' has only 2 possible values: 'Yes' and 'No'.
Using the characters defined by singleChar.ddm, is possibile to add equipment to a character using the Items setting to obtain:
As shown in the image above, the armor class is still the same of a character without armor: to show the actual armor class is necessary the Active setting, in this case the charsheet shows:
During the creation of your equipment, the tool can inform you that the .ddm or .txt file contains error. To know why your file has errors, follow this link. Remember also that the supported values of any property are listed here.