Skip to content

Custom Characters

amione edited this page Oct 24, 2024 · 1 revision

Editing CustomCharacters.json in Darkwood

This guide will help you modify CustomCharacters.json to customize the attributes and behaviors of various characters in the game.

Understanding CustomCharacters.json

The CustomCharacters.json file defines the characteristics and attacks of different characters in Darkwood. Each character entry includes parameters such as health, speed, and attack information.

Structure of the File

Each character is defined with properties that dictate their behavior and attributes. Here's how the data is structured:

Example format:

{
  "Dog": {
    "Health": 20.0,
    "WalkSpeed": 2.0,
    "RunSpeed": 10.0,
    "Attacks": [
      {
        "1": {
          "AttackName(ReadOnly)": "dziab",
          "AttackIsRanged(ReadOnly)": false,
          "Damage": 15,
          "BarricadeDamage": 0
        }
      }
    ]
  },
  "Rabbit": {
    "Health": 5.0,
    "WalkSpeed": 2.0,
    "RunSpeed": 8.0,
    "Attacks": []
  }
}

In this example:

  • The Dog has health of 20, a walking speed of 2.0, a running speed of 10.0, and one attack named "dziab" that deals 15 damage.
  • The Rabbit has lower health (5.0), the same walking speed as the Dog, a running speed of 8.0, and no attacks defined.

Customizing Characters

To modify characters:

  1. Identify the character you want to edit or create a new entry for.
  2. Define the character’s Health, WalkSpeed, and RunSpeed.
  3. If the character has attacks, create an Attacks array and define each attack.

Tips:

  • Adjust health, speed, and attack values to balance gameplay as needed.
  • If a character does not have attacks, ensure the Attacks array is empty (like in the Rabbit example).
  • Additionally don't add more attacks than the character has in the base game, as that will not work.