attack hit
Details
Kode wheel segment | Combat/Combat Events |
Style | Specialised |
Modifiers | light, medium, heavy, ranged |
Primarily WHEN/DO | WHEN |
Pre-made brains that use it | Unknown |
Combat > Combat Events > attack hit
Description
This tile is a specialised sensor. It senses when a character hits another with an attack, ranged or melee. Paired with a number variable you could count the number of hits on the enemy to allocate a score, or instead of using health to kill a character you could set up death to occur after a certain number of hits.
Example Code
WHEN [attack hit] DO [numvar:hit score][incremented by][1]
Modifiers
light: Senses only light attack hits
medium: Senses only medium attack hits
heavy: Senses only heavy attack hits
ranged: Senses only ranged attack hits (such as an arrow)
Other Uses
None