bzmake Posted April 18, 2015 Share Posted April 18, 2015 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? Quote Link to comment Share on other sites More sharing options...
Botre Posted April 20, 2015 Author Share Posted April 20, 2015 (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 April 20, 2015 by Botre Quote Link to comment Share on other sites More sharing options...
laylaylom Posted June 18, 2016 Share Posted June 18, 2016 What if target is already under attack? Will it search for another target to attack? How to code that? Quote Link to comment Share on other sites More sharing options...