A Lua script for the Bizhawk/mGBA emulator compatible with Pokemon Fire Red, Leaf Green, Ruby, Sapphire, and Emerald that tracks relevant data for the IronMon challenge.
Adds a toggleable option (off by default but could change this if wanted) to display a little Icon when a player uses a repel, with a bar indicating the remaining amount of repel
The game sets a variable for the remaining repel step count, which is 0 when there's no active repel and is stored in SaveBlock1
This icon sits in the upper-right of the game and is hidden when the start menu is opened or player enters a battle
The variable checked for the start menu doesn't exist in Ruby/Sapphire so won't be hidden in the menus of those games unless an alternative solution is found. Will still function for those games though, if the user doesn't mind it being overlaid like this.
The bar is colored with positive/intermediate/negative text depending on the remaining amount of repel steps (50% and 25% cut-offs).
There was also some trailing whitespace cleanup that was automatically done by my vscode via the editorconfig
Adds a toggleable option (off by default but could change this if wanted) to display a little Icon when a player uses a repel, with a bar indicating the remaining amount of repel
There was also some trailing whitespace cleanup that was automatically done by my vscode via the editorconfig
https://user-images.githubusercontent.com/106463662/190704320-dc9c4f51-980e-4546-8ea5-9b093fedfa6e.mp4