I am testing something and am trying to make it so that when a button is clicked, 50 is subtracted from the enemies hp. The enemy's hp could either be 100 or 500, (it is randomized). For some reason, the value refuses to change. When I try with a defined enemy it works fine, however when I try to make the enemy randomized, the value refuses to go down. I have tried using both global and local variables.
Any help would be greatly appreciated, thanks in advance! ;)