attack hit

attack hit



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


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]



lightlight: Senses only light attack hits

mediummedium: Senses only medium attack hits

heavyheavy: Senses only heavy attack hits

rangedranged: Senses only ranged attack hits (such as an arrow)

Other Uses


Comments are closed.

Website Powered by

Up ↑

%d bloggers like this: