NovaGTX 106 Posted May 25, 2020 13 hours ago, MachineAIExp said: So to explain: I try to make 2 kind of lists, 1 for each item and 1 for the GE limit of that item. I then try to assign each value in a for loop to a new variable that I call in the STATE methods. I hope you get what I mean? The problem is that this is not really possible and I do not really know how to solve this, or whether there is maybe a much easier way to solve this problem. Use a Map (google if you're not familiar) Edit: I'm feeling helpful here you go: Map<String, Integer> limits = new HashMap<String, Integer>(){{ put("death rune", 10000); put("law rune", 12000); put("nature rune", 12000); put("chaos rune", 12000); put("steel bar", 10000); put("yew logs", 12000); }}; Use the toLowercase() function when iterating through the map keys to avoid issues with capitalization.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.