Quickstart
DataSheetLang lets you describe changes in YAML and apply them to your game’s XML DataSheet in a repeatable way.
Prerequisites
Section titled “Prerequisites”- You have the
dslCLI available in your terminal. - You have a local DataSheet folder (the folder that contains files like
ItemTemplate.xml, etc.).
1) Create a spec file
Section titled “1) Create a spec file”Create a new file, for example: items.yaml
spec: version: "1.0"
items: create: - id: 99001 name: "Training Sword" level: 1 rareGrade: "Common" combatItemType: "EQUIP_WEAPON" combatItemSubType: "TWOHAND" category: "weapon" buyPrice: 100 sellPrice: 10 maxStack: 12) Apply the spec to your DataSheet
Section titled “2) Apply the spec to your DataSheet”From the folder where items.yaml is located:
dsl apply items.yaml --path ./DataSheetThis will read your YAML spec and update the relevant XML files under ./DataSheet.