Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ThisEncounterCounter = 0
- local LastEncounterCounter = 0
- local EncounterDepletion = 0
- while true do
- ThisEncounterCounter = memory.read_u16_le(0xF796)
- if(LastEncounterCounter ~= ThisEncounterCounter) then
- EncounterDepletion = LastEncounterCounter - ThisEncounterCounter
- end
- -- 768 - 11264
- gui.text(0,0,"Encounter Counter: " .. memory.read_u16_le(0xF796))
- if(EncounterDepletion > 0) then
- gui.text(0,15,"Depletion: " .. EncounterDepletion) --Also 0x06B8
- end
- gui.text(0,60,"RNGA: " .. memory.read_u16_le(0x7F7A))
- gui.text(0,75,"RNGB: " .. memory.read_u16_le(0x7F7C))
- -- The RNG is cycle based and thus can change based on buttons you press.
- -- RNGA is two frames before RNGB. They may or may not affect each other.
- LastEncounterCounter = ThisEncounterCounter
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment