|
From: Katran <Ka...@zi...> - 2002-05-04 13:20:17
|
Hello Everyone,
My suggestions on formulas:
Initiative formula:
$initiative = //is calculated for every person engaged in combat _
//on the start of the combat and after _
//every attack he made (is expressed in ticks)
$last_attack_tick + //for the start of the combat it is 0
random(1,20) + //random factor
$attacker_weapon_factor - //2H sword is much slower then dagger
$attacker_bonuses; //for deterity, speed spell, etc.
To hit formula (every bonus could by penalty if negative):
$ishit = //this is calulated when tick _
//counter is equal to someone's initiative
random(0,$attacker_skill) + //success in using fighting skill
$attacker_skill / 10 + //minimal use of skill
$attacker_weapon_bonus + //bonuses for magical or well-crafted weapon (not %)
$attacker_bonuses - //like blessing, berserk, etc.
$defender_evasion - //defender dexterity+armor evasion bonus
$defender_bonses; //like blessing, berserk, etc.
Damage formula:
$damage =
random( $weapon_min_damage , $weapon_max damage ) +
$attacker_bonuses - //for strength, etc.
$defender_protection - //usualy armor
$defender_protection_bonuses; //stoneskin spell, etc.
Example: Torak the Berserk is strong and very skilled with his
enchanted 2H sword (skill=100). He is fighting with Boneater the Goblin,
who wears leather armor and was recently blessed by the tribe's shaman.
He fights with short sword (skill=30).
At the start of the combat iniative is rolled:
Torak has 18 ((random) 10 + (enchanted 2H sword) 12 - (berserk state) 4)
(2H sword, even enchanted, is slow, but Torak is in berserk state,
which gives him higher strength, thus resulting in 4 bonus)
Boneater has 6 ((random) 6 + (dagger) 4 - (blessed) 4)
(dagger is quick, bless gives better initiative)
When tick counter is 6, Boneater attacks. To hit is rolled, and
results in -9 ((random) 20 + 3 + (weapon) 0 + (blessing) 8 -
(evasion 10) - (berserk state) 30).
Since the number is negative, Boneater misses (but he was close). His
next attack will be on tick 15. ((current) 6 + (random) 9 + (dagger) 4 - (blessed) 4)
On tick 15 he strickes again and misses (he isn't very skilled with
his dagger). Next attack on 27.
On tick 18 Torak rolls to hit. He has 38.
((random) 50 + 10 + (enchanted weapon) 10 + (berserk state) -4 -
(evesion) 20 - (blessing) 8).
(Torak is less accurate when in berserk state, and Boneater is fast
(evasive)). Torak scores a hit, since the result is more the 0.
He rolles for damage and gets 14.
((weapon) 12 + (berserk) 6 - (protection) 2 - (blessing) 2).
(Torak has bonuses due to berserk state, Boneater's leather armor and
blessing absorbs some damage).
14 little more then a simple goblin (even blessed) can suffer, so
Boneater dies.
Best regards,
Katran mailto:Ka...@zi...
|