How to block attack with shield?

Create a bool veriable and set it true if character in blocking state. Put branch before apply dmg to character and control it with the blocking state bool variable. If you want to make it more complicated than that. You can do “math magic” before setting blocking state true so it can be true only when “math magic” fires it.