Hi how can i make my character combo eat swordfish and pizza?
private String food ="Swordfish";
private String food2 ="Anchovy Pizza";
if (myPlayer().getHealthPercent()== 100)
if (getInventory().contains(food,food2)) {
log("Contains" + food + food2);
}
if (getInventory().interact("Eat",food,food2));{
log("Eating Swordfish and Pizza");
}
when i use this code it will only eat food2
i have been thinking about isAnimating since animation each has its own id, i.e; eating has a id of 829
but since its a boolean type it will not differentiate between id values and only return true or false for any animation made?
i now want check for; if swordfish has been eaten/interacted with then eats pizza just learned java a few hours ago still trying to figure out how to write the code for this
could someone push me in the right direction
thanks in advance