—— An over-explained mobs encounters ——
In the game chatwars you can go to the forest.
On your return, you may have a encounter with its aggressive inhabitants and/or other opponents wishing to spoil your health.
On average, encounters occur once every 8 quest, but the chance can be changed both up and down with the help of effects.
In most cases the player can choose to join a encounter or not, except for ambushes.
Enemy types depend on the "forest" you're from, whether you're in a guild or not and whether your guild has encounter related quests.
The number of enemies is affected by the roll of dice, subject to a normal min/max distribution.
Enemy modifiers depend on enemy type and character skills.
The number of modifiers is affected by the character's reborns count.
The equipment of humanoid enemies is affected by their level and class.
The state of the participants is fixed at the start of the battle. That is, if you somehow lost health after joining the encounter,
it will not affect your health in the skirmish.
Combat is a turn-based battle. For simplicity, let's think of the players and their opponents as two teams facing each other.
All players on one team move first, then the move goes to the opposing team.
The moves continue until no healthy characters remain on either side, or another victory condition is met.
The victory conditions depend on the types of opponents.
Each character can perform up to two types of actions in a single turn:
- use an item in the right hand;
- use an item in his left hand.
The number of actions depends on the action speed. This speed based on both the type of item and the character skills.
In most cases:
- right-handed action speed is 100;
- left-handed action speed is 33.
When calculating actions, the speed value is used as a chance to perform an action.
That is, if you have a bottle of poison in your left hand, but d100 speed roll is 51, then the poison won't be applied.
If you roll 32 or lower, you will successfully poison your opponent.
If your speed is over 100, the excess will be treated as a repeat action (provided that the new speed roll is successful).
In case you have a weapon in your hand and the speed roll was successful, your character will try to hit. The target is selected by dice roll.
In order for the hit to reach the target a simple condition must be met:
- throw_d100 < your_attack_rating / (your_attack_rating + target_defense_rating)
In general the attack_rating equals the player's attack, and the defense_rating equals the defense parameters accordingly.
In case of a successful attack the opponent will receive damage,
which value depends on the characteristics of the character and the weapon that was struck at about the same proportion.
In case you are wielding bare arms or dual shields, only the character's characteristics will be used.
Damage can be amplified or reduced by modifiers, such a a 'strong vs armor type_', 'vulnerability' or 'resist'.
All damage dealt to enemies is summed up in the damage report row.
All damage prevented or compensated is summed up in the defense row of the report.
All effects that reduce enemy characteristics go into the control row of the report.
Stay hydrated 🍻