Make a varible for the enemy's health, For the random damage, If you want the damage to change in any way in the future, make 2 varibles, one for min damage and the other for max damage, here is the formula. HP=HP-rnd(MAX-MIN)+MIN