Tuesday, February 18, 2014

J5

For the prototype, I've tried to keep things simple and make sure that I have the basics right. Therefore, the player will only set up for and then participate in a small battle using three characters. I have prepared six characters for the player to choose from and an array of weapons and armor for them to buy beforehand. The player will then use the three units he chose with the equipment he bought to try to defeat two wolves and three bandits on a small (6x7) map.

The actual combat takes quite a few calculations, so I'll explain them here:
  • Damage: calculated differently depending on the weapon...
    • Swords & Axes & other: 2 x Strength + weapon's damage
    • Twin Swords & Bows: Strength + Dexterity + weapon's damage
    • Spears: 1.5 x Strength (rounded down) + weapon's damage
    • Staves: 2 x Intelligence + weapon's damage
  • Defense: Constitution + 1/2 Strength (rounded down)
  •  Magic Defense: Wisdom
  • Hit: 3 x Dexterity + weapon's hit
  • Avoid: 2 x Dexterity + Intelligence - armor's penalty
  • Critical: 2 x Luck
  • Dodge: Luck + 1/2 Wisdom
In combat, the actual damage dealt to the other character is (damage - defense) or (damage - magic defense) if the opponent is using a staff. To determine if the attack hits and deals any damage, a random number generator (between 1-100) must produce a number under the value (hit - avoid). Likewise, to determine if an attack lands a critical (dealing 3x damage), an RNG must produce a number under the value (critical - dodge).

On each player's turn he can choose to move each of his units up to 5 spaces. If the unit is wielding a sword, twin sword, axe, spear, or other (i.e. claws, bite), then he can attack after moving. Otherwise that unit is done. The game is over once one side has been defeated.

Each character can wear one piece of armor and carry up to two weapons. If the character is carrying a sword, then he may take a shield instead of a second weapon, which would increase his defense. Regardless of whether or not the character has two weapons, he may only attack with one at any time. For the purposes of the prototype, the player will start the game with 3300 gold with which to buy equipment.

No comments:

Post a Comment