Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- sos_messages.lua
- --
- -- For use with Majora's Mask (U)
- -- Open up the Song of Soaring menu before activating the script
- -- The resulting messages will be stored in a file called 'SoS_Messages.txt'
- --
- -- Author: @Faschz
- -- Created: November 4th, 2018
- -- Address for the message table and corresponding length of message in the table
- MESSAGES = 0x1D0714
- LENGTH = 0x1D07C4
- file = io.open('SoS_Messages.txt', 'w')
- -- Normally there are 11 messages in game...
- -- However, with clever use of 'Index Warp' new strings can be written
- -- to the text box that appears. This also overwrites unintended ranges of
- -- memory.
- for m=0, 10 do
- length = mainmemory.read_u16_be(LENGTH + m*2) - 1
- for c=0, length do
- file:write(string.char(mainmemory.readbyte(MESSAGES + m*16 + c)))
- end
- file:write('\n')
- end
- file:close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement