Need help with a script for damage idk if its even posible

basically i want damage in ninja simulator to work on a variable but its more complicated than i thought