Skip to content
netprogs edited this page Jun 28, 2012 · 1 revision
{
  // CLASSES
  // This is where we define what Classes you want.
  "classes": [

    // This is the Warrior class.
    {
      // This id is used during the level configurations.
      "id": "warrior",

      // The display name of the class
      "displayName": "Warrior",

      // The description name of the class
      "description": "The Warrior Class",

      // These modifiers are added to level, racial, weapon and armor modifiers.
      "combatModifiers": {

      // The baseModifier is what a given race gets regardless of their gear.
      // By taking the warrior class, a player would gain:
      // +1 ATK, +1 DMG, +15 Health, +1 defense (AC) and +1 initiative.
        "baseModifier": {
          "id": null,
          "attack": 1.0,
          "damage": 1.0,
          "health": 15.0,
          "defense": 1.0,
          "initiative": 1.0,
          "diceRoll": ""
        },
        // Similar to races, this defines the bonuses/losses someone would get when being this class.
        "chestplates": {
          "chainmailChestplate": {
            "attack": -1.0,
            "damage": 0.0,
            "health": 0.0,
            "defense": 0.0,
            "initiative": 0.0,
            "diceRoll": ""
          },
          "goldChestplate": {
            "attack": -1.0,
            "damage": 0.0,
            "health": 0.0,
            "defense": 0.0,
            "initiative": 0.0,
            "diceRoll": ""
          },
          "diamondChestplate": {
            "attack": -4.0,
            "damage": 0.0,
            "health": 0.0,
            "defense": 0.0,
            "initiative": 0.0,
            "diceRoll": ""
          },
          "ironChestplate": {
            "attack": -2.0,
            "damage": 0.0,
            "health": 0.0,
            "defense": 0.0,
            "initiative": 0.0,
            "diceRoll": ""
          }
        },
        // You can continue the above pattern for helmets, leggings, boots & weapons
        "helmets": {},
        "leggings": {},
        "boots": {},
        "weapons": {}
      },
      // You can also assign ability modifiers to classes just the same as you can for races. 
      // We don't have any defined here, but leaving this as an indicator. 
      // See Orc race for details.
      "abilityModifiers": [],
      // You can also assign save modifiers to classes just the same as you can for races. 
      // We don't have any defined here, but leaving this as an indicator. 
      // See Orc race for details.
      "saveModifiers": []
    },

    // This defines the Archer class using the same patterns above
    {
      "id": "archer",
      "displayName": "Archer",
      "description": "The Archer Class",
      "combatModifiers": {
        "baseModifier": {
          "attack": 2.0,
          "damage": 2.0,
          "health": 10.0,
          "defense": 1.0,
          "initiative": 2.0,
          "diceRoll": ""
        },
        "chestplates": {
          "chainmailChestplate": {
            "attack": -3.0,
            "damage": 0.0,
            "health": 0.0,
            "defense": 0.0,
            "initiative": 0.0,
            "diceRoll": ""
          },
          "goldChestplate": {
            "attack": -1.0,
            "damage": 0.0,
            "health": 0.0,
            "defense": 0.0,
            "initiative": 0.0,
            "diceRoll": ""
          },
          "diamondChestplate": {
            "attack": -4.0,
            "damage": 0.0,
            "health": 0.0,
            "defense": 0.0,
            "initiative": 0.0,
            "diceRoll": ""
          },
          "ironChestplate": {
            "attack": -2.0,
            "damage": 0.0,
            "health": 0.0,
            "defense": 0.0,
            "initiative": 0.0,
            "diceRoll": ""
          }
        },
        "helmets": {},
        "leggings": {},
        "boots": {},
        "weapons": {}
      },
      "abilityModifiers": [
        {
          "id": "strength",
          "value": 2.0
        },
        {
          "id": "constitution",
          "value": 2.0
        },
        {
          "id": "dexterity",
          "value": 2.0
        }
      ],
      "saveModifiers": [
        {
          "id": "fortitude",
          "value": 1.0
        },
        {
          "id": "will",
          "value": 1.0
        },
        {
          "id": "reflex",
          "value": 1.0
        }
      ]
    }
  ]
}

Clone this wiki locally