Example of a battle

Character setup

Player A (you) vs Player B

A’s char:
– STR 6
– DEX 5
– LUK 1
– AGI 2

-> hp 60
-> hit 75
-> crit 13
-> dodge 17

You don’t need to know B’s stats, just his dodge.

– B’s dodge: 18
-> A’s hitrate: 100 – 75 + 18 = 43

– A’s range of damage: (1, 8).

Combat

h: hit; c: crit; d: damage; r(min-max): random-number between min and max.

The order of a player’s turn is hit / crit / damage.

A starts.

A generates a random number between 1-100.
r(1-100): 22
Now check if your hitrate is less or equal than X.
h: 43 <= 22
-> miss

B’s turn.
h: r(1-100): 45 <= 1
-> miss

A’s turn.
h: r(1-100): 43 <= 76
-> hit
c: r(1-100): 99 <= 13
-> no crit
d: r(1-8): 5
-> 5 dmg
–> B’s hp: 65/70

B
h: r(1-100): 45 <= 65
-> hit
c: r(1-100): 2 <= 16
-> crit
d: r(1-6): 4
-> 4*3 = 12 dmg
–> A’s hp: 48/60

It might look a bit cryptic for unexperienced players, but there will be a better overview in near future.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: