Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Gen2NatureCheck by Collector Togami
- --Please select what game you are playing below to handle the offsets. At this time
- --this program only supports ENG versions of GSC.
- Crystal=693
- NotCrystal=0
- --Change the game version you wish to use here.
- GameVersion=Crystal
- PartyStart=0x0000DA32+GameVersion
- if GameVersion == Crystal then
- PartySize=0x0000DCD7
- end
- if GameVersion == NotCrystal then
- PartySize=0x0000DA22
- end
- --This offset may not be constant across other languages
- PartyOffset=48
- currentY=10
- --Thanks to MKDasher for this
- local naturename={
- "Hardy","Lonely","Brave","Adamant","Naughty",
- "Bold","Docile","Relaxed","Impish","Lax",
- "Timid","Hasty","Serious","Jolly","Naive",
- "Modest","Mild","Quiet","Bashful","Rash",
- "Calm","Gentle","Sassy","Careful","Quirky"}
- while true do
- counter=1
- currentParty=PartyStart
- currentY=10
- party=0
- while party < memory.readbyte(PartySize) do
- --Not the best way to get exp but it will do for now
- natureNum = memory.readbyte(currentParty)*0x10000
- natureNum = natureNum + memory.readbyte(currentParty+1)*0x100
- natureNum = natureNum + memory.readbyte(currentParty+2)
- natureNum = natureNum % 25
- gui.text(5,currentY, counter ..". "..naturename[natureNum+1])
- party = party + 1
- counter = counter + 1
- currentParty=currentParty+PartyOffset
- currentY=currentY+10
- end
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment