Jump to content

Looking for Pointer to Unit's Growth Rates


Recommended Posts

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!

Link to comment
Share on other sites

Well I don't know anything about coding but you can use FEBuilder to patch a show growths thing on a regular FE ROM.

Link to comment
Share on other sites

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)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...