Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- src="C:/Users/Matt/Documents/Games/smw/BizHawk/Lua/proto2.png"
- charset="C:/Users/Matt/Documents/Games/smw/BizHawk/Lua/charset.png"
- client.SetGameExtraPadding(8,8,160,8)
- memory.usememorydomain("SGB WRAM")
- party = 0x16B2
- while true do
- gui.drawImage(src,0,0)
- for p=0,6 do
- if p < 6 then
- gui.drawRectangle(279,31+28*p,129,25,0xFF808080)
- else
- gui.drawRectangle(279,31+28*p,129,25,0xFFC0C0C0)
- end
- for i=0,0x02 do
- for j=0,0x0F do
- data = memory.readbyte(0x16B2+j+i*0x10+p*0x30)
- if data ~= 0 then
- x = bit.band(data,0x0F)*8
- y = bit.rshift(data,4)*8
- gui.drawImageRegion(charset,x,y,8,8,280+8*j,32+8*i+28*p)
- if data == 0x50 and ((i*0x10+j)%6==5) and memory.readbyte(0x16B2+j+i*0x10+p*0x30 - 5) < 0x80 and memory.readbyte(0x16B2+j+i*0x10+p*0x30 - 5) >= 0x40 then
- gui.drawRectangle(239+8*j,31+8*i+28*p,48,9,0xFFFF0000)
- end
- end
- end
- end
- end
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement