October 22, 201312 yr Just looking through the API because I wanted to make a small script. 'public int getHealth() if (isUnderAttack) { } else {' I actually haven't wrote this and I haven't studied JAVA before but it's just a guess, don't be too harsh.
October 22, 201312 yr Just looking through the API because I wanted to make a small script. 'public int getHealth() if (isUnderAttack) { } else {' I actually haven't wrote this and I haven't studied JAVA before but it's just a guess, don't be too harsh. if (isUnderAttack()) { code; } else { code; }
October 23, 201312 yr I know you are just looking for help for this direct problem, but I do suggest you spend some time to learn Java. It will save you so much time int he long run.