Jump to content

Lesser Demon Killer script source with comments [EDUCATIONAL]


Recommended Posts

Posted (edited)

How would I go about adding another monster for it to find?

 

Do I have to make the "final" a double or something and add another string or?

 

 

Also, does any1 have a pickup snippet?

 

Final isn't a type.

If you want to change the monster you would change the assigned value from:

private static final String NAME = "Lesser demon";

to:

private static final String NAME = "Goblin"; //For example, this is a comment btw.

If you want to make it search from multiple monster names you could use an array like this:

private static final String[] NAMES = new String[]{"Lesser demon", "Goblin"};
Edited by Botre
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...