What is wrong with this because it gives me a parse error
$hp = ($array[hp] - 1);
The only thing visibly wrong is what is described here.