Closed Storm-Eagle20 closed 6 years ago
Thanks
No problem. I have one request. Could you change a specific piece of code for me?
In the Wild Viewer on line 311...
gui.text (2,10, "Enemy Hold Item: "..items_table[item])
Could you change that to this?
if items_table[item] ~= nil then
gui.text (2,10, "Enemy Hold Item: "..items_table[item])
else gui.text (2,10, "Enemy Hold Item: None")
end
After you merged the pull request I found a bug where items_table[item]
tries to concatenate a nil value, usually after using Thief or capturing a Pokemon with a held item, and then crashing the script.
I'd like to apologize though since I didn't think items_table[item]
could possibly become nil, which is why I didn't implement it in the first place.
There's now a script that allows you to find Pokemon with Held Items, making finding Lucky Eggs much easier, or even just farming Berries like Gold Berry.
The Wild Viewer has been updated accordingly to support Hold Items.