health and attack scripts functional