block
Details
Kode wheel segment | Combat |
Style | Specialised |
Modifiers | reduction amount / reduction ratio |
Primarily WHEN/DO | DO |
Pre-made brains that use it | Unknown |
Combat > block
Description
This tile is used to create a block animation. If the player has a shield equipped they will pull the arm up and hide behind it. If they are not equipped with a shield they will put both arms up to their head in a defensive pose. It will prevent an attacking player from inflicting damage (unless they have the disallow blocking modifier active).
Example Code
WHEN [Y] DO [block]
Modifiers
reduction amount: Paired with a number. This will reduce the health reduction caused by an attack by the number specified. Example:
WHEN [Y] DO [block][reduction amount][1]
So if an enemy causes 10 points of damage for an attack, if you are blocking and the enemy attacks, the attack will cause 9 points of damage.
reduction ratio: Paired with a number between 0 and 1. This will reduce the attacking damage when player is blocking by a percentage. Example:
WHEN [Y] DO [block][reduction ratio][0.5]
If an enemy causes 10 points of damage, this will reduce it to 5 points.
Other Uses
None