June 13, 20205 yr How would I go about logging on my paint how many items I have left in my bank? If I'm running multiple accounts it's good to know which account is about to run out of a certain item in it's bank. I've tried something like int itemsLeft = getBank.contains(item); g.drawString("Items left: " + itemsLeft); but that shows me the amounts left only when I have the bank open. If it's not opened it doesn't show anything.
June 13, 20205 yr You would have to store the value in a variable when opening the bank. There is no way to tell without having it open.
June 13, 20205 yr you could just write to a file: if the information is not there, go to bank, get info, dump it to file this information will be persistent and can/should be updated each time you have the bank open
June 13, 20205 yr int amountInBank; if (getBank.isOpen) { amountInBank = getBank.getAmount(item); } Now it will store the value
June 13, 20205 yr You're probably using the item in your script. Just before u're about to close the bank put the item amount in a variable.
Create an account or sign in to comment