Since I really enjoyed updating this resource and I'd love for people to use it (and find bugs), I thought I'd give a breakdown of what this resource can now do. I've included an example image below - sorry in advance for my dodgy image editing skills.
1. There is one page of icons for each encounter type defined for a given map. By default, after the map name, you'll see the name of the encounter type as defined in
module EncounterTypes
. These names aren't always intuitive ("Water") or pretty ("LandNight"). I added the optional
NAMES
array to allow you to display different names to those in the module, For example, "Land" appears as "Grass" in my example image, which I think is clearer.
(Preamble to 2) Thanks to Zaffre, encounters were changed from plain text to icons. In a mini-update, I made the UI show forms (if the icons exist in your Graphics/Icons folder). I've since made it so that forms are now grouped with their base form friends, rather than being tagged on at the end.
2. I added functionality to show icons as follows:
If a Pokémon/form has not been seen, their icon is shown as a question mark (or the icon for species "000" to be more exact).
If a Pokémon/form has been seen but not owned, the icon appears greyed out.
If a Pokémon/form is owned, the icon displays in full colour.
The functionality I added allows for all forms to be tracked separately. For example, in the image below, I have not seen regular Sandshrew, so the icon is a question mark, but I own Alolan Sandshrew, so the icon is shown and in full colour. In v18/18.1, the seeing of forms is tracked separately, but owning is not. Please let us know if you think this is not working as intended.
3. The UI is split by encounter type and can be navigated using the left and right arrow keys. Only encounters that are defined for a given map will be shown, so you don't need to scroll through blank pages unnecessarily. If a map has no defined encounters, the UI will be blank and there will be text to tell you there are no encounters on the map.
4. And finally, the box (windowskin) that the UI sits on. raZ included on the main page the graphic you need to replicate the image below (put this in Graphics/Windowskins and call it "encounters.png"). If this graphic does not exist or there is a typo in the filename, the default choice box windowskin will be used (which I think is hard on the eyes). The
WINDOWSKIN
constant in the script can be changed to any of the 48x48 windowskins that come with Pokémon Essentials or you can make your own like I did!
This breakdown ended up being a whole lot longer than I thought it would, but I'm just excited about my first major contribution to something! A huge thanks to everyone credited, especially raZ who let me make these changes and for being so patient.