ImmortalZypther Posted May 12, 2020 Share Posted May 12, 2020 Does anybody have a pointer that can be used in a lua script to give me the growth rates of a unit under my cursor? An example for what I'm looking for would be using 0x0203A550 to find the player's hit rate and then using memory.readbyte(0x0203A550) to read the hit rate as a number. I'm almost certain that this needs assembly, which is out of my abilities. Thank you in advance! Quote Link to comment Share on other sites More sharing options...
Hanes Posted May 12, 2020 Share Posted May 12, 2020 Well I don't know anything about coding but you can use FEBuilder to patch a show growths thing on a regular FE ROM. Quote Link to comment Share on other sites More sharing options...
ImmortalZypther Posted May 12, 2020 Author Share Posted May 12, 2020 I know about the patches to see growth rates already, but I'm specifically looking to have them in a variable for a lua script. It's less about knowing the growths and more about having them in the script. Quote Link to comment Share on other sites More sharing options...
Hanes Posted May 13, 2020 Share Posted May 13, 2020 3 hours ago, ImmortalZypther said: e Sorry, can't help you with that then Quote Link to comment Share on other sites More sharing options...
ImmortalZypther Posted May 13, 2020 Author Share Posted May 13, 2020 Don't worry, I found the script I was looking for: function displayGrowths() growth = memory.readdword(0x3004E50) growth = memory.readdword(growth) HPgrowth = memory.readbyte(growth+0x1C) Strgrowth = memory.readbyte(growth+0x1D) Sklgrowth = memory.readbyte(growth+0x1E) Spdgrowth = memory.readbyte(growth+0x1F) Defgrowth = memory.readbyte(growth+0x20) Resgrowth = memory.readbyte(growth+0x21) Lckgrowth = memory.readbyte(growth+0x22) gui.text(8,48,"HP: " .. tostring(HPgrowth)) gui.text(8,56,"Str: " .. tostring(Strgrowth)) gui.text(8,64,"Skl: " .. tostring(Sklgrowth)) gui.text(8,72,"Spd: " .. tostring(Spdgrowth)) gui.text(8,80,"Def: " .. tostring(Defgrowth)) gui.text(8,88,"Res: " .. tostring(Resgrowth)) gui.text(8,96,"Lck: " .. tostring(Lckgrowth)) end gui.register(displayGrowths) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.