The follow code did not work. 
function addPoints(addNum,addOn) {
    if (addOn = selfHP)
        return selfLus + addNum
    else: 
        return null 
I am trying to use some outside of @dec selfHP five times.  I tried to create a function however nothing at all happened. Do anyone know how to make something like this work?