Hi all.
I've been wanting to get into making scripts for a while now. I have no classroom knowledge of Java, but I am familiar with C++. I have taken the introductory to C++ course, which taught me the basics (types, syntax, functions, if-statements, etc), and I just recently finished a course on Object Oriented Programming (it involved a lot of class types) and it looks very similar to this Java coding.
I just started playing around with java and following Apaec's basic guide, I can now get my character to attack cows.
But here is where I feel I need exposure to:
I've been seeing bits of other example codes and I've seen functions such as "isUnderAttack()" or "myPlayer()" and I was wondering if there is a list of these functions I could view.
I am trying to incorporate eating in my basic cow killer, just to play around and get more familiarized with RS coding.
I assume it would be something like...
private static final int pike = 351; //pike
if (myPlayer.hitpoints() < 5)
{
inventory.pike.interact(pike);
}
This is just an assumption. I don't know if there is a hitpoints() function, or if my syntax is correct. I hope I'm not confusing anyone.
Pretty much is there a list of functions that I can see that exists? Any steps in the right direction would greatly be appreciated as well.
Thank you all!