Jump to content

Lesser Demon Killer script source with comments [EDUCATIONAL]


Botre

Recommended Posts

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
Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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